Web Site

org.codehaus.janino
Class Java.FieldDeclaration

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Statement
          extended byorg.codehaus.janino.Java.FieldDeclaration
All Implemented Interfaces:
Java.BlockStatement, Java.DocCommentable, Java.Locatable, Java.Scope, Java.TypeBodyDeclaration
Enclosing class:
Java

public static final class Java.FieldDeclaration
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
 short modifiers
           
 Java.Type type
           
 Java.VariableDeclarator[] variableDeclarators
           
 
Constructor Summary
Java.FieldDeclaration(Location location, java.lang.String optionalDocComment, short modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.codehaus.janino.Java.Statement
getEnclosingScope, setEnclosingScope
 
Methods inherited from class org.codehaus.janino.Java.Located
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
 

Field Detail

modifiers

public final short modifiers

type

public final Java.Type type

variableDeclarators

public final Java.VariableDeclarator[] variableDeclarators
Constructor Detail

Java.FieldDeclaration

public Java.FieldDeclaration(Location location,
                             java.lang.String optionalDocComment,
                             short modifiers,
                             Java.Type type,
                             Java.VariableDeclarator[] variableDeclarators)
Method Detail

setDeclaringType

public void setDeclaringType(Java.TypeDeclaration declaringType)
Specified by:
setDeclaringType in interface Java.TypeBodyDeclaration

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 java.lang.String toString()

accept

public final void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Specified by:
accept in interface Java.TypeBodyDeclaration

accept

public final void accept(Visitor.BlockStatementVisitor visitor)
Specified by:
accept in interface Java.BlockStatement

getDocComment

public java.lang.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