|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.cl.TryStacks
Manages try/catch blocks. Adds subgraphs to the method graph for each exception handler, building the graph that GraphTransformer hangs bytecode off. This module must cope with the fact that the compiler allocates exception handlers in no particular order. Hacked from earlier 0.5-compatible code.
Constructor Summary | |
TryStacks(org.apache.bcel.generic.CodeExceptionGen[] handlers,
SortedBlocks blocks,
ControlFlowGraph g)
Constructor setting up try/catch arrays. |
Method Summary | |
CatchData[] |
getCatchData()
Return an array of CatchData, with vertices for the beginning and end of the try block, a vertex for the handler, and the exception handled. |
java.util.Comparator |
getComparator()
Return the class TryStack uses to sort exception handlers. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TryStacks(org.apache.bcel.generic.CodeExceptionGen[] handlers, SortedBlocks blocks, ControlFlowGraph g)
handlers
- Array of exception handlers for a method.blocks
- Vertices indexed by position in bytecode (?).g
- Graph for the method.Method Detail |
public CatchData[] getCatchData()
public java.util.Comparator getComparator()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |