Java.BlockStatement, Java.Locatable, Java.Scopepublic static final class Java.TryStatement extends Java.Statement
| Modifier and Type | Field | Description |
|---|---|---|
Java.BlockStatement |
body |
The body of the TRY statement.
|
List<Java.CatchClause> |
catchClauses |
The list of catch clauses (including the 'default' clause) of the TRY statement.
|
Java.Block |
optionalFinally |
The optional 'finally' block of the TRY statement.
|
NOWHERElocalVariables| Constructor | Description |
|---|---|
TryStatement(Location location,
Java.BlockStatement body,
List<Java.CatchClause> catchClauses,
Java.Block optionalFinally) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
Invokes the '
visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
getLocation, throwCompileExceptiongetLocation, throwCompileExceptionfindLocalVariable, getEnclosingScope, setEnclosingScopepublic final Java.BlockStatement body
public final List<Java.CatchClause> catchClauses
public final Java.Block optionalFinally
public TryStatement(Location location, Java.BlockStatement body, List<Java.CatchClause> catchClauses, Java.Block optionalFinally)
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.Copyright © 2001–2019. All rights reserved.