Class RangeFunction
java.lang.Object
net.thisptr.jackson.jq.internal.functions.RangeFunction
- All Implemented Interfaces:
Function
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JsonNodeComparatorprivate static final com.fasterxml.jackson.databind.ObjectMapperprivate static final PlusOperator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Scope scope, List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) private static voidrange1(PathOutput output, com.fasterxml.jackson.databind.JsonNode end) private static com.fasterxml.jackson.databind.JsonNoderange2(PathOutput output, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end) private static voidrange3(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:
applyin 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
-