public static final class Java.FieldDeclaration extends Java.Statement implements Java.TypeBodyDeclaration, Java.DocCommentable
Modifier and Type | Field and Description |
---|---|
Java.Modifiers |
modifiers
The modifiers of this field declaration.
|
private java.lang.String |
optionalDocComment |
Java.Type |
type
The type of this field.
|
Java.VariableDeclarator[] |
variableDeclarators
The declarators of this field declaration, e.g.
|
localVariables
NOWHERE
Constructor and Description |
---|
FieldDeclaration(Location location,
java.lang.String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the '
visit...() ' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
void |
accept(Visitor.TypeBodyDeclarationVisitor visitor)
Invokes the '
visit...() ' method of Visitor.TypeBodyDeclarationVisitor for the concrete
Java.TypeBodyDeclaration type. |
Java.Annotation[] |
getAnnotations() |
Java.TypeDeclaration |
getDeclaringType() |
java.lang.String |
getDocComment() |
boolean |
hasDeprecatedDocTag()
Returns
true if the object has a doc comment and
the @deprecated tag appears in the doc
comment. |
boolean |
isStatic() |
void |
setDeclaringType(Java.TypeDeclaration declaringType)
Sets the type declaration that this declaration belongs to.
|
java.lang.String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
getEnclosingScope
private final java.lang.String optionalDocComment
public final Java.Modifiers modifiers
public final Java.Type type
public final Java.VariableDeclarator[] variableDeclarators
public FieldDeclaration(Location location, java.lang.String optionalDocComment, Java.Modifiers modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
public Java.Annotation[] getAnnotations()
public void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclaration
setDeclaringType
in interface Java.TypeBodyDeclaration
public Java.TypeDeclaration getDeclaringType()
getDeclaringType
in interface Java.TypeBodyDeclaration
public boolean isStatic()
isStatic
in interface Java.TypeBodyDeclaration
public java.lang.String toString()
toString
in class java.lang.Object
public void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Java.TypeBodyDeclaration
visit...()
' method of Visitor.TypeBodyDeclarationVisitor
for the concrete
Java.TypeBodyDeclaration
type.accept
in interface Java.TypeBodyDeclaration
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatement
visit...()
' method of Visitor.BlockStatementVisitor
for the concrete
Java.BlockStatement
type.accept
in interface Java.BlockStatement
public java.lang.String getDocComment()
getDocComment
in interface Java.DocCommentable
null
public boolean hasDeprecatedDocTag()
Java.DocCommentable
true
if the object has a doc comment and
the @deprecated
tag appears in the doc
comment.hasDeprecatedDocTag
in interface Java.DocCommentable