public abstract class VariableDeclarationBase extends DeclarationBase implements VariableDeclaration
Modifier and Type | Field and Description |
---|---|
TypeExpression |
type |
annotation, name
Constructor and Description |
---|
VariableDeclarationBase(Identifier name,
TypeExpression type)
Construct variable declaration.
|
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.
|
TypeExpression |
getType()
Get the type of the declared entity.
|
getAnnotation, getName, setAnnotation
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getPosition, setPosition
print, printCore, toString, toStringCore
public TypeExpression type
public VariableDeclarationBase(Identifier name, TypeExpression type)
name
- the name of the declared variable.type
- the type of the declared variable.public TypeExpression getType()
getType
in interface VariableDeclaration
public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class DeclarationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class DeclarationBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class DeclarationBase
visitor
- the visitor who is accepted by the children of this node.