public class NodeList extends AbstractList
AbstractList.EffectOnCache
Constructor and Description |
---|
NodeList()
Creates an instance.
|
NodeList(DomNode domNode,
boolean attributeChangeSensitive)
Creates an instance.
|
NodeList(DomNode domNode,
List<DomNode> initialElements)
Constructs an instance with an initial cache value.
|
Modifier and Type | Method and Description |
---|---|
Iterator |
entries()
Returns an
Iterator allowing to go through all key/value pairs contained in this object. |
void |
forEach(Object callback)
Calls the
callback given in parameter once for each value pair in the list, in insertion order. |
Iterator |
keys()
Returns an
Iterator allowing to go through all keys contained in this object. |
static NodeList |
staticNodeList(HtmlUnitScriptable parentScope,
List<DomNode> elements)
Gets a static NodeList.
|
Iterator |
values()
Returns an
Iterator allowing to go through all keys contained in this object. |
addElementIds, avoidObjectDetection, call, computeElements, construct, create, equivalentValues, get, getCandidates, getEffectOnCache, getElements, getIds, getLength, getScriptableForElement, getWithPreemption, getWithPreemptionByName, has, has, isMatching, item, setAvoidObjectDetection, setDomNode, toString
clone, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, 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, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public NodeList()
public NodeList(DomNode domNode, boolean attributeChangeSensitive)
domNode
- the DomNode
attributeChangeSensitive
- indicates if the content of the collection may change when an attribute
of a descendant node of parentScope changes (attribute added, modified or removed)public static NodeList staticNodeList(HtmlUnitScriptable parentScope, List<DomNode> elements)
parentScope
- the parent scopeelements
- the elementspublic Iterator keys()
Iterator
allowing to go through all keys contained in this object.Iterator
public Iterator values()
Iterator
allowing to go through all keys contained in this object.Iterator
public Iterator entries()
Iterator
allowing to go through all key/value pairs contained in this object.Iterator
public void forEach(Object callback)
callback
given in parameter once for each value pair in the list, in insertion order.callback
- function to execute for each elementCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.