public static class JSONPathCompilerReflect.TwoNameSegmentTypedPath extends JSONPathTwoSegment
JSONPath.Context, JSONPath.Feature, JSONPath.PreviousPath, JSONPath.RootPath, JSONPath.Sequence| Modifier and Type | Field and Description |
|---|---|
(package private) JSONPathCompilerReflect.NameSegmentTyped |
first |
(package private) JSONPathCompilerReflect.NameSegmentTyped |
second |
extractSupport, reffeatures, PARSE_CONTEXT, path, readerContext, writerContext| Constructor and Description |
|---|
TwoNameSegmentTypedPath(java.lang.String path,
JSONPathCompilerReflect.NameSegmentTyped first,
JSONPathCompilerReflect.NameSegmentTyped second) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval(java.lang.Object root)
Evaluates the path on the object
|
void |
set(java.lang.Object root,
java.lang.Object value)
Sets a value in the object
|
void |
setCallback(java.lang.Object root,
java.util.function.BiFunction callback)
Sets a callback function for the object
|
void |
setInt(java.lang.Object root,
int value)
Sets an integer value in the object
|
void |
setLong(java.lang.Object root,
long value)
Sets a long value in the object
|
contains, endsWithFilter, equals, extract, extractScalar, getParent, hashCode, isRef, remove, setarrayAdd, compile, compile, contains, createContext, 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 JSONPathCompilerReflect.NameSegmentTyped first
final JSONPathCompilerReflect.NameSegmentTyped second
public TwoNameSegmentTypedPath(java.lang.String path,
JSONPathCompilerReflect.NameSegmentTyped first,
JSONPathCompilerReflect.NameSegmentTyped second)
public java.lang.Object eval(java.lang.Object root)
JSONPatheval in class JSONPathTwoSegmentroot - the object to evaluatepublic void set(java.lang.Object root,
java.lang.Object value)
JSONPathset in class JSONPathTwoSegmentroot - the object to modifyvalue - the value to setpublic void setInt(java.lang.Object root,
int value)
JSONPathsetInt in class JSONPathTwoSegmentroot - the object to modifyvalue - the integer value to setpublic void setLong(java.lang.Object root,
long value)
JSONPathsetLong in class JSONPathTwoSegmentroot - the object to modifyvalue - the long value to setpublic void setCallback(java.lang.Object root,
java.util.function.BiFunction callback)
JSONPathsetCallback in class JSONPathTwoSegmentroot - the object to modifycallback - the callback function to set