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 |
boolean |
statiC
Whether this declaration has the STATIC modifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statiC
public final boolean statiC
- Whether this declaration has the STATIC modifier
Java.AbstractTypeBodyDeclaration
protected Java.AbstractTypeBodyDeclaration(Location location,
boolean statiC)
setDeclaringType
public void setDeclaringType(Java.TypeDeclaration declaringType)
- Description copied from interface:
Java.TypeBodyDeclaration
- Sets the type declaration that this declaration belongs to.
- Specified by:
setDeclaringType in interface Java.TypeBodyDeclaration
getDeclaringType
public Java.TypeDeclaration getDeclaringType()
- Specified by:
getDeclaringType in interface Java.TypeBodyDeclaration
- Returns:
- The type declaration that this declaration belongs to.
isStatic
public boolean isStatic()
- Specified by:
isStatic in interface Java.TypeBodyDeclaration
- Returns:
- Whether this declaration has the STATIC modifier
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
- Forward-implements
Java.BlockStatement.setEnclosingScope(Java.Scope).
getEnclosingScope
public Java.Scope getEnclosingScope()
- Specified by:
getEnclosingScope in interface Java.Scope
- Returns:
- The scope that encloses this scope, or
null