public final class FieldDeclaration extends BodyDeclaration
Constructor and Description |
---|
FieldDeclaration() |
FieldDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> variables) |
FieldDeclaration(int modifiers,
Type type,
List<VariableDeclarator> variables) |
FieldDeclaration(int modifiers,
Type type,
VariableDeclarator variable) |
FieldDeclaration(JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> variables) |
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.
|
int |
getModifiers()
Return the modifiers of this member declaration.
|
Type |
getType() |
List<VariableDeclarator> |
getVariables() |
void |
setModifiers(int modifiers) |
void |
setType(Type type) |
void |
setVariables(List<VariableDeclarator> variables) |
getAnnotations, getJavaDoc, setAnnotations, setJavaDoc
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString
public FieldDeclaration()
public FieldDeclaration(int modifiers, Type type, VariableDeclarator variable)
public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables)
public FieldDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, Type type, List<VariableDeclarator> variables)
public FieldDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, Type type, List<VariableDeclarator> variables)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public int getModifiers()
ModifierSet
public Type getType()
public List<VariableDeclarator> getVariables()
public void setModifiers(int modifiers)
public void setType(Type type)
public void setVariables(List<VariableDeclarator> variables)