ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
VariableDeclarator() |
VariableDeclarator(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclaratorId id,
Expression init) |
VariableDeclarator(VariableDeclaratorId id) |
VariableDeclarator(VariableDeclaratorId id,
Expression init)
Defines the declaration of a variable.
|
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
VariableDeclaratorId |
getId() |
Expression |
getInit() |
void |
setId(VariableDeclaratorId id) |
void |
setInit(Expression init) |
addOrphanComment, clone, contains, equals, getAllContainedComments, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEndColumn, getEndLine, getOrphanComments, getParentNode, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setComment, setData, setEndColumn, setEndLine, setParentNode, toString, toStringWithoutCommentspublic VariableDeclarator()
public VariableDeclarator(VariableDeclaratorId id)
public VariableDeclarator(VariableDeclaratorId id, Expression init)
id - The identifier for this variable. IE. The variables name.init - What this variable should be initialized to.
An AssignExpr is unnecessary as the = operator is already added.public VariableDeclarator(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclaratorId id,
Expression init)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic VariableDeclaratorId getId()
public Expression getInit()
public void setId(VariableDeclaratorId id)
public void setInit(Expression init)
Copyright © 2007–2016. All rights reserved.