Class ArrayIndexPath
java.lang.Object
net.thisptr.jackson.jq.path.ArrayIndexPath
- All Implemented Interfaces:
Path
-
Nested Class Summary
Nested classes/interfaces inherited from interface Path
Path.Mutation -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayIndexPathchainIfNotNull(Path parent, int index) static ArrayIndexPathchainIfNotNull(Path parent, com.fasterxml.jackson.databind.JsonNode index) voidget(com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean permissive) private static com.fasterxml.jackson.databind.JsonNodemutate(com.fasterxml.jackson.databind.JsonNode in, com.fasterxml.jackson.databind.JsonNode index, Path.Mutation mutation, boolean makeParent, boolean deleteMode) com.fasterxml.jackson.databind.JsonNodemutate(com.fasterxml.jackson.databind.JsonNode in, Path.Mutation mutation, boolean makeParent) static voidresolve(com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, com.fasterxml.jackson.databind.JsonNode index, boolean permissive) voidtoJsonNode(com.fasterxml.jackson.databind.node.ArrayNode out)
-
Field Details
-
index
public final com.fasterxml.jackson.databind.JsonNode index -
parent
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
ArrayIndexPath
-
-
Method Details
-
chainIfNotNull
-
chainIfNotNull
public static ArrayIndexPath chainIfNotNull(Path parent, com.fasterxml.jackson.databind.JsonNode index) -
toJsonNode
- Specified by:
toJsonNodein interfacePath- Throws:
JsonQueryException
-
get
public void get(com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean permissive) throws JsonQueryException - Specified by:
getin interfacePath- Throws:
JsonQueryException
-
mutate
public com.fasterxml.jackson.databind.JsonNode mutate(com.fasterxml.jackson.databind.JsonNode in, Path.Mutation mutation, boolean makeParent) throws JsonQueryException - Specified by:
mutatein interfacePath- Throws:
JsonQueryException
-
mutate
private static com.fasterxml.jackson.databind.JsonNode mutate(com.fasterxml.jackson.databind.JsonNode in, com.fasterxml.jackson.databind.JsonNode index, Path.Mutation mutation, boolean makeParent, boolean deleteMode) throws JsonQueryException - Throws:
JsonQueryException
-
resolve
public static void resolve(com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, com.fasterxml.jackson.databind.JsonNode index, boolean permissive) throws JsonQueryException - Throws:
JsonQueryException
-