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