final class JSONPathSingleIndex extends JSONPathSingle
JSONPath.Context, JSONPath.Feature, JSONPath.PreviousPath, JSONPath.RootPath, JSONPath.Sequence| Modifier and Type | Field and Description |
|---|---|
(package private) int |
index |
(package private) JSONPathSegmentIndex |
segment |
extractSupport, reffeatures, PARSE_CONTEXT, path, readerContext, writerContext| Constructor and Description |
|---|
JSONPathSingleIndex(java.lang.String path,
JSONPathSegmentIndex segment,
JSONPath.Feature... features) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval(java.lang.Object object)
Evaluates the path on the object
|
java.lang.Object |
extract(JSONReader jsonReader)
Extracts a value using the provided JSONReader
|
contains, equals, extractScalar, getParent, hashCode, isRef, remove, set, set, setCallback, setInt, setLongarrayAdd, compile, compile, contains, createContext, endsWithFilter, eval, eval, extract, extract, extract, extract, extract, extract, extractInt32, extractInt32Value, extractInt64, extractInt64Value, extractScalar, getReaderContext, getWriterContext, isPrevious, of, of, of, of, of, of, of, of, parseOperator, paths, paths, remove, remove, set, set, setCallback, setCallback, setCallback, setReaderContext, setWriterContext, toStringfinal JSONPathSegmentIndex segment
final int index
public JSONPathSingleIndex(java.lang.String path,
JSONPathSegmentIndex segment,
JSONPath.Feature... features)
public java.lang.Object eval(java.lang.Object object)
JSONPatheval in class JSONPathSingleobject - the object to evaluatepublic java.lang.Object extract(JSONReader jsonReader)
JSONPathextract in class JSONPathSinglejsonReader - the JSONReader to use