public final class BodySymbol extends LocalVariableSymbolBase
Modifier and Type | Method and Description |
---|---|
static BodySymbol |
construct(Identifier name,
TypeExpression type,
VariableDeclaration decl)
Construct body symbol from name and type.
|
VariableDeclaration |
getDeclaration()
Get declaration of variable.
|
void |
print(java.io.PrintWriter out)
Print symbol on output stream.
|
apply, getLogicType, getType, setLogicType
getName
public static BodySymbol construct(Identifier name, TypeExpression type, VariableDeclaration decl)
name
- the name of the symbol.type
- the type of the symbol.decl
- the declaration introducing the variable.public VariableDeclaration getDeclaration()
getDeclaration
in interface Symbol
getDeclaration
in class SymbolBase
public void print(java.io.PrintWriter out)
out
- the output stream.