|
|||||||||
| 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 instance| Method Detail |
|---|
public void put(java.lang.String name,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectname - ...start - ...value - ...
public java.lang.Object get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectname - ...start - ...
public boolean has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectname - ...start - ...
public void delete(java.lang.String name)
delete in interface org.mozilla.javascript.Scriptabledelete in class org.mozilla.javascript.ScriptableObjectname - ...
public void put(int idx,
org.mozilla.javascript.Scriptable start,
java.lang.Object value)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectidx - ...start - ...value - ...
public java.lang.Object get(int idx,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectidx - ...start - ...
public boolean has(int idx,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectidx - ...start - ...
public void delete(int idx)
delete in interface org.mozilla.javascript.Scriptabledelete in class org.mozilla.javascript.ScriptableObjectidx - ...public java.lang.Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptablegetIds in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object unwrap()
unwrap in interface org.mozilla.javascript.Wrapperpublic java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic 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 | ||||||||