|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uci.eecs.doc.cascade.graph.Vertex
edu.uci.eecs.doc.cascade.graph.BasicBlock
public class BasicBlock
Represents a sequence of bytecode instructions with at most one branch. If a branch exists, it occurs at the end of the block.
| Field Summary | |
|---|---|
protected List<InstructionHandle> |
instructions
|
protected Node |
node
|
| Fields inherited from class edu.uci.eecs.doc.cascade.graph.Vertex |
|---|
graph |
| Constructor Summary | |
|---|---|
BasicBlock(Graph graph,
Node node)
Creates a new BasicBlock object. |
|
BasicBlock(Graph graph,
Node node,
List<InstructionHandle> instructions)
Creates a new BasicBlock object. |
|
| Method Summary | |
|---|---|
List<InstructionHandle> |
getInstructions()
Returns the list of instructions represented by this basic block. |
Node |
getNode()
Returns the control flow tree node corresponding to this basic block. |
boolean |
isReturn()
Returns whether this basic block contains a return instruction. |
String |
toString()
Converts the basic block to a string representation |
| Methods inherited from class edu.uci.eecs.doc.cascade.graph.Vertex |
|---|
asList, getGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Node node
protected List<InstructionHandle> instructions
| Constructor Detail |
|---|
public BasicBlock(Graph graph,
Node node)
graph - the control flow graph to which this basic block belongsnode - a control flow tree node that corresponds to the basic block
public BasicBlock(Graph graph,
Node node,
List<InstructionHandle> instructions)
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| Method Detail |
|---|
public Node getNode()
public List<InstructionHandle> getInstructions()
public boolean isReturn()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||