Package net.thisptr.jackson.jq.path
Class ArrayRangeIndexPath
java.lang.Object
net.thisptr.jackson.jq.path.ArrayRangeIndexPath
- All Implemented Interfaces:
Path
Despite the name,
ArrayRangeIndexPath
can be used to index strings.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thisptr.jackson.jq.path.Path
Path.Mutation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArrayRangeIndexPath
(Path parent, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayRangeIndexPath
chainIfNotNull
(Path parent, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) 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 start, com.fasterxml.jackson.databind.JsonNode end, Path.Mutation mutation) 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 start, com.fasterxml.jackson.databind.JsonNode end, boolean permissive) void
toJsonNode
(com.fasterxml.jackson.databind.node.ArrayNode out)
-
Field Details
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
start
public final com.fasterxml.jackson.databind.JsonNode start -
end
public final com.fasterxml.jackson.databind.JsonNode end -
parent
-
-
Constructor Details
-
ArrayRangeIndexPath
public ArrayRangeIndexPath(Path parent, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end)
-
-
Method Details
-
chainIfNotNull
public static ArrayRangeIndexPath chainIfNotNull(Path parent, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) -
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
-
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
private static com.fasterxml.jackson.databind.JsonNode mutate(com.fasterxml.jackson.databind.JsonNode in, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, Path.Mutation mutation) throws JsonQueryException - Throws:
JsonQueryException
-
resolve
public static void resolve(com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, boolean permissive) throws JsonQueryException - Throws:
JsonQueryException
-