Class HTMLAllCollection
- java.lang.Object
-
- org.htmlunit.corejs.javascript.ScriptableObject
-
- org.htmlunit.javascript.HtmlUnitScriptable
-
- org.htmlunit.javascript.host.dom.AbstractList
-
- org.htmlunit.javascript.host.html.HTMLCollection
-
- org.htmlunit.javascript.host.html.HTMLAllCollection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.htmlunit.corejs.javascript.Callable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.ExternalArrayData
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
public class HTMLAllCollection extends HTMLCollection
A specialHTMLCollection
fordocument.all
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.javascript.host.dom.AbstractList
AbstractList.EffectOnCache
-
-
Constructor Summary
Constructors Constructor Description HTMLAllCollection()
Creates an instance.HTMLAllCollection(DomNode parentScope)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
call(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args)
java.lang.Object
item(java.lang.Object index)
Returns the item or items corresponding to the specified index or key.void
jsConstructor()
JavaScript constructor.java.lang.Object
namedItem(java.lang.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.-
Methods inherited from class org.htmlunit.javascript.host.html.HTMLCollection
create, emptyCollection, getLength, getWithPreemptionByName, isGetWithPreemptionSearchName, iterator
-
Methods inherited from class org.htmlunit.javascript.host.dom.AbstractList
avoidObjectDetection, defineProperty, equivalentValues, getArrayElement, getArrayLength, getElements, getElementSupplier, getIsMatchingPredicate, getIt, getScriptableForElement, getWithPreemption, setArrayElement, setAvoidObjectDetection, setDomNode, setEffectOnCacheFunction, setElementsSupplier, setIsMatchingPredicate, toString
-
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
-
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, 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, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
-
-
-
Constructor Detail
-
HTMLAllCollection
public HTMLAllCollection()
Creates an instance.
-
HTMLAllCollection
public HTMLAllCollection(DomNode parentScope)
Creates an instance.- Parameters:
parentScope
- parent scope
-
-
Method Detail
-
jsConstructor
public void jsConstructor()
JavaScript constructor.- Overrides:
jsConstructor
in classHTMLCollection
-
item
public java.lang.Object item(java.lang.Object index)
Returns the item or items corresponding to the specified index or key.- Overrides:
item
in classHTMLCollection
- Parameters:
index
- the index or key corresponding to the element or elements to return- Returns:
- the element or elements corresponding to the specified index or key
- See Also:
- MSDN doc
-
namedItem
public final java.lang.Object namedItem(java.lang.String name)
Retrieves the item or items corresponding to the specified name (checks ids, and if that does not work, then names).- Overrides:
namedItem
in classHTMLCollection
- Parameters:
name
- the name or id the element or elements to return- Returns:
- the element or elements corresponding to the specified name or id
- See Also:
- MSDN doc
-
call
public java.lang.Object call(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args)
- Specified by:
call
in interfaceorg.htmlunit.corejs.javascript.Callable
- Overrides:
call
in classHTMLCollection
-
supportsParentheses
protected boolean supportsParentheses()
Is parentheses supported.- Overrides:
supportsParentheses
in classHTMLCollection
- Returns:
- true or false
-
-