ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
VariableDeclarator() |
VariableDeclarator(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclaratorId id,
Expression init)
Deprecated.
prefer using Range objects.
|
VariableDeclarator(Range range,
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, getBegin, getBeginColumn, getBeginLine, getChildrenNodes, getComment, getData, getEnd, getEndColumn, getEndLine, getOrphanComments, getParentNode, getRange, hasComment, hashCode, isPositionedAfter, isPositionedAfter, isPositionedBefore, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBeginColumn, setBeginLine, setComment, setData, setEnd, setEndColumn, setEndLine, setParentNode, setRange, toString, toStringWithoutComments
public 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.@Deprecated public VariableDeclarator(int beginLine, int beginColumn, int endLine, int endColumn, VariableDeclaratorId id, Expression init)
public VariableDeclarator(Range range, VariableDeclaratorId id, Expression init)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public VariableDeclaratorId getId()
public Expression getInit()
public void setId(VariableDeclaratorId id)
public void setInit(Expression init)
Copyright © 2007–2016. All rights reserved.