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 |
localVariablesNOWHERE| 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, setEnclosingScopegetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptiongetEnclosingScopepublic 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.TypeBodyDeclarationpublic Java.TypeDeclaration getDeclaringType()
getDeclaringType in interface Java.TypeBodyDeclarationpublic boolean isStatic()
isStatic in interface Java.TypeBodyDeclarationpublic java.lang.String toString()
toString in class java.lang.Objectpublic void accept(Visitor.TypeBodyDeclarationVisitor visitor)
accept in interface Java.TypeBodyDeclarationpublic void accept(Visitor.BlockStatementVisitor visitor)
accept in interface Java.BlockStatementpublic java.lang.String getDocComment()
Java.DocCommentablenull.getDocComment in interface Java.DocCommentablepublic boolean hasDeprecatedDocTag()
Java.DocCommentabletrue if the object has a doc comment and
the @deprecated tag appears in the doc
comment.hasDeprecatedDocTag in interface Java.DocCommentable