public abstract class JSJavaArray extends JSJavaObject
factory
EMPTY_ARRAY, UNDEFINED
Constructor and Description |
---|
JSJavaArray(Array array,
JSJavaFactory fac) |
Modifier and Type | Method and Description |
---|---|
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.
|
Array |
getArray() |
java.lang.Object[] |
getIds() |
JSJavaClass |
getJSJavaClass() |
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.
|
equals, getOop, hashCode, toString
delete, delete
public JSJavaArray(Array array, JSJavaFactory fac)
public final Array getArray()
public final JSJavaClass getJSJavaClass()
public java.lang.Object get(java.lang.String name)
ScriptObject
get
in interface ScriptObject
get
in class DefaultScriptObject
public java.lang.Object get(int index)
ScriptObject
get
in interface ScriptObject
get
in class DefaultScriptObject
public java.lang.Object[] getIds()
getIds
in interface ScriptObject
getIds
in class DefaultScriptObject
public boolean has(java.lang.String name)
ScriptObject
has
in interface ScriptObject
has
in class DefaultScriptObject
public boolean has(int index)
ScriptObject
has
in interface ScriptObject
has
in class DefaultScriptObject
public void put(java.lang.String name, java.lang.Object value)
ScriptObject
put
in interface ScriptObject
put
in class DefaultScriptObject
public void put(int index, java.lang.Object value)
ScriptObject
put
in interface ScriptObject
put
in class DefaultScriptObject
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.