com.caucho.quercus.lib.spl
Class RecursiveIteratorIterator

java.lang.Object
  extended by com.caucho.quercus.lib.spl.RecursiveIteratorIterator
All Implemented Interfaces:
Iterator, OuterIterator, Traversable

public class RecursiveIteratorIterator
extends java.lang.Object
implements OuterIterator, Traversable, Iterator


Field Summary
static int CATCH_GET_CHILD
           
static int CHILD_FIRST
           
static int LEAVES_ONLY
           
static int SELF_FIRST
           
 
Constructor Summary
RecursiveIteratorIterator(Env env, Iterator iterator, int mode, int flags)
           
 
Method Summary
 Value current(Env env)
          Returns the current value.
 Iterator getInnerIterator()
           
 Value key(Env env)
          Returns the current key.
 void next(Env env)
          Advances to the next row.
 void rewind(Env env)
          Rewinds the iterator so it is at the first row.
 java.lang.String toString()
           
 boolean valid(Env env)
          Returns true if the iterator currently points to a valid row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEAVES_ONLY

public static final int LEAVES_ONLY
See Also:
Constant Field Values

SELF_FIRST

public static final int SELF_FIRST
See Also:
Constant Field Values

CHILD_FIRST

public static final int CHILD_FIRST
See Also:
Constant Field Values

CATCH_GET_CHILD

public static final int CATCH_GET_CHILD
See Also:
Constant Field Values
Constructor Detail

RecursiveIteratorIterator

public RecursiveIteratorIterator(Env env,
                                 Iterator iterator,
                                 int mode,
                                 int flags)
Method Detail

getInnerIterator

public Iterator getInnerIterator()
Specified by:
getInnerIterator in interface OuterIterator

current

public Value current(Env env)
Returns the current value.

Specified by:
current in interface Iterator

key

public Value key(Env env)
Returns the current key.

Specified by:
key in interface Iterator

next

public void next(Env env)
Advances to the next row.

Specified by:
next in interface Iterator

rewind

public void rewind(Env env)
Rewinds the iterator so it is at the first row.

Specified by:
rewind in interface Iterator

valid

public boolean valid(Env env)
Returns true if the iterator currently points to a valid row.

Specified by:
valid in interface Iterator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object