public class JavascriptArray extends JavascriptObject
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.
jsObject, objectCounter, peerRegistry, runtime, variableName
Constructor and Description |
---|
JavascriptArray() |
Modifier and Type | Method and Description |
---|---|
Object |
get(int idx) |
int |
indexOf(Object obj) |
int |
lastIndexOf(Object obj) |
int |
length()
Get the length of the array.
|
Object |
pop() |
int |
push(Object obj) |
void |
reverse() |
Object |
shift() |
void |
sort(String func) |
String |
toString() |
int |
unshift(Object obj) |
checkBoolean, checkInteger, checkUndefined, getJSObject, getNextVariableName, getProperty, getProperty, getVariableName, invokeJavascript, invokeJavascript, invokeJavascriptReturnValue, invokeJavascriptReturnValue, isMemberDefined, setProperty, setProperty, setProperty
public Object get(int idx)
public int indexOf(Object obj)
public int lastIndexOf(Object obj)
public Object pop()
public int push(Object obj)
public void reverse()
public Object shift()
public void sort(String func)
public int unshift(Object obj)
public int length()
Copyright © 2016. All Rights Reserved.