public class ValueDeclarationClass extends DeclarationBase implements ValueDeclaration
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static ValueDeclarationClass |
construct(Identifier name,
Type type)
Create new declaration of a constant denoting a value.
|
ValueSymbol |
getSymbol()
Get symbol introduced by declaration.
|
Type |
getType()
Get type of the declaration.
|
getName, getPosition, setPositionaccept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetPosition, setPositionprint, printCore, toString, toStringCorepublic static ValueDeclarationClass construct(Identifier name, Type type)
name - the name of the constant.type - its typepublic final Type getType()
getType in interface ValueDeclarationpublic final ValueSymbol getSymbol()
public void accept(ASTVisitorOld visitor)
accept in interface ASTaccept in class DeclarationBasevisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class DeclarationBasevisitor - the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren in interface ASTacceptChildren in class DeclarationBasevisitor - the visitor who is accepted by the children of this node.