org.codehaus.janino
Interface Java.TypeBodyDeclaration
- All Superinterfaces:
- Java.Locatable, Java.Scope
- All Known Subinterfaces:
- Java.MemberTypeDeclaration
- All Known Implementing Classes:
- Java.AbstractTypeBodyDeclaration, Java.ConstructorDeclarator, Java.FieldDeclaration, Java.FunctionDeclarator, Java.Initializer, Java.MemberClassDeclaration, Java.MemberInterfaceDeclaration, Java.MethodDeclarator
- Enclosing class:
- Java
public static interface Java.TypeBodyDeclaration
- extends Java.Locatable, Java.Scope
Representation of a "ClassBodyDeclaration" or an "InterfaceMemberDeclaration". These are:
- Field declarators
- Method declarators
- Static and non-static initializers
- Member type declarations
setDeclaringType
void setDeclaringType(Java.TypeDeclaration declaringType)
- Sets the type declaration that this declaration belongs to.
getDeclaringType
Java.TypeDeclaration getDeclaringType()
- Returns:
- The type declaration that this declaration belongs to.
isStatic
boolean isStatic()
- Returns:
- Whether this declaration has the STATIC modifier
accept
void accept(Visitor.TypeBodyDeclarationVisitor visitor)
- Invokes the '
visit...()' method of Visitor.TypeBodyDeclarationVisitor for the concrete
Java.TypeBodyDeclaration type.