org.codehaus.janino
Class Java.FieldDeclarator
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Statement
org.codehaus.janino.Java.FieldDeclarator
- All Implemented Interfaces:
- Java.BlockStatement, Java.DocCommentable, Java.Locatable, Java.Scope, Java.TypeBodyDeclaration
- Enclosing class:
- Java
- public static final class Java.FieldDeclarator
- extends Java.Statement
- implements Java.TypeBodyDeclaration, Java.DocCommentable
This class is derived from "Statement", because it provides for the
initialization of the field. In other words, "compile()" generates the
code that initializes the field.
Java.FieldDeclarator
public Java.FieldDeclarator(Location location,
Java.AbstractTypeDeclaration declaringType,
String optionalDocComment,
short modifiers,
Java.Type type)
setVariableDeclarators
public void setVariableDeclarators(Java.VariableDeclarator[] variableDeclarators)
getDeclaringType
public Java.TypeDeclaration getDeclaringType()
- Specified by:
getDeclaringType
in interface Java.TypeBodyDeclaration
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interface Java.TypeBodyDeclaration
toString
public String toString()
visit
public final void visit(org.codehaus.janino.Visitor.TypeBodyDeclarationVisitor visitor)
- Specified by:
visit
in interface Java.TypeBodyDeclaration
visit
public final void visit(org.codehaus.janino.Visitor.BlockStatementVisitor visitor)
- Specified by:
visit
in interface Java.BlockStatement
getDocComment
public String getDocComment()
- Description copied from interface:
Java.DocCommentable
- Returns the doc comment of the object or
null
.
- Specified by:
getDocComment
in interface Java.DocCommentable
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()
- Description copied from interface:
Java.DocCommentable
- Returns
true
if the object has a doc comment and
the @#deprecated
tag appears in the doc
comment.
- Specified by:
hasDeprecatedDocTag
in interface Java.DocCommentable