public class DefaultScriptObject extends java.lang.Object implements ScriptObject
EMPTY_ARRAY, UNDEFINED
Constructor and Description |
---|
DefaultScriptObject() |
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.
|
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
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.