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.
|
private Java.TryStatement |
enclosingTryStatement
Link to the enclosing TRY statement.
|
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.
|
java.lang.String |
toString() |
getLocation, throwCompileException
public final Java.FunctionDeclarator.FormalParameter caughtException
public final Java.Block body
private Java.TryStatement enclosingTryStatement
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.Scope
null
public java.lang.String toString()
toString
in class java.lang.Object