public class SimpleArray extends SimpleScriptable implements ScriptableWithFallbackGetter
MimeTypeArray).| Constructor and Description |
|---|
SimpleArray()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Returns the element at the specified index, or NOT_FOUND if the
index is invalid.
|
protected String |
getItemName(Object element)
Gets the name of the element.
|
int |
getLength()
Gets the array size.
|
Object |
getWithFallback(String name)
Fallback called when no configured property is found with the given name
on the
Scriptable object. |
Object |
item(int index)
Returns the item at the given index.
|
Object |
namedItem(String name)
Returns the item at the given index.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, 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, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, 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, setGetterOrSetter, setPrototype, sizepublic SimpleArray()
public Object item(int index)
index - the indexpublic Object getWithFallback(String name)
Scriptable object.getWithFallback in interface ScriptableWithFallbackGettername - the name of the requested propertyScriptable.NOT_FOUND if nothing is foundpublic final Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic Object namedItem(String name)
name - the item nameprotected String getItemName(Object element)
element - the array's elementpublic int getLength()
Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.