|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.Semantics.SymbolBase fmrisc.Semantics.TypeSymbol
public final class TypeSymbol
Symbols in TypeTable.
Constructor Summary | |
---|---|
TypeSymbol(TypeDeclIdentifier ident)
Construct type symbol from ident (type is set to null). |
Method Summary | |
---|---|
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. |
Methods inherited from class fmrisc.Semantics.SymbolBase |
---|
getIdentifier |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeSymbol(TypeDeclIdentifier ident)
ident
- the identifier of the symbolMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |