public class MLArrayQuery
extends java.lang.Object
MLArray objects.
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
pat |
private java.lang.String |
queryString |
private static java.lang.String |
regexp |
| 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.
|
private java.lang.String queryString
private static final java.lang.String regexp
private static final java.util.regex.Pattern pat
public static java.lang.Object q(MLArray array, java.lang.String query)
array - query - public java.lang.Object query(MLArray array)
array - source MLArraypublic 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)