public class NativeMap extends Object implements org.mozilla.javascript.Scriptable, org.mozilla.javascript.Wrapper
Constructor and Description |
---|
NativeMap(org.mozilla.javascript.Scriptable scope,
Map<Object,Object> map)
Construct
|
Modifier and Type | Method and Description |
---|---|
void |
delete(int index) |
void |
delete(String name) |
Object |
get(int index,
org.mozilla.javascript.Scriptable start) |
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) |
void |
put(int index,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
put(String name,
org.mozilla.javascript.Scriptable start,
Object value) |
void |
setParentScope(org.mozilla.javascript.Scriptable parent) |
void |
setPrototype(org.mozilla.javascript.Scriptable prototype) |
Object |
unwrap() |
static NativeMap |
wrap(org.mozilla.javascript.Scriptable scope,
Map<Object,Object> map)
Construct
|
public static NativeMap wrap(org.mozilla.javascript.Scriptable scope, Map<Object,Object> map)
scope
- Scriptablepublic Object unwrap()
unwrap
in interface org.mozilla.javascript.Wrapper
public String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
public Object get(String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
public Object get(int index, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
public boolean has(String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
public boolean has(int index, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
public void put(String name, org.mozilla.javascript.Scriptable start, Object value)
put
in interface org.mozilla.javascript.Scriptable
public void put(int index, org.mozilla.javascript.Scriptable start, Object value)
put
in interface org.mozilla.javascript.Scriptable
public void delete(String name)
delete
in interface org.mozilla.javascript.Scriptable
public void delete(int index)
delete
in interface org.mozilla.javascript.Scriptable
public org.mozilla.javascript.Scriptable getPrototype()
getPrototype
in interface org.mozilla.javascript.Scriptable
public void setPrototype(org.mozilla.javascript.Scriptable prototype)
setPrototype
in interface org.mozilla.javascript.Scriptable
public org.mozilla.javascript.Scriptable getParentScope()
getParentScope
in interface org.mozilla.javascript.Scriptable
public void setParentScope(org.mozilla.javascript.Scriptable parent)
setParentScope
in interface org.mozilla.javascript.Scriptable
public Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
public Object getDefaultValue(Class hint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
public boolean hasInstance(org.mozilla.javascript.Scriptable value)
hasInstance
in interface org.mozilla.javascript.Scriptable
Copyright © 2005–2017 Alfresco Software. All rights reserved.