public class Storage extends SimpleScriptable
| Constructor and Description |
|---|
Storage() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Gets a named property from the object.
|
String |
getClassName()
Returns the JavaScript class name.
|
void |
jsxFunction_clear()
Clears all items.
|
Object |
jsxFunction_getItem(String key)
Returns the value of the specified key.
|
String |
jsxFunction_key(int index)
Returns the key of the specified index.
|
void |
jsxFunction_removeItem(String key)
Removes the specified key.
|
void |
jsxFunction_setItem(String key,
String data)
Sets the item value.
|
int |
jsxGet_length()
Returns the length property.
|
void |
put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value) |
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, 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, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic void put(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start, Object value)
put in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableput in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic Object get(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
SimpleScriptable.getWithPreemption(String).
For fallback case just implement ScriptableWithFallbackGetter.
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class SimpleScriptablepublic int jsxGet_length()
public void jsxFunction_removeItem(String key)
key - the item keypublic String jsxFunction_key(int index)
index - the indexpublic Object jsxFunction_getItem(String key)
key - the item keypublic void jsxFunction_setItem(String key, String data)
key - the item keydata - the valuepublic void jsxFunction_clear()
public String getClassName()
getClassName in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetClassName in class SimpleScriptableCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.