ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
VariableDeclarator() |
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, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
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.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.