public final class ObjectVariableDeclaration extends GlobalVariableDeclaration
type, value
name
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static ObjectVariableDeclaration |
construct(Identifier name,
TypeExpression type,
ValueExpression value)
Construct an object variable declaration
|
acceptChildren, getType
getAnnotation, setAnnotation
getName
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getPosition, setPosition
print, printCore, toString, toStringCore
public static ObjectVariableDeclaration construct(Identifier name, TypeExpression type, ValueExpression value)
name
- the name of the variabletype
- its typevalue
- its initialization value (may be null)public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class GlobalVariableDeclaration
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class GlobalVariableDeclaration
visitor
- the visitor who is accepted by this node.