public class MapScriptObject extends java.lang.Object implements ScriptObject
EMPTY_ARRAY, UNDEFINED
Constructor and Description |
---|
MapScriptObject() |
MapScriptObject(java.util.Map map) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(int index)
Deletes the indexed property.
|
boolean |
delete(java.lang.String name)
Deletes the named property.
|
java.lang.Object |
get(int index)
Get the value of the "indexed" property.
|
java.lang.Object |
get(java.lang.String name)
Get the value of the named property.
|
java.lang.Object[] |
getIds() |
boolean |
has(int index)
Returns whether the indexed property exists or not.
|
boolean |
has(java.lang.String name)
Returns whether the named property exists or not.
|
void |
put(int index,
java.lang.Object value)
Set the value of the indexed property.
|
void |
put(java.lang.String name,
java.lang.Object value)
Set the value of the named property.
|
protected void |
putFunction(java.lang.Object target,
java.lang.reflect.Method method) |
protected void |
putFunction(java.lang.Object target,
java.lang.reflect.Method method,
boolean wrapArgs) |
protected void |
putFunction(java.lang.Object target,
java.lang.String name,
javax.script.Invocable invocable) |
public MapScriptObject()
public MapScriptObject(java.util.Map map)
public java.lang.Object[] getIds()
getIds
in interface ScriptObject
public java.lang.Object get(java.lang.String name)
ScriptObject
get
in interface ScriptObject
public java.lang.Object get(int index)
ScriptObject
get
in interface ScriptObject
public void put(java.lang.String name, java.lang.Object value)
ScriptObject
put
in interface ScriptObject
public void put(int index, java.lang.Object value)
ScriptObject
put
in interface ScriptObject
public boolean has(java.lang.String name)
ScriptObject
has
in interface ScriptObject
public boolean has(int index)
ScriptObject
has
in interface ScriptObject
public boolean delete(java.lang.String name)
ScriptObject
delete
in interface ScriptObject
public boolean delete(int index)
ScriptObject
delete
in interface ScriptObject
protected void putFunction(java.lang.Object target, java.lang.reflect.Method method)
protected void putFunction(java.lang.Object target, java.lang.reflect.Method method, boolean wrapArgs)
protected void putFunction(java.lang.Object target, java.lang.String name, javax.script.Invocable invocable)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.