janino.net

org.codehaus.janino
Class Java.CatchClause

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.CatchClause
All Implemented Interfaces:
Java.Locatable, Java.Scope
Enclosing class:
Java

public static class Java.CatchClause
extends Java.Located
implements Java.Scope

Representation of a JLS7 14.20.1 CATCH clause.


Field Summary
 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.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.CatchClause(Location location, Java.FunctionDeclarator.FormalParameter caughtException, Java.Block body)
           
 
Method Summary
 Java.Scope getEnclosingScope()
           
 void setEnclosingTryStatement(Java.TryStatement enclosingTryStatement)
          Links this CATCH clause to the enclosing TRY statement.
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

caughtException

public final Java.FunctionDeclarator.FormalParameter caughtException
Container for the type and the name of the caught exception.


body

public final Java.Block body
Body of the CATCH clause.


reachable

public boolean reachable
Flag for catch clause reachability analysis.

Constructor Detail

Java.CatchClause

public Java.CatchClause(Location location,
                        Java.FunctionDeclarator.FormalParameter caughtException,
                        Java.Block body)
Method Detail

setEnclosingTryStatement

public void setEnclosingTryStatement(Java.TryStatement enclosingTryStatement)
Links this CATCH clause to the enclosing TRY statement.


getEnclosingScope

public Java.Scope getEnclosingScope()
Specified by:
getEnclosingScope in interface Java.Scope
Returns:
The scope that encloses this scope, or null

toString

public String toString()
Overrides:
toString in class Object

janino.net