public interface ScriptObject
Modifier and Type | Field and Description |
---|---|
static java.lang.Object[] |
EMPTY_ARRAY |
static java.lang.Object |
UNDEFINED |
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.
|
static final java.lang.Object UNDEFINED
static final java.lang.Object[] EMPTY_ARRAY
java.lang.Object[] getIds()
java.lang.Object get(java.lang.String name)
java.lang.Object get(int index)
void put(java.lang.String name, java.lang.Object value)
void put(int index, java.lang.Object value)
boolean has(java.lang.String name)
boolean has(int index)
boolean delete(java.lang.String name)
boolean delete(int index)
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.