xtc.type

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » Rats Parser Generators » xtc.type 
xtc.type
xtc's representation of types. This package defines a hierarchy of type classes, representing types of the C, Java, and ML programming languages as well as pseudo-types to help with type-checking programs. In particular:
  • {@link xtc.type.Type} is the superclass of all type classes and defines the common interface.
  • {@link xtc.type.VoidT} represents the void type.
  • {@link xtc.type.UnitT} represents the unit type.
  • {@link xtc.type.BooleanT} represents the boolean type.
  • {@link xtc.type.IntegerT} and {@link xtc.type.FloatT} represent integer and floating point {@link xtc.type.NumberT numbers}, respectively.
  • {@link xtc.type.InternalT} represents compiler-internal types, such as the __builtin_va_list type used by gcc for variable argument lists.
  • {@link xtc.type.LabelT} and {@link xtc.type.PackageT} represent labels and packages, respectively.
  • {@link xtc.type.PointerT}, {@link xtc.type.ArrayT}, {@link xtc.type.StructT}, {@link xtc.type.UnionT}, {@link xtc.type.FunctionT}, {@link xtc.type.MethodT}, {@link xtc.type.ClassT}, {@link xtc.type.InterfaceT}, {@link xtc.type.TupleT}, and {@link xtc.type.VariantT} represent {@link xtc.type.DerivedT derived types}.
  • {@link xtc.type.WrappedT} is the superclass of pseudo-types adding symbolic information to any of the previous types. {@link xtc.type.AliasT} represents type aliases; {@link xtc.type.AnnotatedT} provides annotations for another type; {@link xtc.type.EnumeratorT} and {@link xtc.type.EnumT} represent C enums; {@link xtc.type.VariableT} represents globals, locals, fields, and bitfields; {@link xtc.type.ParameterizedT} represents parameterized types; and {@link xtc.type.InstantiatedT} represents instantiations of parameterized types.
  • {@link xtc.type.Parameter} represents a type parameter and {@link xtc.type.Wildcard} represents a wildcard. Types containing instances of these classes are parameterized. They should be wrapped in a {@link xtc.type.ParameterizedT} and instantiated through a {@link xtc.type.InstantiatedT}.
  • Finally, {@link xtc.type.ErrorT} represents typing errors.
These type classes are complemented by a common interface for all {@link xtc.type.Tagged tagged types} (structs, unions, and enums) and for all {@link xtc.type.Constant constant-valued types} (enumerators and the ConstantT pseudo-type).

To model the memory shape of lvalues, this package also defines a separate hierarchy of references:

  • {@link xtc.type.Reference} is the superclass of all reference classes and defines the common interface. All references have a type specifying the referenced memory's shape or layout.
  • {@link xtc.type.NullReference#NULL} represents the zero location in memory. It has void as its type.
  • {@link xtc.type.StaticReference} and {@link xtc.type.DynamicReference} represent statically and dynamically allocated variables, respectively. Both reference classes are symbolic representations of memory; they do not have a known location.
  • {@link xtc.type.RelativeReference} is the superclass of all relative references, with each relative reference having another reference as its base.
  • {@link xtc.type.CastReference} represents a differently typed view on the same memory region.
  • {@link xtc.type.IndirectReference} represents an indirection through a memory region, i.e., pointer.
  • {@link xtc.type.IndexReference} represents an integer offset from another reference, while {@link xtc.type.FieldReference} represents a symbolic offset.
Java Source File NameTypeComment
AliasT.javaClass A type alias.
AnnotatedT.javaClass An annotated type.
ArrayT.javaClass An array type.
AST.javaClass Common type operations for Rats! ASTs.

This class supports two views on a grammar's generic AST.

BooleanT.javaClass A boolean type.
C.javaClass Common type operations for the C language.
CastReference.javaClass Representation of a cast reference.
CFactory.javaClass A factory for programmatically and concisely creating C types.
ClassOrInterfaceT.javaClass The superclass of class and interface types.
ClassT.javaClass A class type.
Constant.javaClass Representation of a type's constant value.
DerivedT.javaClass The superclass of all derived types.
DynamicReference.javaClass Representation of a reference to dynamically allocated memory.
EnumeratorT.javaClass An enumerator.
EnumT.javaClass An enumerated type.
ErrorT.javaClass The pseudo-type indicating a malformed type.
FieldReference.javaClass Representation of a field reference.
FloatT.javaClass A floating point type.
FunctionOrMethodT.javaClass The superclass of function and method types.
FunctionT.javaClass A function type.
IndexReference.javaClass Representation of an index reference.
IndirectReference.javaClass Representation of an indirect reference.
InstantiatedT.javaClass An instantiated type.
IntegerT.javaClass An integer type.
InterfaceT.javaClass An interface type.
InternalT.javaClass An internal type, identified by its name.
JavaAST.javaClass Common type operations for Java ASTs.
LabelT.javaClass A label type.
Language.javaClass
MethodT.javaClass A method type.
NullReference.javaClass Representation of a null reference.
NumberT.javaClass The superclass of all number types.
PackageT.javaClass A package type.
Parameter.javaClass A type parameter.
ParameterizedT.javaClass A parameterized type.
PointerT.javaClass A pointer type.
Reference.javaClass Representation of a reference.
RelativeReference.javaClass Representation of a reference value.
SourcePrinter.javaClass A visitor to print types in C-like source form.
StaticReference.javaClass Representation of a reference to statically allocated memory.
StringReference.javaClass Representation of a reference to a constant string.
StructOrUnionT.javaClass The superclass of struct and union types.
StructT.javaClass A struct type.
Tagged.javaInterface The interface of all tagged C types.
TupleT.javaClass A tuple type.
Type.javaClass The superclass of all types.

The class hierarchy for types distinguishes basic from wrapped types, with wrapped types providing additional information for basic types.

TypePrinter.javaClass A visitor to print types.
UnionT.javaClass A union type.
UnitT.javaClass A unit type.
VariableReference.javaClass Representation of a symbolic memory location.
VariableT.javaClass A variable.
VariantT.javaClass A variant type.
VoidT.javaClass A void type.
Wildcard.javaClass A type wildcard.
WrappedT.javaClass The superclass of all wrapped types.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.