JSONPath.Context, JSONPath.Feature, JSONPath.PreviousPath, JSONPath.RootPath, JSONPath.Sequence| Modifier and Type | Field and Description |
|---|---|
(package private) static JSONPath.PreviousPath |
INSTANCE |
features, PARSE_CONTEXT, path, readerContext, writerContext| Constructor and Description |
|---|
PreviousPath(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object rootObject)
Checks if the path exists in the object
|
java.lang.Object |
eval(java.lang.Object rootObject)
Evaluates the path on the object
|
java.lang.Object |
extract(JSONReader jsonReader)
Extracts a value using the provided JSONReader
|
java.lang.String |
extractScalar(JSONReader jsonReader)
Extracts a scalar value using the provided JSONReader
|
JSONPath |
getParent()
Gets the parent JSONPath of this path
|
boolean |
isPrevious()
Checks if this path represents a previous reference
|
boolean |
isRef()
Checks if this path is a reference
|
boolean |
remove(java.lang.Object rootObject)
Removes a value from the object
|
void |
set(java.lang.Object rootObject,
java.lang.Object value)
Sets a value in the object
|
void |
set(java.lang.Object rootObject,
java.lang.Object value,
JSONReader.Feature... readerFeatures)
Sets a value in the object with specified reader features
|
void |
setCallback(java.lang.Object rootObject,
java.util.function.BiFunction callback)
Sets a callback function for the object
|
void |
setInt(java.lang.Object rootObject,
int value)
Sets an integer value in the object
|
void |
setLong(java.lang.Object rootObject,
long value)
Sets a long value in the object
|
arrayAdd, compile, compile, contains, createContext, endsWithFilter, eval, eval, extract, extract, extract, extract, extract, extract, extractInt32, extractInt32Value, extractInt64, extractInt64Value, extractScalar, getReaderContext, getWriterContext, of, of, of, of, of, of, of, of, parseOperator, paths, paths, remove, remove, set, set, setCallback, setCallback, setCallback, setReaderContext, setWriterContext, toStringstatic final JSONPath.PreviousPath INSTANCE
public boolean isRef()
JSONPathpublic boolean isPrevious()
JSONPathisPrevious in class JSONPathpublic boolean contains(java.lang.Object rootObject)
JSONPathpublic java.lang.Object eval(java.lang.Object rootObject)
JSONPathpublic java.lang.Object extract(JSONReader jsonReader)
JSONPathpublic java.lang.String extractScalar(JSONReader jsonReader)
JSONPathextractScalar in class JSONPathjsonReader - the JSONReader to usepublic void set(java.lang.Object rootObject,
java.lang.Object value)
JSONPathpublic void set(java.lang.Object rootObject,
java.lang.Object value,
JSONReader.Feature... readerFeatures)
JSONPathpublic void setCallback(java.lang.Object rootObject,
java.util.function.BiFunction callback)
JSONPathsetCallback in class JSONPathrootObject - the object to modifycallback - the callback function to setpublic JSONPath getParent()
JSONPathpublic void setInt(java.lang.Object rootObject,
int value)
JSONPathpublic void setLong(java.lang.Object rootObject,
long value)
JSONPath