Class StringInterpolation
java.lang.Object
net.thisptr.jackson.jq.internal.tree.StringInterpolation
- All Implemented Interfaces:
Expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Expressionprivate final List<Pair<Integer, Expression>> private final String -
Constructor Summary
ConstructorsConstructorDescriptionStringInterpolation(String template, List<Pair<Integer, Expression>> interpolations, Expression formatter) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean requirePath) private static voidcopyEscaped(StringBuilder builder, String text, int begin, int end) private voidrecurse(Scope scope, com.fasterxml.jackson.databind.JsonNode in, PathOutput output, Stack<Pair<Integer, com.fasterxml.jackson.databind.JsonNode>> stack, List<Pair<Integer, Expression>> interpolations) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Expression
apply
-
Field Details
-
interpolations
-
template
-
formatter
-
-
Constructor Details
-
StringInterpolation
public StringInterpolation(String template, List<Pair<Integer, Expression>> interpolations, Expression formatter)
-
-
Method Details
-
apply
public void apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean requirePath) throws JsonQueryException - Specified by:
applyin interfaceExpression- Throws:
JsonQueryException
-
recurse
private void recurse(Scope scope, com.fasterxml.jackson.databind.JsonNode in, PathOutput output, Stack<Pair<Integer, com.fasterxml.jackson.databind.JsonNode>> stack, List<Pair<Integer, Expression>> interpolations) throws JsonQueryException - Throws:
JsonQueryException
-
toString
-
copyEscaped
-