Return values are supplied as their raw return value from Javascript, unless that value has previously been passed in to the array as a JavascriptObject. The caller is then responsible for wrapping any new JSObjects in the appropriate JavascriptObject, as they should know what is needed.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public int | |
| public int | |
| public int | |
| public Object | |
| public int | |
| public void | |
| public Object | |
| public void | |
| public String | |
| public int |
| content | back to summary |
|---|---|
| private final Map<JSObject, JavascriptObject> content | |
| JavascriptArray | back to summary |
|---|---|
| public JavascriptArray() | |
| get | back to summary |
|---|---|
| public Object get(int idx) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object obj) | |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(Object obj) | |
| length | back to summary |
|---|---|
| public int length() Get the length of the array. This returns the value from the underlying Javascrpt object. | |
| pop | back to summary |
|---|---|
| public Object pop() | |
| push | back to summary |
|---|---|
| public int push(Object obj) | |
| reverse | back to summary |
|---|---|
| public void reverse() | |
| shift | back to summary |
|---|---|
| public Object shift() | |
| sort | back to summary |
|---|---|
| public void sort(String func) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unshift | back to summary |
|---|---|
| public int unshift(Object obj) | |