Java.Locatable
, Java.Scope
, Java.TypeBodyDeclaration
Java.FunctionDeclarator
, Java.Initializer
public abstract static class Java.AbstractTypeBodyDeclaration extends Java.Located implements Java.TypeBodyDeclaration
Java.TypeBodyDeclaration
.Modifier and Type | Field | Description |
---|---|---|
boolean |
statiC |
Whether this declaration has the STATIC modifier
|
NOWHERE
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractTypeBodyDeclaration(Location location,
boolean statiC) |
Modifier and Type | Method | 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, throwCompileException
getLocation, throwCompileException
accept
protected AbstractTypeBodyDeclaration(Location location, boolean statiC)
public void setDeclaringType(Java.TypeDeclaration declaringType)
Java.TypeBodyDeclaration
setDeclaringType
in interface Java.TypeBodyDeclaration
public Java.TypeDeclaration getDeclaringType()
getDeclaringType
in interface Java.TypeBodyDeclaration
public boolean isStatic()
isStatic
in interface Java.TypeBodyDeclaration
public void setEnclosingScope(Java.Scope enclosingScope)
Java.BlockStatement.setEnclosingScope(Java.Scope)
.public Java.Scope getEnclosingScope()
getEnclosingScope
in interface Java.Scope
null
Copyright © 2001–2019. All rights reserved.