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.BlockStatementBody of the CATCH clause.final Java.CatchParameterContainer for the types and the name of the caught exception.private Java.TryStatementLink to the enclosing TRY statement.booleanFlag for catch clause reachability analysis.Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsConstructorDescriptionCatchClause(Location location, Java.CatchParameter catchParameter, Java.BlockStatement body) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEnclosingTryStatement(Java.TryStatement enclosingTryStatement) Links this CATCH clause to the enclosing TRY statement.toString()Methods inherited from class 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:
getEnclosingScopein interfaceJava.Scope- Returns:
- The scope that encloses this scope, or
null
-
toString
-