Class RangeFunction
java.lang.Object
net.thisptr.jackson.jq.internal.functions.RangeFunction
- All Implemented Interfaces:
Function
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JsonNodeComparator
private static final com.fasterxml.jackson.databind.ObjectMapper
private static final PlusOperator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Scope scope, List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) private static void
range1
(PathOutput output, com.fasterxml.jackson.databind.JsonNode end) private static com.fasterxml.jackson.databind.JsonNode
range2
(PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) private static void
range3
(PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, com.fasterxml.jackson.databind.JsonNode incr)
-
Field Details
-
COMPARATOR
-
OPERATOR
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
RangeFunction
public RangeFunction()
-
-
Method Details
-
apply
public void apply(Scope scope, List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) throws JsonQueryException - Specified by:
apply
in interfaceFunction
- Throws:
JsonQueryException
-
range1
private static void range1(PathOutput output, com.fasterxml.jackson.databind.JsonNode end) throws JsonQueryException - Throws:
JsonQueryException
-
range2
private static com.fasterxml.jackson.databind.JsonNode range2(PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) throws JsonQueryException - Throws:
JsonQueryException
-
range3
private static void range3(PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, com.fasterxml.jackson.databind.JsonNode incr) throws JsonQueryException - Throws:
JsonQueryException
-