T
- public class JSIterator<T> extends JSObjectWrapper implements java.util.Iterator<T>
Modifier and Type | Class and Description |
---|---|
class |
JSIterator.Next
Represents the object returned by 'next'
|
JSPropertyAttributeDontDelete, JSPropertyAttributeDontEnum, JSPropertyAttributeNone, JSPropertyAttributeReadOnly
Constructor and Description |
---|
JSIterator(JSObject iterator)
Wraps a JavaScript iterator in a Java iterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
JSIterator.Next |
jsnext()
The 'next' JavaScript iterator object
|
T |
next() |
void |
remove() |
getJSObject
__nullFunc, callAsFunction, callAsFunction, callAsFunction, callAsFunction, deleteProperty, getThis, hashCode, hasProperty, isConstructor, isFunction, property, property, property, propertyAtIndex, propertyAtIndex, propertyNames, prototype, prototype
equals, getContext, isArray, isBoolean, isDate, isEqual, isInstanceOfConstructor, isNull, isNumber, isObject, isStrictEqual, isString, isUndefined, toBoolean, toFunction, toJSArray, toJSON, toJSON, toNumber, toObject, toString, valueRef
public JSIterator(JSObject iterator)
iterator
- the JavaScript iterator object. Assumes the object is a properly formed JS
iteratorpublic JSIterator.Next jsnext()
public T next()
next
in interface java.util.Iterator<T>
Iterator.next()
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
Iterator.hasNext()
public void remove()
remove
in interface java.util.Iterator<T>
java.lang.UnsupportedOperationException
- alwaysIterator.remove()