class JSONPathTypedMulti extends JSONPath
JSONPath.Context, JSONPath.Feature, JSONPath.PreviousPath, JSONPath.RootPath, JSONPath.Sequence| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String[] |
formats |
(package private) long[] |
pathFeatures |
(package private) JSONPath[] |
paths |
(package private) java.lang.reflect.Type[] |
types |
(package private) java.time.ZoneId |
zoneId |
features, PARSE_CONTEXT, path, readerContext, writerContext| Modifier | Constructor and Description |
|---|---|
protected |
JSONPathTypedMulti(JSONPath[] paths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object object)
Checks if the path exists in the object
|
protected JSONReader.Context |
createContext()
Creates a new reading context
|
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
|
protected boolean |
ignoreError(int index) |
boolean |
isRef()
Checks if this path is a reference
|
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, 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[] paths
final java.lang.reflect.Type[] types
final java.lang.String[] formats
final long[] pathFeatures
final java.time.ZoneId zoneId
protected JSONPathTypedMulti(JSONPath[] paths, java.lang.reflect.Type[] types, java.lang.String[] formats, long[] pathFeatures, java.time.ZoneId zoneId, long features)
public JSONPath getParent()
JSONPathpublic boolean isRef()
JSONPathpublic boolean contains(java.lang.Object object)
JSONPathprotected final boolean ignoreError(int index)
public java.lang.Object eval(java.lang.Object object)
JSONPathprotected JSONReader.Context createContext()
JSONPathcreateContext in class 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)
JSONPath