|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.controlflow.AnnotatedLSTNode.BBEnum
static final class AnnotatedLSTNode.BBEnum
This class implements BasicBlockEnumeration. It is
used for iterating over basic blocks in a fashion determined by
the order in which basic blocks are added.
| Field Summary | |
|---|---|
private ArrayList<BasicBlock> |
blocks
ArrayList holding basic blocks |
private int |
currentBlock
The current block of the iterator |
| Fields inherited from interface org.jikesrvm.compilers.opt.ir.BasicBlockEnumeration |
|---|
Empty |
| Constructor Summary | |
|---|---|
AnnotatedLSTNode.BBEnum()
Constructor |
|
| Method Summary | |
|---|---|
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 |
next()
Get the next element from the vector and return without requiring a cast |
BasicBlock |
nextElement()
Get the next element from the vector and move the current block along |
String |
toString()
String representation of the object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final ArrayList<BasicBlock> blocks
private int currentBlock
| Constructor Detail |
|---|
public AnnotatedLSTNode.BBEnum()
| Method Detail |
|---|
public void add(BasicBlock block)
block - to insertpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<BasicBlock>public BasicBlock nextElement()
nextElement in interface Enumeration<BasicBlock>public BasicBlock next()
next in interface BasicBlockEnumerationpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||