public class Block extends Object implements IBasicBlock
IBasicBlock and is
the normal representation of a vertex in a
method's flowgraph.| Constructor and Description |
|---|
Block() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFallThrough()
Determines if control can fall through the end of the Block.
|
Instruction |
get(int idx)
Fetch the Instruction at the specified position.
|
List<Instruction> |
getInstructions()
Get the contents of the block.
|
Collection<IBasicBlock> |
getSuccessors()
Get this block's successors; this defines the set of
edges in the
flowgraph. |
int |
size()
How big is this block?
|
public Collection<IBasicBlock> getSuccessors()
IBasicBlockflowgraph.getSuccessors in interface IBasicBlockpublic int size()
IBasicBlocksize in interface IBasicBlockpublic Instruction get(int idx)
IBasicBlockget in interface IBasicBlockidx - - the Instruction's position.public List<Instruction> getInstructions()
IBasicBlockgetInstructions in interface IBasicBlockpublic boolean canFallThrough()
canFallThrough in interface IBasicBlockCopyright © 2016 The Apache Software Foundation. All rights reserved.