com.caucho.quercus.lib.spl
Class IteratorDelegate
java.lang.Object
com.caucho.quercus.lib.spl.IteratorDelegate
- All Implemented Interfaces:
- TraversableDelegate
public class IteratorDelegate
- extends java.lang.Object
- implements TraversableDelegate
A delegate that intercepts requests for iterator's and calls methods on
target objects that implement
the Iterator
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorDelegate
public IteratorDelegate()
getIterator
public java.util.Iterator<java.util.Map.Entry<Value,Value>> getIterator(Env env,
ObjectValue qThis)
- Description copied from interface:
TraversableDelegate
- Returns an iterator over the object's <key,value> entries.
- Specified by:
getIterator
in interface TraversableDelegate
getKeyIterator
public java.util.Iterator<Value> getKeyIterator(Env env,
ObjectValue qThis)
- Description copied from interface:
TraversableDelegate
- Returns an iterator over the object's keys
- Specified by:
getKeyIterator
in interface TraversableDelegate
getValueIterator
public java.util.Iterator<Value> getValueIterator(Env env,
ObjectValue qThis)
- Description copied from interface:
TraversableDelegate
- Returns an iterator over the object's values.
- Specified by:
getValueIterator
in interface TraversableDelegate