Constructor and Description |
---|
JsArray()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(boolean value)
Adds a boolean value to the array.
|
void |
add(byte value)
Adds a byte value to the array.
|
void |
add(char value)
Adds a char value to the array.
|
void |
add(double value)
Adds a double value to the array.
|
void |
add(float value)
Adds a float value to the array.
|
void |
add(int value)
Adds a int value to the array.
|
void |
add(JavaScriptObject object)
Adds a native javascript object to the array.
|
void |
add(Object value) |
void |
add(short value)
Adds a short value to the array.
|
void |
add(String value)
Adds a string value to the array.
|
static JavaScriptObject |
eval(String code) |
Object |
get(int index)
Returns a property value.
|
boolean |
getBoolean(int index) |
byte |
getByte(int index) |
char |
getChar(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
int |
getInt(int index)
Returns a property value.
|
JavaScriptObject |
getJsObject()
Returns the javscript object.
|
short |
getShort(int index) |
String |
getString(int index)
Returns a property value.
|
int |
size()
Returns the size of the array.
|
public static JavaScriptObject eval(String code)
public void add(boolean value)
value
- the value to addpublic void add(byte value)
value
- the value to addpublic void add(char value)
value
- the value to addpublic void add(double value)
value
- the value to addpublic void add(float value)
value
- the value to addpublic void add(int value)
value
- the value to addpublic void add(JavaScriptObject object)
object
- the object to addpublic void add(Object value)
public void add(short value)
value
- the value to addpublic void add(String value)
value
- the value to addpublic Object get(int index)
index
- the indexpublic boolean getBoolean(int index)
public byte getByte(int index)
public char getChar(int index)
public double getDouble(int index)
public float getFloat(int index)
public int getInt(int index)
index
- the indexpublic JavaScriptObject getJsObject()
JsWrapper
getJsObject
in interface JsWrapper
public short getShort(int index)
public String getString(int index)
index
- the indexpublic int size()
Copyright © 2015. All rights reserved.