|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.Located
org.codehaus.janino.Java.Statement
org.codehaus.janino.Java.FieldDeclaration
public static final class Java.FieldDeclaration
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 | |
|---|---|
Java.Modifiers |
modifiers
The modifiers of this field declaration. |
Java.Type |
type
The type of this field. |
Java.VariableDeclarator[] |
variableDeclarators
The declarators of this field declaration, e.g. |
| Fields inherited from class org.codehaus.janino.Java.Statement |
|---|
localVariables |
| Fields inherited from class org.codehaus.janino.Java.Located |
|---|
NOWHERE |
| Constructor Summary | |
|---|---|
Java.FieldDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators)
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the ' visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
void |
accept(Visitor.TypeBodyDeclarationVisitor visitor)
Invokes the ' visit...()' method of Visitor.TypeBodyDeclarationVisitor for the concrete
Java.TypeBodyDeclaration type. |
Java.Annotation[] |
getAnnotations()
|
Java.TypeDeclaration |
getDeclaringType()
|
String |
getDocComment()
|
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)
Sets the type declaration that this declaration belongs to. |
String |
toString()
|
| Methods inherited from class org.codehaus.janino.Java.Statement |
|---|
findLocalVariable, getEnclosingScope, setEnclosingScope |
| Methods inherited from class org.codehaus.janino.Java.Located |
|---|
getLocation, throwCompileException |
| 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, throwCompileException |
| Methods inherited from interface org.codehaus.janino.Java.Scope |
|---|
getEnclosingScope |
| Field Detail |
|---|
public final Java.Modifiers modifiers
public final Java.Type type
public final Java.VariableDeclarator[] variableDeclarators
| Constructor Detail |
|---|
public Java.FieldDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators)
| Method Detail |
|---|
public Java.Annotation[] getAnnotations()
public void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclaration
setDeclaringType in interface Java.TypeBodyDeclarationpublic Java.TypeDeclaration getDeclaringType()
getDeclaringType in interface Java.TypeBodyDeclarationpublic boolean isStatic()
isStatic in interface Java.TypeBodyDeclarationpublic String toString()
toString in class Objectpublic void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Java.TypeBodyDeclarationvisit...()' method of Visitor.TypeBodyDeclarationVisitor for the concrete
Java.TypeBodyDeclaration type.
accept in interface Java.TypeBodyDeclarationpublic void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.
accept in interface Java.BlockStatementpublic String getDocComment()
getDocComment in interface Java.DocCommentablenullpublic 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
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||