static final class AnnotatedLSTNode.BBEnum extends Object implements Enumeration<BasicBlock>
BasicBlocks. It is
used for iterating over basic blocks in a fashion determined by
the order in which basic blocks are added.| Modifier and Type | Field and Description |
|---|---|
private ArrayList<BasicBlock> |
blocks
ArrayList holding basic blocks
|
private int |
currentBlock
The current block of the iterator
|
| Constructor and Description |
|---|
BBEnum()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(BasicBlock block)
Insert a block to the end of the list
|
boolean |
hasMoreElements()
Is the iterator at the end of the vector
|
BasicBlock |
nextElement()
Get the next element from the vector and move the current block along
|
String |
toString()
String representation of the object
|
private final ArrayList<BasicBlock> blocks
private int currentBlock
BBEnum()
public void add(BasicBlock block)
block - to insertpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<BasicBlock>public BasicBlock nextElement()
nextElement in interface Enumeration<BasicBlock>