Debian Codegraph @

src/xtc/type/package.html

raw symbols SCIP
1 <html>
2 <body>
3
4 xtc's representation of types. This package defines a hierarchy of
5 type classes, representing types of the C, Java, and ML programming
6 languages as well as pseudo-types to help with type-checking programs.
7 In particular:<ul>
8
9 <li>{@link xtc.type.Type} is the superclass of all type classes and
10 defines the common interface.</li>
11
12 <li>{@link xtc.type.VoidT} represents the void type.</li>
13
14 <li>{@link xtc.type.UnitT} represents the unit type.</li>
15
16 <li>{@link xtc.type.BooleanT} represents the boolean type.</li>
17
18 <li>{@link xtc.type.IntegerT} and {@link xtc.type.FloatT} represent
19 integer and floating point {@link xtc.type.NumberT numbers},
20 respectively.</li>
21
22 <li>{@link xtc.type.InternalT} represents compiler-internal types,
23 such as the <code>__builtin_va_list</code> type used by gcc for
24 variable argument lists.</li>
25
26 <li>{@link xtc.type.LabelT} and {@link xtc.type.PackageT} represent
27 labels and packages, respectively.</li>
28
29 <li>{@link xtc.type.PointerT}, {@link xtc.type.ArrayT}, {@link
30 xtc.type.StructT}, {@link xtc.type.UnionT}, {@link
31 xtc.type.FunctionT}, {@link xtc.type.MethodT}, {@link
32 xtc.type.ClassT}, {@link xtc.type.InterfaceT}, {@link
33 xtc.type.TupleT}, and {@link xtc.type.VariantT} represent {@link
34 xtc.type.DerivedT derived types}.</li>
35
36 <li>{@link xtc.type.WrappedT} is the superclass of pseudo-types adding
37 symbolic information to any of the previous types. {@link
38 xtc.type.AliasT} represents type aliases; {@link xtc.type.AnnotatedT}
39 provides annotations for another type; {@link xtc.type.EnumeratorT}
40 and {@link xtc.type.EnumT} represent C enums; {@link
41 xtc.type.VariableT} represents globals, locals, fields, and bitfields;
42 {@link xtc.type.ParameterizedT} represents parameterized types; and
43 {@link xtc.type.InstantiatedT} represents instantiations of
44 parameterized types.</li>
45
46 <li>{@link xtc.type.Parameter} represents a type parameter and {@link
47 xtc.type.Wildcard} represents a wildcard. Types containing instances
48 of these classes are parameterized. They should be wrapped in a
49 {@link xtc.type.ParameterizedT} and instantiated through a {@link
50 xtc.type.InstantiatedT}.</li>
51
52 <li>Finally, {@link xtc.type.ErrorT} represents typing errors.</li>
53
54 </ul>
55
56 These type classes are complemented by a common interface for all
57 {@link xtc.type.Tagged tagged types} (structs, unions, and enums) and
58 for all {@link xtc.type.Constant constant-valued types} (enumerators
59 and the <code>ConstantT</code> pseudo-type).
60
61 <p />To model the memory shape of lvalues, this package also defines a
62 separate hierarchy of references:<ul>
63
64 <li>{@link xtc.type.Reference} is the superclass of all reference
65 classes and defines the common interface. All references have a type
66 specifying the referenced memory's shape or layout.</li>
67
68 <li>{@link xtc.type.NullReference#NULL} represents the zero location
69 in memory. It has <code>void</code> as its type.</li>
70
71 <li>{@link xtc.type.StaticReference} and {@link
72 xtc.type.DynamicReference} represent statically and dynamically
73 allocated variables, respectively. Both reference classes are
74 symbolic representations of memory; they do not have a known
75 location.</li>
76
77 <li>{@link xtc.type.RelativeReference} is the superclass of all
78 relative references, with each relative reference having another
79 reference as its base.</li>
80
81 <li>{@link xtc.type.CastReference} represents a differently typed
82 view on the same memory region.</li>
83
84 <li>{@link xtc.type.IndirectReference} represents an indirection
85 through a memory region, i.e., pointer.</li>
86
87 <li>{@link xtc.type.IndexReference} represents an integer offset from
88 another reference, while {@link xtc.type.FieldReference} represents a
89 symbolic offset.</li>
90
91 </ul>
92
93 </body>
94 </html>