| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType
An element within a type type such is used in C or Java where we need to
indicate the type is an array of some element type like float[] or User[].
|
class |
ClassSymbol
A symbol representing the class.
|
class |
DataAggregateSymbol
A symbol representing a collection of data like a struct or class.
|
class |
FunctionType
For C types like "void (*)(int)", we need that to be a pointer to a function
taking a single integer argument returning void.
|
class |
InvalidType |
class |
PointerType
An element in a type tree that represents a pointer to some type,
such as we need for C.
|
class |
PrimitiveType |
class |
TypeAlias
A "typedef int I;" in C results in a TypeAlias("I", ptrToIntegerType)
|
| Modifier and Type | Field and Description |
|---|---|
protected Type |
ArrayType.elemType |
static Type |
SymbolTable.INVALID_TYPE |
protected Type |
FunctionSymbol.retType |
protected Type |
FunctionType.returnType |
protected Type |
TypeAlias.targetType |
protected Type |
PointerType.targetType |
protected Type |
BaseSymbol.type |
| Modifier and Type | Field and Description |
|---|---|
protected List<Type> |
FunctionType.argumentTypes |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeAlias.getTargetType() |
Type |
TypedSymbol.getType() |
Type |
FunctionSymbol.getType() |
Type |
BaseSymbol.getType() |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
FunctionType.getArgumentTypes() |
| Modifier and Type | Method and Description |
|---|---|
void |
VariableSymbol.setType(Type type) |
void |
TypedSymbol.setType(Type type) |
void |
FunctionSymbol.setType(Type type) |
void |
BaseSymbol.setType(Type type) |
| Constructor and Description |
|---|
ArrayType(Type elemType) |
ArrayType(Type elemType,
int numElems) |
FunctionType(Type returnType,
List<Type> argumentTypes) |
PointerType(Type targetType) |
TypeAlias(String name,
Type targetType) |
| Constructor and Description |
|---|
FunctionType(Type returnType,
List<Type> argumentTypes) |
Copyright © 2016 ANTLR. All Rights Reserved.