public abstract static class Java.AbstractTypeBodyDeclaration extends Java.Located implements Java.TypeBodyDeclaration
Java.TypeBodyDeclaration.| Modifier and Type | Field and Description |
|---|---|
private Java.TypeDeclaration |
declaringType |
boolean |
statiC
Whether this declaration has the STATIC modifier
|
NOWHERE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeBodyDeclaration(Location location,
boolean statiC) |
| Modifier and Type | Method and Description |
|---|---|
Java.TypeDeclaration |
getDeclaringType() |
Java.Scope |
getEnclosingScope() |
boolean |
isStatic() |
void |
setDeclaringType(Java.TypeDeclaration declaringType)
Sets the type declaration that this declaration belongs to.
|
void |
setEnclosingScope(Java.Scope enclosingScope)
Forward-implements
Java.BlockStatement.setEnclosingScope(Java.Scope). |
getLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptgetLocation, throwCompileExceptionprivate Java.TypeDeclaration declaringType
public final boolean statiC
protected AbstractTypeBodyDeclaration(Location location, boolean statiC)
public void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclarationsetDeclaringType in interface Java.TypeBodyDeclarationpublic Java.TypeDeclaration getDeclaringType()
getDeclaringType in interface Java.TypeBodyDeclarationpublic boolean isStatic()
isStatic in interface Java.TypeBodyDeclarationpublic void setEnclosingScope(Java.Scope enclosingScope)
Java.BlockStatement.setEnclosingScope(Java.Scope).public Java.Scope getEnclosingScope()
getEnclosingScope in interface Java.Scopenull