public static final class Java.TryStatement extends Java.Statement
Modifier and Type | Field and Description |
---|---|
Java.BlockStatement |
body
The body of the TRY statement.
|
java.util.List<Java.CatchClause> |
catchClauses
The list of catch clauses (including the 'default' clause) of the TRY statement.
|
(package private) CodeContext.Offset |
finallyOffset
This one's created iff the TRY statement has a FINALLY clause when the compilation of the TRY statement
begins.
|
Java.Block |
optionalFinally
The optional 'finally' block of the TRY statement.
|
localVariables
NOWHERE
Constructor and Description |
---|
TryStatement(Location location,
Java.BlockStatement body,
java.util.List<Java.CatchClause> catchClauses,
Java.Block optionalFinally) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the '
visit...() ' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
java.lang.String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public final Java.BlockStatement body
public final java.util.List<Java.CatchClause> catchClauses
public final Java.Block optionalFinally
CodeContext.Offset finallyOffset
public TryStatement(Location location, Java.BlockStatement body, java.util.List<Java.CatchClause> catchClauses, Java.Block optionalFinally)
public java.lang.String toString()
toString
in class java.lang.Object
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatement
visit...()
' method of Visitor.BlockStatementVisitor
for the concrete
Java.BlockStatement
type.