class JSONPathTyped extends JSONPath
JSONPath.Context, JSONPath.Feature, JSONPath.PreviousPath, JSONPath.RootPath, JSONPath.Sequence| Modifier and Type | Field and Description |
|---|---|
(package private) JSONPath |
jsonPath |
(package private) java.lang.reflect.Type |
type |
features, PARSE_CONTEXT, path, readerContext, writerContext| Modifier | Constructor and Description |
|---|---|
protected |
JSONPathTyped(JSONPath jsonPath,
java.lang.reflect.Type type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object object)
Checks if the path exists in the object
|
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
|
java.lang.String |
extractScalar(JSONReader jsonReader)
Extracts a scalar value using the provided JSONReader
|
JSONPath |
getParent()
Gets the parent JSONPath of this path
|
java.lang.reflect.Type |
getType() |
boolean |
isRef()
Checks if this path is a reference
|
static JSONPath |
of(JSONPath jsonPath,
java.lang.reflect.Type type) |
boolean |
remove(java.lang.Object object)
Removes a value from the object
|
void |
set(java.lang.Object object,
java.lang.Object value)
Sets a value in the object
|
void |
set(java.lang.Object object,
java.lang.Object value,
JSONReader.Feature... readerFeatures)
Sets a value in the object with specified reader features
|
void |
setCallback(java.lang.Object object,
java.util.function.BiFunction callback)
Sets a callback function for the object
|
void |
setInt(java.lang.Object object,
int value)
Sets an integer value in the object
|
void |
setLong(java.lang.Object object,
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, isPrevious, of, of, of, of, of, of, of, of, parseOperator, paths, paths, remove, remove, set, set, setCallback, setCallback, setCallback, setReaderContext, setWriterContext, toStringfinal JSONPath jsonPath
final java.lang.reflect.Type type
protected JSONPathTyped(JSONPath jsonPath, java.lang.reflect.Type type)
public JSONPath getParent()
JSONPathpublic boolean isRef()
JSONPathpublic boolean contains(java.lang.Object object)
JSONPathpublic java.lang.Object eval(java.lang.Object object)
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 object,
java.lang.Object value)
JSONPathpublic void set(java.lang.Object object,
java.lang.Object value,
JSONReader.Feature... readerFeatures)
JSONPathpublic void setCallback(java.lang.Object object,
java.util.function.BiFunction callback)
JSONPathsetCallback in class JSONPathobject - the object to modifycallback - the callback function to setpublic void setInt(java.lang.Object object,
int value)
JSONPathpublic void setLong(java.lang.Object object,
long value)
JSONPathpublic boolean remove(java.lang.Object object)
JSONPathpublic java.lang.reflect.Type getType()