Package com.alibaba.fastjson2
Class JSONPathCompilerReflect.SingleNamePathTyped
- java.lang.Object
-
- com.alibaba.fastjson2.JSONPath
-
- com.alibaba.fastjson2.JSONPathCompilerReflect.SingleNamePathTyped
-
- Enclosing class:
- JSONPathCompilerReflect
public static class JSONPathCompilerReflect.SingleNamePathTyped extends JSONPath
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.alibaba.fastjson2.JSONPath
JSONPath.Feature
-
-
Constructor Summary
Constructors Constructor Description SingleNamePathTyped(String path, Class objectClass, ObjectReader objectReader, FieldReader fieldReader, ObjectWriter objectWriter, FieldWriter fieldWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object rootObject)Objecteval(Object object)Objectextract(JSONReader jsonReader)StringextractScalar(JSONReader jsonReader)JSONPathgetParent()booleanisRef()booleanremove(Object rootObject)voidset(Object rootObject, Object value)voidset(Object rootObject, Object value, JSONReader.Feature... readerFeatures)voidsetCallback(Object rootObject, BiFunction callback)voidsetInt(Object rootObject, int value)voidsetLong(Object rootObject, long value)-
Methods inherited from class com.alibaba.fastjson2.JSONPath
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, paths, remove, remove, set, set, setCallback, setCallback, setCallback, setReaderContext, setWriterContext, toString
-
-
-
-
Constructor Detail
-
SingleNamePathTyped
public SingleNamePathTyped(String path, Class objectClass, ObjectReader objectReader, FieldReader fieldReader, ObjectWriter objectWriter, FieldWriter fieldWriter)
-
-
Method Detail
-
extract
public Object extract(JSONReader jsonReader)
-
extractScalar
public String extractScalar(JSONReader jsonReader)
- Specified by:
extractScalarin classJSONPath
-
set
public void set(Object rootObject, Object value, JSONReader.Feature... readerFeatures)
-
setCallback
public void setCallback(Object rootObject, BiFunction callback)
- Specified by:
setCallbackin classJSONPath
-
-