public final class TypeSymbol extends SymbolBase
Constructor and Description |
---|
TypeSymbol(TypeDeclIdentifier ident)
Construct type symbol from ident (type is set to null).
|
Modifier and Type | Method and Description |
---|---|
Type |
getType()
Return type of symbol.
|
TypeDeclIdentifier |
getTypeDeclIdentifier()
Return identifier of symbol.
|
void |
instantiate(TypeSymbol symbol)
Instantiate symbol with copy of denoted symbol.
|
void |
setType(Type type)
Set type of symbol to type.
|
getIdentifier
public TypeSymbol(TypeDeclIdentifier ident)
ident
- the identifier of the symbolpublic TypeDeclIdentifier getTypeDeclIdentifier()
public Type getType()
public void setType(Type type)
type
- the symbol type.public void instantiate(TypeSymbol symbol)
symbol
- the symbol from which the instantiation is derived