|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.cl.BytecodeCollector
Collects the bytecode for a method while walking the method control flow graph. Inspired by Quilt 0.5's BytecodeLayout,
Constructor Summary | |
BytecodeCollector()
No-arg constructor. |
Method Summary | |
void |
discoverEdge(Edge e)
Action taken upon first encountering an edge. |
void |
discoverGraph(Directed g)
Action taken upon beginning to visit the graph. |
void |
discoverVertex(Vertex vtx)
Action taken upon beginning to visit a graph vertex. |
void |
finishEdge(Edge e)
Action taken before departing an edge. |
void |
finishGraph(Directed g)
Finish the graph. |
void |
finishVertex(Vertex vtx)
Action taken before leaving a vertex in the graph. |
org.apache.bcel.generic.CodeExceptionGen[] |
getCEGs(CatchData[] cd)
Given an array of exception handler descriptions, return an array of CodeExceptionGen. |
org.apache.bcel.generic.InstructionList |
getInstructionList()
Get the instruction list after completing walking the graph, that is, after calling visit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BytecodeCollector()
Method Detail |
public void discoverGraph(Directed g)
discoverGraph
in interface Visitor
g
- Directed graph to be visited.public void discoverVertex(Vertex vtx)
discoverVertex
in interface Visitor
public void discoverEdge(Edge e)
discoverEdge
in interface Visitor
e
- A FlowControlEdge, a weighted, directed edge.public void finishEdge(Edge e)
finishEdge
in interface Visitor
e
- The control flow graph edge.public void finishVertex(Vertex vtx)
finishVertex
in interface Visitor
CodeVertex.getInstructionList
public void finishGraph(Directed g)
finishGraph
in interface Visitor
g
- The control flow graph - ignored.public org.apache.bcel.generic.InstructionList getInstructionList()
public org.apache.bcel.generic.CodeExceptionGen[] getCEGs(CatchData[] cd)
cd
- Array of exception handler descriptions in terms of vertices
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |