public class HTMLAllCollection extends HTMLCollection
HTMLCollection
for document.all
.AbstractList.EffectOnCache
Constructor and Description |
---|
HTMLAllCollection()
Creates an instance.
|
HTMLAllCollection(DomNode parentScope)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
call(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args) |
Object |
item(Object index)
Returns the item or items corresponding to the specified index or key.
|
Object |
namedItem(String name)
Retrieves the item or items corresponding to the specified name (checks ids, and if
that does not work, then names).
|
protected boolean |
supportsParentheses()
Is parentheses supported.
|
create, emptyCollection, getWithPreemptionByName, isGetWithPreemptionSearchName, nextNode, reset, tags
avoidObjectDetection, computeElements, construct, defineProperty, equivalentValues, getArrayElement, getArrayLength, getCandidates, getEffectOnCache, getElements, getLength, getScriptableForElement, getWithPreemption, isMatching, setArrayElement, setAvoidObjectDetection, setDomNode, toString
clone, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, has, 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, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, 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, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public HTMLAllCollection()
public HTMLAllCollection(DomNode parentScope)
parentScope
- parent scopepublic Object item(Object index)
item
in class HTMLCollection
index
- the index or key corresponding to the element or elements to returnpublic final Object namedItem(String name)
namedItem
in class HTMLCollection
name
- the name or id the element or elements to returnpublic Object call(net.sourceforge.htmlunit.corejs.javascript.Context cx, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)
call
in interface net.sourceforge.htmlunit.corejs.javascript.Callable
call
in interface net.sourceforge.htmlunit.corejs.javascript.Function
call
in class HTMLCollection
protected boolean supportsParentheses()
supportsParentheses
in class HTMLCollection
Copyright © 2002–2021 Gargoyle Software Inc.. All rights reserved.