edu.uci.eecs.doc.cascade.graph
Class LoopBlock
java.lang.Object
edu.uci.eecs.doc.cascade.graph.Vertex
edu.uci.eecs.doc.cascade.graph.BasicBlock
edu.uci.eecs.doc.cascade.graph.LoopBlock
public class LoopBlock
- extends BasicBlock
A base class that represents the start of a loop.
- Author:
- Trevor Harmon
Fields inherited from class edu.uci.eecs.doc.cascade.graph.Vertex |
graph |
LoopBlock
protected LoopBlock(Graph graph,
Node node,
List<InstructionHandle> instructions)
- Creates a new LoopBlock object.
- Parameters:
graph
- the control flow graph to which this basic block belongsnode
- the control flow tree node that corresponds to the basic blockinstructions
- the list of bytecode instructions represented by this basic block
getInternalOutgoingEdges
public Set<Edge> getInternalOutgoingEdges()
- Returns the set of outgoing edges that lead from this block into the body of the
loop.
- Returns:
- a set of control flow edges
getExternalIncomingEdges
public Set<Edge> getExternalIncomingEdges()
- Returns the set of outgoing edges that lead to this block but are not part of
the body of the loop.
- Returns:
- a set of control flow edges