Package org.codehaus.janino
Class Java.CatchClause
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.CatchClause
- All Implemented Interfaces:
Java.Locatable
,Java.Scope
- Enclosing class:
Java
Representation of a JLS7 14.20.1 CATCH clause.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.BlockStatement
Body of the CATCH clause.final Java.CatchParameter
Container for the types and the name of the caught exception.private Java.TryStatement
Link to the enclosing TRY statement.boolean
Flag for catch clause reachability analysis.Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionCatchClause
(Location location, Java.CatchParameter catchParameter, Java.BlockStatement body) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnclosingTryStatement
(Java.TryStatement enclosingTryStatement) Links this CATCH clause to the enclosing TRY statement.toString()
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Field Details
-
catchParameter
Container for the types and the name of the caught exception. -
body
Body of the CATCH clause. -
enclosingTryStatement
Link to the enclosing TRY statement. -
reachable
public boolean reachableFlag for catch clause reachability analysis.
-
-
Constructor Details
-
CatchClause
-
-
Method Details
-
setEnclosingTryStatement
Links this CATCH clause to the enclosing TRY statement. -
getEnclosingScope
- Specified by:
getEnclosingScope
in interfaceJava.Scope
- Returns:
- The scope that encloses this scope, or
null
-
toString
-