Package net.thisptr.jackson.jq.path
Class ArrayIndexPath
java.lang.Object
net.thisptr.jackson.jq.path.ArrayIndexPath
- All Implemented Interfaces:
Path
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thisptr.jackson.jq.path.Path
Path.Mutation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayIndexPath
chainIfNotNull
(Path parent, int index) static ArrayIndexPath
chainIfNotNull
(Path parent, com.fasterxml.jackson.databind.JsonNode index) void
get
(com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean permissive) 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) com.fasterxml.jackson.databind.JsonNode
mutate
(com.fasterxml.jackson.databind.JsonNode in, Path.Mutation mutation, boolean makeParent) static void
resolve
(com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, com.fasterxml.jackson.databind.JsonNode index, boolean permissive) void
toJsonNode
(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:
toJsonNode
in interfacePath
- Throws:
JsonQueryException
-
get
public void get(com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean permissive) throws JsonQueryException - Specified by:
get
in 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:
mutate
in 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
-