Java.BlockStatement
, Java.Locatable
, Java.Scope
, Java.TypeBodyDeclaration
public static final class Java.Initializer extends Java.AbstractTypeBodyDeclaration implements Java.BlockStatement
Modifier and Type | Field | Description |
---|---|---|
Java.Block |
block |
The block that poses the initializer.
|
statiC
NOWHERE
Constructor | Description |
---|---|
Initializer(Location location,
boolean statiC,
Java.Block block) |
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
Invokes the '
visit...() ' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
void |
accept(Visitor.TypeBodyDeclarationVisitor visitor) |
Invokes the '
visit...() ' method of Visitor.TypeBodyDeclarationVisitor for the concrete
Java.TypeBodyDeclaration type. |
Java.LocalVariable |
findLocalVariable(String name) |
|
String |
toString() |
getDeclaringType, getEnclosingScope, isStatic, setDeclaringType, setEnclosingScope
getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
getLocation, throwCompileException
public final Java.Block block
public Initializer(Location location, boolean statiC, Java.Block block)
public void accept(Visitor.TypeBodyDeclarationVisitor visitor)
Java.TypeBodyDeclaration
visit...()
' method of Visitor.TypeBodyDeclarationVisitor
for the concrete
Java.TypeBodyDeclaration
type.accept
in interface Java.TypeBodyDeclaration
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatement
visit...()
' method of Visitor.BlockStatementVisitor
for the concrete
Java.BlockStatement
type.accept
in interface Java.BlockStatement
public Java.LocalVariable findLocalVariable(String name)
findLocalVariable
in interface Java.BlockStatement
name
Copyright © 2001–2019. All rights reserved.