| java.lang.Object com.caucho.quercus.lib.spl.RecursiveIteratorIterator
Method Summary | |
public void | beginChildren() Template method provided for overriding classes, called right after
getChildren() and rewind() on the child, default implemenation does
nothing. | public void | beginIteration() Template method provided for overriding classes, default implementation does
nothing. | public Value | callGetChildren() Returns current iterator's children. | public boolean | callHasChildren() Returns true if current iterator children. | public Value | current() | public void | endChildren() Template method provided for overriding classes, called after
an iteterator has been used up. | public void | endIteration() Template method provided for overriding classe, default implementation does
nothing. | public int | getDepth() Returns the current depth. | public ObjectValue | getInnerIterator() | public int | getMaxDepth() Returns the maximum depth. | public Value | getSubIterator(int depth) | public Value | key() | public void | next() | public void | nextElement() | public void | rewind() Rewind to the first iterator, calling endChildren() along the way
as appropriate. | public void | setMaxDepth(int maxDepth) Sets the maximum depth. | public boolean | valid() Return true if the iterator is valid. |
CATCH_GET_CHILD | final public static int CATCH_GET_CHILD(Code) | | |
CHILD_FIRST | final public static int CHILD_FIRST(Code) | | |
LEAVES_ONLY | final public static int LEAVES_ONLY(Code) | | |
SELF_FIRST | final public static int SELF_FIRST(Code) | | |
RecursiveIteratorIterator | public RecursiveIteratorIterator(Env env, ObjectValue iter, int mode, int flags)(Code) | | Parameters: iter - a RecursiveIterator Parameters: mode - - LEAVES_ONLY
- (default) only iterate leaves
- SELF_FIRST
- iterate parents prior to children
- CHILD_FIRST
- iterate children prior to parents
Parameters: flags - - CATCH_GET_CHILD
- ignore exceptions in getChildren() call
|
beginChildren | public void beginChildren()(Code) | | Template method provided for overriding classes, called right after
getChildren() and rewind() on the child, default implemenation does
nothing.
|
beginIteration | public void beginIteration()(Code) | | Template method provided for overriding classes, default implementation does
nothing.
|
callGetChildren | public Value callGetChildren()(Code) | | Returns current iterator's children.
|
callHasChildren | public boolean callHasChildren()(Code) | | Returns true if current iterator children.
|
endChildren | public void endChildren()(Code) | | Template method provided for overriding classes, called after
an iteterator has been used up.
|
endIteration | public void endIteration()(Code) | | Template method provided for overriding classe, default implementation does
nothing.
|
getDepth | public int getDepth()(Code) | | Returns the current depth.
|
getMaxDepth | public int getMaxDepth()(Code) | | Returns the maximum depth.
|
getSubIterator | public Value getSubIterator(int depth)(Code) | | Returns the iterator at the given depth
Parameters: depth - the depth, default is current depth |
nextElement | public void nextElement()(Code) | | Template method provided for overriding classes, called when
the next element is available
|
rewind | public void rewind()(Code) | | Rewind to the first iterator, calling endChildren() along the way
as appropriate.
|
setMaxDepth | public void setMaxDepth(int maxDepth)(Code) | | Sets the maximum depth.
|
valid | public boolean valid()(Code) | | Return true if the iterator is valid.
|
|
|