public final class VariableDeclarationExpr extends Expression
| Constructor and Description |
|---|
VariableDeclarationExpr() |
VariableDeclarationExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> vars) |
VariableDeclarationExpr(int modifiers,
Type type,
List<VariableDeclarator> vars) |
VariableDeclarationExpr(Type type,
List<VariableDeclarator> vars) |
| 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.
|
VariableDeclarationExpr |
clone() |
List<AnnotationExpr> |
getAnnotations() |
List<Node> |
getChildren() |
int |
getModifiers()
Return the modifiers of this variable declaration.
|
Type |
getType() |
List<VariableDeclarator> |
getVars() |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setAnnotations(List<AnnotationExpr> annotations) |
void |
setModifiers(int modifiers) |
void |
setType(Type type) |
void |
setVars(List<VariableDeclarator> vars) |
getSymbolData, setSymbolDatacheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic VariableDeclarationExpr()
public VariableDeclarationExpr(Type type, List<VariableDeclarator> vars)
public VariableDeclarationExpr(int modifiers,
Type type,
List<VariableDeclarator> vars)
public VariableDeclarationExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> vars)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Expressionpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic List<AnnotationExpr> getAnnotations()
public int getModifiers()
ModifierSetpublic Type getType()
public List<VariableDeclarator> getVars()
public void setAnnotations(List<AnnotationExpr> annotations)
public void setModifiers(int modifiers)
public void setType(Type type)
public void setVars(List<VariableDeclarator> vars)
public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic VariableDeclarationExpr clone() throws CloneNotSupportedException
clone in class ExpressionCloneNotSupportedExceptionCopyright © 2018. All rights reserved.