|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.lib.spl.RecursiveIteratorIterator
public class RecursiveIteratorIterator
| Field Summary | |
|---|---|
static int |
CATCH_GET_CHILD
|
static int |
CHILD_FIRST
|
static int |
LEAVES_ONLY
|
static int |
SELF_FIRST
|
| Constructor Summary | |
|---|---|
RecursiveIteratorIterator(Env env,
ObjectValue iter,
int mode,
int flags)
|
|
| Method Summary | |
|---|---|
void |
beginChildren()
Template method provided for overriding classes, called right after getChildren() and rewind() on the child, default implemenation does nothing. |
void |
beginIteration()
Template method provided for overriding classes, default implementation does nothing. |
Value |
callGetChildren()
Returns current iterator's children. |
boolean |
callHasChildren()
Returns true if current iterator children. |
Value |
current()
Returns the current value. |
void |
endChildren()
Template method provided for overriding classes, called after an iteterator has been used up. |
void |
endIteration()
Template method provided for overriding classe, default implementation does nothing. |
int |
getDepth()
Returns the current depth. |
ObjectValue |
getInnerIterator()
|
int |
getMaxDepth()
Returns the maximum depth. |
Value |
getSubIterator(int depth)
Returns the iterator at the given depth |
Value |
key()
Returns the current key. |
void |
next()
Advances to the next row. |
void |
nextElement()
Template method provided for overriding classes, called when the next element is available |
void |
rewind()
Rewind to the first iterator, calling endChildren() along the way as appropriate. |
void |
setMaxDepth(int maxDepth)
Sets the maximum depth. |
boolean |
valid()
Return true if the iterator is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEAVES_ONLY
public static final int SELF_FIRST
public static final int CHILD_FIRST
public static final int CATCH_GET_CHILD
| Constructor Detail |
|---|
public RecursiveIteratorIterator(Env env,
ObjectValue iter,
int mode,
int flags)
iter - a RecursiveIteratormode - flags - | Method Detail |
|---|
public void beginChildren()
public void beginIteration()
public Value callGetChildren()
public boolean callHasChildren()
public Value current()
Iterator
current in interface Iteratorpublic void endChildren()
public void endIteration()
public int getDepth()
public ObjectValue getInnerIterator()
getInnerIterator in interface OuterIteratorpublic int getMaxDepth()
public Value getSubIterator(int depth)
depth - the depth, default is current depthpublic Value key()
Iterator
key in interface Iteratorpublic void next()
Iterator
next in interface Iteratorpublic void nextElement()
public void rewind()
rewind in interface Iteratorpublic void setMaxDepth(int maxDepth)
public boolean valid()
valid in interface Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||