public interface PArray
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int i)
Get the object at the given index.
|
PArray |
getArray(int i)
Get the element at the index as a json array.
|
boolean |
getBool(int i)
Get the element as a boolean.
|
java.lang.String |
getCurrentPath()
Gets the string representation of the path to the current element.
|
double |
getDouble(int i)
Get the element at the index as a double.
|
float |
getFloat(int i)
Get the element at the index as a float.
|
int |
getInt(int i)
Get the element at the index as an integer.
|
long |
getLong(int i)
Get the element at the index as a long.
|
PObject |
getObject(int i)
Get the element at the index as a object.
|
java.lang.String |
getPath(java.lang.String key)
Gets the string representation of the path to the current element.
|
java.lang.String |
getString(int i)
Get the element at the index as a string.
|
int |
size()
Return the size of the array.
|
int size()
PObject getObject(int i)
i - the index of the object to accessPArray getArray(int i)
i - the index of the element to accessint getInt(int i)
i - the index of the element to accesslong getLong(int i)
i - the index of the element to accessfloat getFloat(int i)
i - the index of the element to accessdouble getDouble(int i)
i - the index of the element to accessjava.lang.String getString(int i)
i - the index of the element to accessboolean getBool(int i)
i - the index of the element to accessjava.lang.String getPath(java.lang.String key)
key - the leaf keyjava.lang.String getCurrentPath()
java.lang.Object get(int i)
i - the index of the element to access