|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
helma.scripting.rhino.MapWrapper
public class MapWrapper
A class that wraps a Java Map as a native JavaScript object. This is used by the RhinoCore Wrapper for instances of helma.util.SystemMap and helma.util.WrappedMap.
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
MapWrapper()
Creates a new MapWrapper object. |
|
MapWrapper(java.util.Map map,
RhinoCore core)
Creates a new MapWrapper object. |
Method Summary | |
---|---|
void |
delete(int idx)
|
void |
delete(java.lang.String name)
|
java.lang.Object |
get(int idx,
org.mozilla.javascript.Scriptable start)
|
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
java.lang.String |
getClassName()
Return the class name for wrapped maps. |
java.lang.Object |
getDefaultValue(java.lang.Class hint)
|
java.lang.Object[] |
getIds()
Return an array containing the property key values of this map. |
boolean |
has(int idx,
org.mozilla.javascript.Scriptable start)
|
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
|
void |
put(int idx,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
|
void |
put(java.lang.String name,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
|
java.lang.String |
toString()
Return a string representation for this wrapped map. |
java.lang.Object |
unwrap()
Return the wrapped Map object. |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, hasInstance, hasProperty, hasProperty, isConst, isSealed, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapWrapper()
public MapWrapper(java.util.Map map, RhinoCore core)
map
- the Mapcore
- the RhinoCore instanceMethod Detail |
---|
public void put(java.lang.String name, org.mozilla.javascript.Scriptable start, java.lang.Object value)
put
in interface org.mozilla.javascript.Scriptable
put
in class org.mozilla.javascript.ScriptableObject
name
- ...start
- ...value
- ...public java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
name
- ...start
- ...
public boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
name
- ...start
- ...
public void delete(java.lang.String name)
delete
in interface org.mozilla.javascript.Scriptable
delete
in class org.mozilla.javascript.ScriptableObject
name
- ...public void put(int idx, org.mozilla.javascript.Scriptable start, java.lang.Object value)
put
in interface org.mozilla.javascript.Scriptable
put
in class org.mozilla.javascript.ScriptableObject
idx
- ...start
- ...value
- ...public java.lang.Object get(int idx, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
idx
- ...start
- ...
public boolean has(int idx, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
idx
- ...start
- ...
public void delete(int idx)
delete
in interface org.mozilla.javascript.Scriptable
delete
in class org.mozilla.javascript.ScriptableObject
idx
- ...public java.lang.Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
getIds
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object unwrap()
unwrap
in interface org.mozilla.javascript.Wrapper
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |