public static Query query(String field) { return new Query(field, null); }
public static Query query(int element) { return new Query(element, null); } }
/** * Field name to query from this level of an object */ public Query get(String field) { Assert.hasText(field, "Cannot query empty field name"); return new Query(field, this); }
/** * Index of the array from the beginning (starting from zero) or from the end (decreasing from -1) */ public Query get(int element) { return new Query(element, this); }