public class ScriptableWrappedMap extends Object implements ScriptableMap, org.mozilla.javascript.Wrapper
Access should be by string key only - not integer index - unless you are sure the wrapped map will maintain insertion order of the elements.
| Constructor and Description |
|---|
ScriptableWrappedMap(Map map)
Construct
|
ScriptableWrappedMap(org.mozilla.javascript.Scriptable scope,
Map map)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
delete(int index) |
void |
delete(String name) |
Set |
entrySet() |
Object |
get(int index,
org.mozilla.javascript.Scriptable start) |
Object |
get(Object key) |
Object |
get(String name,
org.mozilla.javascript.Scriptable start) |
String |
getClassName() |
Object |
getDefaultValue(Class hint) |
Object[] |
getIds() |
org.mozilla.javascript.Scriptable |
getParentScope() |
org.mozilla.javascript.Scriptable |
getPrototype() |
boolean |
has(int index,
org.mozilla.javascript.Scriptable start) |
boolean |
has(String name,
org.mozilla.javascript.Scriptable start) |
boolean |
hasInstance(org.mozilla.javascript.Scriptable value) |
boolean |
isEmpty() |
Set |
keySet() |
void |
put(int index,
org.mozilla.javascript.Scriptable start,
Object value) |
Object |
put(Object key,
Object value) |
void |
put(String name,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
putAll(Map t) |
Object |
remove(Object key) |
void |
setParentScope(org.mozilla.javascript.Scriptable parent) |
void |
setPrototype(org.mozilla.javascript.Scriptable prototype) |
int |
size() |
String |
toString() |
Object |
unwrap() |
Collection |
values() |
static ScriptableWrappedMap |
wrap(org.mozilla.javascript.Scriptable scope,
Map<Object,Object> map)
Construction
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ScriptableWrappedMap(Map map)
public ScriptableWrappedMap(org.mozilla.javascript.Scriptable scope,
Map map)
public static ScriptableWrappedMap wrap(org.mozilla.javascript.Scriptable scope, Map<Object,Object> map)
public Object unwrap()
unwrap in interface org.mozilla.javascript.Wrapperpublic String getClassName()
getClassName in interface org.mozilla.javascript.Scriptablepublic Object get(String name, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptablepublic Object get(int index, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptablepublic boolean has(String name, org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablepublic boolean has(int index,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablepublic void put(String name, org.mozilla.javascript.Scriptable start, Object value)
put in interface org.mozilla.javascript.Scriptablepublic void put(int index,
org.mozilla.javascript.Scriptable start,
Object value)
put in interface org.mozilla.javascript.Scriptablepublic void delete(String name)
delete in interface org.mozilla.javascript.Scriptablepublic void delete(int index)
delete in interface org.mozilla.javascript.Scriptablepublic org.mozilla.javascript.Scriptable getPrototype()
getPrototype in interface org.mozilla.javascript.Scriptablepublic void setPrototype(org.mozilla.javascript.Scriptable prototype)
setPrototype in interface org.mozilla.javascript.Scriptablepublic org.mozilla.javascript.Scriptable getParentScope()
getParentScope in interface org.mozilla.javascript.Scriptablepublic void setParentScope(org.mozilla.javascript.Scriptable parent)
setParentScope in interface org.mozilla.javascript.Scriptablepublic Object[] getIds()
getIds in interface org.mozilla.javascript.Scriptablepublic Object getDefaultValue(Class hint)
getDefaultValue in interface org.mozilla.javascript.Scriptablepublic boolean hasInstance(org.mozilla.javascript.Scriptable value)
hasInstance in interface org.mozilla.javascript.Scriptablepublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Collection values()
Copyright © 2009–2017. All rights reserved.