|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Compiler.Quad.ExceptionHandler
public class ExceptionHandler
Exception handler for basic blocks. Each exception handler handles a type of exception. When an exception is raised at run time, a routine looks up the list of exception handlers that guard the location where the exception was raised. It checks each of the exception handlers in order. Control flow branches to the first exception handler whose type matches the type of the raised exception. Note that the type check is a Java "assignable" type check, and therefore inheritance and interface checks may be necessary.
ExceptionHandlerList
,
TypeCheck
Constructor Summary | |
---|---|
ExceptionHandler(jq_Class ex_type,
int numOfHandledBlocks,
BasicBlock entry)
Creates new ExceptionHandler. |
Method Summary | |
---|---|
BasicBlock |
getEntry()
Returns the entry point for this exception handler. |
jq_Class |
getExceptionType()
Returns the type of exception that this exception handler catches. |
List.BasicBlock |
getHandledBasicBlocks()
Returns an iteration of the handled basic blocks. |
boolean |
mayCatch(jq_Class exType)
|
boolean |
mustCatch(jq_Class exType)
|
void |
setEntry(BasicBlock entry)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExceptionHandler(jq_Class ex_type, int numOfHandledBlocks, BasicBlock entry)
ex_type
- type of exception to catch.numOfHandledBlocks
- estimated number of handled basic blocks.entry
- exception handler entry point.Method Detail |
---|
public jq_Class getExceptionType()
public List.BasicBlock getHandledBasicBlocks()
public BasicBlock getEntry()
public void setEntry(BasicBlock entry)
public boolean mustCatch(jq_Class exType)
public boolean mayCatch(jq_Class exType)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |