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.
|
List<AnnotationExpr> |
getAnnotations() |
int |
getModifiers()
Return the modifiers of this variable declaration.
|
Type |
getType() |
List<VariableDeclarator> |
getVars() |
void |
setAnnotations(List<AnnotationExpr> annotations) |
void |
setModifiers(int modifiers) |
void |
setType(Type type) |
void |
setVars(List<VariableDeclarator> vars) |
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
public 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 <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public List<AnnotationExpr> getAnnotations()
public int getModifiers()
ModifierSet
public 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)