Package org.codehaus.janino
Class Java.AbstractTypeBodyDeclaration
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.AbstractTypeBodyDeclaration
- All Implemented Interfaces:
Java.Locatable
,Java.Scope
,Java.TypeBodyDeclaration
- Direct Known Subclasses:
Java.FunctionDeclarator
,Java.Initializer
- Enclosing class:
Java
public abstract static class Java.AbstractTypeBodyDeclaration
extends Java.Located
implements Java.TypeBodyDeclaration
Abstract implementation of
Java.TypeBodyDeclaration
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Java.TypeDeclaration
final Java.Modifier[]
TheJava.Modifier
s of this declaration.Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractTypeBodyDeclaration
(Location location, Java.Modifier[] modifiers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDeclaringType
(Java.TypeDeclaration declaringType) Sets the type declaration that this declaration belongs to.void
setEnclosingScope
(Java.Scope enclosingScope) Forward-implementsJava.BlockStatement.setEnclosingScope(Java.Scope)
.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, toString, wait, wait, wait
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
Methods inherited from interface org.codehaus.janino.Java.TypeBodyDeclaration
accept
-
Field Details
-
declaringType
-
modifiers
TheJava.Modifier
s of this declaration.
-
-
Constructor Details
-
AbstractTypeBodyDeclaration
-
-
Method Details
-
setDeclaringType
Description copied from interface:Java.TypeBodyDeclaration
Sets the type declaration that this declaration belongs to.- Specified by:
setDeclaringType
in interfaceJava.TypeBodyDeclaration
-
getDeclaringType
- Specified by:
getDeclaringType
in interfaceJava.TypeBodyDeclaration
- Returns:
- The type declaration that this declaration belongs to.
-
getModifiers
- Specified by:
getModifiers
in interfaceJava.TypeBodyDeclaration
- Returns:
- The
Java.Modifier
s of this declaration
-
getAnnotations
- Returns:
- The annotations of this function
-
setEnclosingScope
Forward-implementsJava.BlockStatement.setEnclosingScope(Java.Scope)
. -
getEnclosingScope
- Specified by:
getEnclosingScope
in interfaceJava.Scope
- Returns:
- The scope that encloses this scope, or
null
-