public class HTMLAllCollection extends HTMLCollection
HTMLCollection
for document.all
.AbstractList.EffectOnCache
Constructor and Description |
---|
HTMLAllCollection()
Creates an instance.
|
HTMLAllCollection(DomNode parentScope,
String description)
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) |
String |
getClassName()
Returns the JavaScript class name.
|
Object |
getDefaultValue(Class<?> hint)
Returns the JavaScript default value of this object.
|
protected boolean |
isGetWithPreemptionSearchName()
Returns whether
HTMLCollection.getWithPreemption(String) should search by name or not. |
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).
|
addElementIds, computeElements, emptyCollection, equivalentValues, getIds, getScriptableForElement, getWithPreemption, isMatching, nextNode, reset, tags
avoidObjectDetection, construct, get, getCandidates, getEffectOnCache, getElements, getLength, has, has, setAvoidObjectDetection, setDomNode, toString
clone, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public Object item(Object index)
item
in class HTMLCollection
index
- the index or key corresponding to the element or elements to returnprotected boolean isGetWithPreemptionSearchName()
HTMLCollection.getWithPreemption(String)
should search by name or not.isGetWithPreemptionSearchName
in class HTMLCollection
HTMLCollection.getWithPreemption(String)
should search by name or notpublic final Object namedItem(String name)
HTMLCollection
namedItem
in class HTMLCollection
name
- the name or id the element or elements to returnpublic Object getDefaultValue(Class<?> hint)
getDefaultValue
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getDefaultValue
in class SimpleScriptable
hint
- a hint as to the format of the default value (ignored in this case)public 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 AbstractList
public String getClassName()
getClassName
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getClassName
in class HtmlUnitScriptable
Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.