Package com.alibaba.fastjson2
Class JSONPathCompilerReflect.TwoNameSegmentTypedPath
- java.lang.Object
-
- com.alibaba.fastjson2.JSONPath
-
- com.alibaba.fastjson2.JSONPathCompilerReflect.TwoNameSegmentTypedPath
-
- Enclosing class:
- JSONPathCompilerReflect
public static class JSONPathCompilerReflect.TwoNameSegmentTypedPath extends JSONPath
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.alibaba.fastjson2.JSONPath
JSONPath.Feature
-
-
Constructor Summary
Constructors Constructor Description TwoNameSegmentTypedPath(String path, JSONPathCompilerReflect.NameSegmentTyped first, JSONPathCompilerReflect.NameSegmentTyped second)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object root)booleanendsWithFilter()Objecteval(Object root)Objectextract(JSONReader jsonReader)StringextractScalar(JSONReader jsonReader)JSONPathgetParent()booleanisRef()booleanremove(Object root)voidset(Object root, Object value)voidset(Object root, Object value, JSONReader.Feature... readerFeatures)voidsetCallback(Object root, BiFunction callback)voidsetInt(Object root, int value)voidsetLong(Object root, long value)-
Methods inherited from class com.alibaba.fastjson2.JSONPath
arrayAdd, 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, paths, remove, remove, set, set, setCallback, setCallback, setCallback, setReaderContext, setWriterContext, toString
-
-
-
-
Constructor Detail
-
TwoNameSegmentTypedPath
public TwoNameSegmentTypedPath(String path, JSONPathCompilerReflect.NameSegmentTyped first, JSONPathCompilerReflect.NameSegmentTyped second)
-
-
Method Detail
-
setInt
public void setInt(Object root, int value)
-
setLong
public void setLong(Object root, long value)
-
setCallback
public void setCallback(Object root, BiFunction callback)
-
endsWithFilter
public boolean endsWithFilter()
- Overrides:
endsWithFilterin classJSONPath
-
set
public void set(Object root, Object value, JSONReader.Feature... readerFeatures)
-
extract
public Object extract(JSONReader jsonReader)
-
extractScalar
public String extractScalar(JSONReader jsonReader)
- Specified by:
extractScalarin classJSONPath
-
-