public static final class Java.FieldDeclaration extends Java.Statement implements Java.TypeBodyDeclaration, Java.DocCommentable
Modifier and Type | Field and Description |
---|---|
Java.ModifiersAndAnnotations |
modifiersAndAnnotations |
Java.Type |
type |
Java.VariableDeclarator[] |
variableDeclarators |
localVariables
NOWHERE
Constructor and Description |
---|
FieldDeclaration(Location location,
java.lang.String optionalDocComment,
Java.ModifiersAndAnnotations modifiersAndAnnotations,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
void |
accept(Visitor.TypeBodyDeclarationVisitor visitor) |
Java.TypeDeclaration |
getDeclaringType() |
java.lang.String |
getDocComment()
Returns the doc comment of the object or
null . |
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) |
java.lang.String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
getEnclosingScope
public final Java.ModifiersAndAnnotations modifiersAndAnnotations
public final Java.Type type
public final Java.VariableDeclarator[] variableDeclarators
public FieldDeclaration(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
public void setDeclaringType(Java.TypeDeclaration declaringType)
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)
accept
in interface Java.TypeBodyDeclaration
public void accept(Visitor.BlockStatementVisitor visitor)
accept
in interface Java.BlockStatement
public java.lang.String getDocComment()
Java.DocCommentable
null
.getDocComment
in interface Java.DocCommentable
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