Class RangeFunction
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.functions.RangeFunction
-
- All Implemented Interfaces:
Function
@AutoService(Function.class) public class RangeFunction extends java.lang.Object implements Function
-
-
Field Summary
Fields Modifier and Type Field Description private static JsonNodeComparator
COMPARATOR
private static com.fasterxml.jackson.databind.ObjectMapper
MAPPER
private static PlusOperator
OPERATOR
-
Constructor Summary
Constructors Constructor Description RangeFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, java.util.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 Detail
-
COMPARATOR
private static final JsonNodeComparator COMPARATOR
-
OPERATOR
private static final PlusOperator OPERATOR
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Method Detail
-
apply
public void apply(Scope scope, java.util.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
-
-