Web Site

org.codehaus.janino
Class Java.FieldDeclarator

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Statement
          extended byorg.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.


Field Summary
 
Fields inherited from class org.codehaus.janino.Java.Statement
enclosingScope
 
Constructor Summary
Java.FieldDeclarator(Location location, Java.AbstractTypeDeclaration declaringType, String optionalDocComment, short modifiers, Java.Type type)
           
 
Method Summary
 Java.TypeDeclaration getDeclaringType()
           
 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 setVariableDeclarators(Java.VariableDeclarator[] variableDeclarators)
           
 String toString()
           
 void visit(org.codehaus.janino.Visitor.BlockStatementVisitor visitor)
           
 void visit(org.codehaus.janino.Visitor.TypeBodyDeclarationVisitor visitor)
           
 
Methods inherited from class org.codehaus.janino.Java.Statement
getEnclosingScope, getLocation, throwParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
 

Constructor Detail

Java.FieldDeclarator

public Java.FieldDeclarator(Location location,
                            Java.AbstractTypeDeclaration declaringType,
                            String optionalDocComment,
                            short modifiers,
                            Java.Type type)
Method Detail

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

Web Site