public static class Java.CatchClause extends Java.Located implements Java.Scope
| Modifier and Type | Field and Description |
|---|---|
Java.Block |
body
Body of the CATCH clause.
|
Java.FunctionDeclarator.FormalParameter |
caughtException
Container for the type and the name of the caught exception.
|
boolean |
reachable
Flag for catch clause reachability analysis.
|
NOWHERE| Constructor and Description |
|---|
CatchClause(Location location,
Java.FunctionDeclarator.FormalParameter caughtException,
Java.Block body) |
| Modifier and Type | Method and Description |
|---|---|
Java.Scope |
getEnclosingScope() |
void |
setEnclosingTryStatement(Java.TryStatement enclosingTryStatement)
Links this CATCH clause to the enclosing TRY statement.
|
String |
toString() |
getLocation, throwCompileExceptionpublic final Java.FunctionDeclarator.FormalParameter caughtException
public final Java.Block body
public boolean reachable
public CatchClause(Location location, Java.FunctionDeclarator.FormalParameter caughtException, Java.Block body)
public void setEnclosingTryStatement(Java.TryStatement enclosingTryStatement)
public Java.Scope getEnclosingScope()
getEnclosingScope in interface Java.Scopenull