org.jikesrvm.compilers.opt.util
Class DepthFirstEnumerator

java.lang.Object
  extended by org.jikesrvm.compilers.opt.util.DepthFirstEnumerator
All Implemented Interfaces:
Enumeration<GraphNode>

public final class DepthFirstEnumerator
extends Object
implements Enumeration<GraphNode>


Field Summary
(package private)  int mark
           
(package private)  Stack<GraphNode> stack
           
 
Constructor Summary
DepthFirstEnumerator(GraphNode start, int markNumber)
           
 
Method Summary
 boolean hasMoreElements()
           
 GraphNode next()
           
 GraphNode nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

Stack<GraphNode> stack

mark

int mark
Constructor Detail

DepthFirstEnumerator

public DepthFirstEnumerator(GraphNode start,
                            int markNumber)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<GraphNode>

nextElement

public GraphNode nextElement()
Specified by:
nextElement in interface Enumeration<GraphNode>

next

public GraphNode next()