public class Iterator extends SimpleScriptable
Iterator.| Constructor and Description |
|---|
Iterator(String className,
Iterator<?> iterator)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
iterate(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scriptable,
Consumer<Object> processor)
Helper to support objects implementing the iterator interface.
|
SimpleScriptable |
next()
Returns the next object.
|
void |
setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope) |
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassNameapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void setParentScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
setParentScope in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablesetParentScope in class HtmlUnitScriptablepublic SimpleScriptable next()
public static boolean iterate(net.sourceforge.htmlunit.corejs.javascript.Context context,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scriptable,
Consumer<Object> processor)
context - the ContextthisObj - the this Objectscriptable - the scriptableprocessor - the method to be called for every objectCopyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.