|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.util.TreeNodeChildrenEnumerator
final class TreeNodeChildrenEnumerator
This class provides enumeration of all children of a TreeNode
| Field Summary | |
|---|---|
private TreeNode |
currentChild
the current child we are working on |
| Constructor Summary | |
|---|---|
TreeNodeChildrenEnumerator(TreeNode node)
Provides iteration over a list of children tree nodes |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
any elements left? |
TreeNode |
nextElement()
returns the next element in the list iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private TreeNode currentChild
| Constructor Detail |
|---|
TreeNodeChildrenEnumerator(TreeNode node)
node - Root of the tree to iterate over.| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<TreeNode>public TreeNode nextElement()
nextElement in interface Enumeration<TreeNode>
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||