public final class TypeSymbol extends SymbolBase
Modifier and Type | Method and Description |
---|---|
static TypeSymbol |
construct(Identifier name,
Type type,
TypeDeclaration decl)
Construct type symbol.
|
TypeDeclaration |
getDeclaration()
Get declaration.
|
Type |
getType()
Get type.
|
void |
print(java.io.PrintWriter out)
Print symbol on output stream.
|
getName
public static TypeSymbol construct(Identifier name, Type type, TypeDeclaration decl)
name
- the name of the symbol.type
- the type.decl
- the declaration.public Type getType()
public TypeDeclaration getDeclaration()
getDeclaration
in interface Symbol
getDeclaration
in class SymbolBase
public void print(java.io.PrintWriter out)
out
- the output stream.