| Package | Description |
|---|---|
| com.alibaba.fastjson | |
| com.alibaba.fastjson2 | |
| com.alibaba.fastjson2.reader | |
| com.alibaba.fastjson2.support.airlift | |
| com.alibaba.fastjson2.support.odps |
| Modifier and Type | Field and Description |
|---|---|
private JSONPath |
JSONPath.path |
| Constructor and Description |
|---|
JSONPath(JSONPath path) |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
JSONPath.PreviousPath
Represents a previous path reference
|
(package private) static class |
JSONPath.RootPath
Represents the root path ($)
|
static class |
JSONPathCompilerReflect.SingleNamePathTyped |
static class |
JSONPathCompilerReflect.TwoNameSegmentTypedPath |
(package private) class |
JSONPathMulti |
(package private) class |
JSONPathSingle |
(package private) class |
JSONPathSingleIndex |
(package private) class |
JSONPathSingleName |
(package private) class |
JSONPathSingleNameDecimal |
(package private) class |
JSONPathSingleNameInteger |
(package private) class |
JSONPathSingleNameLong |
(package private) class |
JSONPathSingleNameString |
(package private) class |
JSONPathTwoSegment |
(package private) class |
JSONPathTyped |
(package private) class |
JSONPathTypedMulti |
(package private) class |
JSONPathTypedMultiIndexes |
(package private) class |
JSONPathTypedMultiNames |
class |
JSONPathTypedMultiNamesPrefixIndex1 |
class |
JSONPathTypedMultiNamesPrefixName1 |
class |
JSONPathTypedMultiNamesPrefixName2 |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONPath[] |
JSONPathTypedMultiIndexes.indexPaths |
(package private) JSONPath |
JSONPathTyped.jsonPath |
(package private) JSONPath[] |
JSONPathTypedMultiNames.namePaths |
(package private) JSONPath |
JSONPath.Context.path |
(package private) JSONPath[] |
JSONPathTypedMulti.paths |
(package private) JSONPath |
JSONPathTypedMultiIndexes.prefix |
(package private) JSONPath |
JSONPathTypedMultiNames.prefix |
(package private) JSONPath |
JSONReader.ResolveTask.reference |
| Modifier and Type | Method and Description |
|---|---|
JSONPath |
JSONFactory.JSONPathCompiler.compile(java.lang.Class objectClass,
JSONPath path) |
JSONPath |
JSONPathCompilerReflect.compile(java.lang.Class objectClass,
JSONPath path) |
static JSONPath |
JSONPath.compile(java.lang.String path)
Deprecated.
use
of(String) instead |
static JSONPath |
JSONPath.compile(java.lang.String strPath,
java.lang.Class objectClass)
Compiles a JSONPath expression for a specific object class
|
protected JSONPath |
JSONPathCompilerReflect.compileSingleNamePath(java.lang.Class objectClass,
JSONPathSingleName path) |
protected JSONPath |
JSONPathCompilerReflectASM.compileSingleNamePath(java.lang.Class objectClass,
JSONPathSingleName path) |
abstract JSONPath |
JSONPath.getParent()
Gets the parent JSONPath of this path
|
JSONPath |
JSONPath.PreviousPath.getParent() |
JSONPath |
JSONPath.RootPath.getParent() |
JSONPath |
JSONPathCompilerReflect.SingleNamePathTyped.getParent() |
JSONPath |
JSONPathMulti.getParent() |
JSONPath |
JSONPathSingle.getParent() |
JSONPath |
JSONPathTwoSegment.getParent() |
JSONPath |
JSONPathTyped.getParent() |
JSONPath |
JSONPathTypedMulti.getParent() |
static JSONPath |
JSONPathTyped.of(JSONPath jsonPath,
java.lang.reflect.Type type) |
static JSONPath |
JSONPath.of(java.lang.String path)
Creates a JSONPath from a path string
|
static JSONPath |
JSONPath.of(java.lang.String[] paths,
java.lang.reflect.Type[] types)
Creates a multi-path JSONPath
|
static JSONPath |
JSONPath.of(java.lang.String[] paths,
java.lang.reflect.Type[] types,
JSONReader.Feature... features)
Creates a multi-path JSONPath
|
static JSONPath |
JSONPath.of(java.lang.String[] paths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
JSONReader.Feature... features)
Creates a multi-path JSONPath
|
static JSONPath |
JSONPath.of(java.lang.String path,
JSONPath.Feature... features)
Creates a JSONPath from a path string with specified features
|
static JSONPath |
JSONPath.of(java.lang.String path,
java.lang.reflect.Type type)
Creates a typed JSONPath from a path string and type
|
static JSONPath |
JSONPath.of(java.lang.String path,
java.lang.reflect.Type type,
JSONPath.Feature... features)
Creates a typed JSONPath from a path string, type and features
|
(package private) JSONPath |
JSONPathParser.parse(JSONPath.Feature... features) |
JSONPath |
JSONPath.setReaderContext(JSONReader.Context context)
Sets the reading context
|
JSONPath |
JSONPath.setWriterContext(JSONWriter.Context writerContext)
Sets the writing context
|
| Modifier and Type | Method and Description |
|---|---|
void |
JSONReader.addResolveTask(java.util.Collection object,
int i,
JSONPath reference) |
void |
JSONReader.addResolveTask(FieldReader fieldReader,
java.lang.Object object,
JSONPath path) |
void |
JSONReader.addResolveTask(java.util.Map object,
java.lang.Object key,
JSONPath reference) |
void |
JSONReader.addResolveTask(java.lang.Object[] object,
int i,
JSONPath reference) |
JSONPath |
JSONFactory.JSONPathCompiler.compile(java.lang.Class objectClass,
JSONPath path) |
JSONPath |
JSONPathCompilerReflect.compile(java.lang.Class objectClass,
JSONPath path) |
protected JSONPathSegment |
JSONPathCompilerReflect.compile(java.lang.Class objectClass,
JSONPath path,
JSONPathSegment segment,
JSONPathSegment parent) |
java.lang.Object |
JSONObject.eval(JSONPath path)
Evaluates a JSONPath expression against this JSONObject.
|
static JSONPath |
JSONPathTyped.of(JSONPath jsonPath,
java.lang.reflect.Type type) |
| Constructor and Description |
|---|
Context(JSONPath path,
JSONPath.Context parent,
JSONPathSegment current,
JSONPathSegment next,
long readerFeatures) |
JSONPathTyped(JSONPath jsonPath,
java.lang.reflect.Type type) |
JSONPathTypedMulti(JSONPath[] paths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiIndexes(JSONPath[] paths,
JSONPath prefix,
JSONPath[] indexPaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiIndexes(JSONPath[] paths,
JSONPath prefix,
JSONPath[] indexPaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiIndexes(JSONPath[] paths,
JSONPath prefix,
JSONPath[] indexPaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNames(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNames(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNames(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixIndex1(JSONPath[] paths,
JSONPathSingleIndex prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixIndex1(JSONPath[] paths,
JSONPathSingleIndex prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName1(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName1(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName1(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName2(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName2(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
JSONPathTypedMultiNamesPrefixName2(JSONPath[] paths,
JSONPath prefix,
JSONPath[] namePaths,
java.lang.reflect.Type[] types,
java.lang.String[] formats,
long[] pathFeatures,
java.time.ZoneId zoneId,
long features) |
ResolveTask(FieldReader fieldReader,
java.lang.Object object,
java.lang.Object name,
JSONPath reference) |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONPath |
FieldReader.referenceCache |
| Modifier and Type | Method and Description |
|---|---|
static io.airlift.slice.Slice |
JSONFunctions.jsonExtract(io.airlift.slice.Slice json,
JSONPath path) |
| Modifier and Type | Field and Description |
|---|---|
private JSONPath |
JSONExtractInt32.path |
private JSONPath |
JSONExtractInt64.path |
(package private) JSONPath |
JSONExtractScalar.path |