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()
IBasicBlock
flowgraph
.getSuccessors
in interface IBasicBlock
public int size()
IBasicBlock
size
in interface IBasicBlock
public Instruction get(int idx)
IBasicBlock
get
in interface IBasicBlock
idx
- - the Instruction's position.public List<Instruction> getInstructions()
IBasicBlock
getInstructions
in interface IBasicBlock
public boolean canFallThrough()
canFallThrough
in interface IBasicBlock
Copyright © 2016 The Apache Software Foundation. All rights reserved.