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.TypeDeclarationfinal Java.Modifier[]TheJava.Modifiers of this declaration.Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTypeBodyDeclaration(Location location, Java.Modifier[] modifiers) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDeclaringType(Java.TypeDeclaration declaringType) Sets the type declaration that this declaration belongs to.voidsetEnclosingScope(Java.Scope enclosingScope) Forward-implementsJava.BlockStatement.setEnclosingScope(Java.Scope).Methods inherited from class Java.Located
getLocation, throwCompileExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface Java.TypeBodyDeclaration
accept
-
Field Details
-
declaringType
-
modifiers
TheJava.Modifiers of this declaration.
-
-
Constructor Details
-
AbstractTypeBodyDeclaration
-
-
Method Details
-
setDeclaringType
Description copied from interface:Java.TypeBodyDeclarationSets the type declaration that this declaration belongs to.- Specified by:
setDeclaringTypein interfaceJava.TypeBodyDeclaration
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceJava.TypeBodyDeclaration- Returns:
- The type declaration that this declaration belongs to.
-
getModifiers
- Specified by:
getModifiersin interfaceJava.TypeBodyDeclaration- Returns:
- The
Java.Modifiers of this declaration
-
getAnnotations
- Returns:
- The annotations of this function
-
setEnclosingScope
Forward-implementsJava.BlockStatement.setEnclosingScope(Java.Scope). -
getEnclosingScope
- Specified by:
getEnclosingScopein interfaceJava.Scope- Returns:
- The scope that encloses this scope, or
null
-