public class MLArrayQuery
extends java.lang.Object
MLArray
objects.
Constructor and Description |
---|
MLArrayQuery(java.lang.String queryString) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent(MLArray array,
int m,
int n)
Returns the content of the field/cell/object.
|
static java.lang.Object |
q(MLArray array,
java.lang.String query) |
java.lang.Object |
query(MLArray array)
Parses the query string and returns the object it refers to.
|
public static java.lang.Object q(MLArray array, java.lang.String query)
array
- query
- public java.lang.Object query(MLArray array)
array
- source MLArray
public java.lang.Object getContent(MLArray array, int m, int n)
array
- the parent structure/cellm
- column or -1n
- row or -1MLArray
, if n is -1, returns
content under index m, if both m and n are not-negative, returns
content of (m,n)