public class TypeTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
TypeExpression |
booleanType |
TypeExpression |
charType |
TypeExpression |
exceptionType |
TypeExpression |
intType |
TypeExpression |
nullType |
TypeExpression |
voidType |
Constructor and Description |
---|
TypeTable()
Construct a table for making types unique.
|
Modifier and Type | Method and Description |
---|---|
ClassSymbol |
getStringClass()
Get string class.
|
TypeExpression |
getStringType()
Get string type.
|
TypeExpression |
process(TypeExpression type)
Return unique version of a type.
|
TypeExpression[] |
process(TypeExpression[] types)
Return unique version of a sequence of types.
|
void |
setStringType(ClassSymbol symbol)
Set string type to class.
|
public final TypeExpression booleanType
public final TypeExpression charType
public final TypeExpression intType
public final TypeExpression voidType
public final TypeExpression nullType
public final TypeExpression exceptionType
public TypeExpression getStringType()
public ClassSymbol getStringClass()
public void setStringType(ClassSymbol symbol)
symbol
- the symbol denoting the class (null, if none).public TypeExpression process(TypeExpression type)
type
- a type.public TypeExpression[] process(TypeExpression[] types)
types
- a sequence of types.