Class StringInterpolation
java.lang.Object
net.thisptr.jackson.jq.internal.tree.StringInterpolation
- All Implemented Interfaces:
Expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Expression
private final List
<Pair<Integer, Expression>> private final String
-
Constructor Summary
ConstructorsConstructorDescriptionStringInterpolation
(String template, List<Pair<Integer, Expression>> interpolations, Expression formatter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean requirePath) private static void
copyEscaped
(StringBuilder builder, String text, int begin, int end) 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) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.thisptr.jackson.jq.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:
apply
in 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, throws JsonQueryExceptionExpression>> interpolations) - Throws:
JsonQueryException
-
toString
-
copyEscaped
-