public class SimpleArray extends SimpleScriptable implements ScriptableWithFallbackGetter
MimeTypeArray).| Constructor and Description |
|---|
SimpleArray()
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index,
org.mozilla.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.
|
Object |
getWithFallback(String name)
Fallback called when no configured property is found with the given name
on the
Scriptable object. |
Object |
jsxFunction_item(int index)
Return the item at the given index
|
Object |
jsxFunction_namedItem(String name)
Return the item at the given index
|
int |
jsxGet_length()
Get the array size.
|
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setDomNode, setHtmlElementassociateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic SimpleArray()
public Object jsxFunction_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, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectpublic Object jsxFunction_namedItem(String name)
name - the item nameprotected String getItemName(Object element)
element - the array's elementpublic int jsxGet_length()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.