Class StringInterpolation
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.StringInterpolation
-
- All Implemented Interfaces:
Expression
public class StringInterpolation extends java.lang.Object implements Expression
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
formatter
private java.util.List<Pair<java.lang.Integer,Expression>>
interpolations
private java.lang.String
template
-
Constructor Summary
Constructors Constructor Description StringInterpolation(java.lang.String template, java.util.List<Pair<java.lang.Integer,Expression>> interpolations, Expression formatter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, boolean requirePath)
private static void
copyEscaped(java.lang.StringBuilder builder, java.lang.String text, int begin, int end)
private void
recurse(Scope scope, com.fasterxml.jackson.databind.JsonNode in, PathOutput output, java.util.Stack<Pair<java.lang.Integer,com.fasterxml.jackson.databind.JsonNode>> stack, java.util.List<Pair<java.lang.Integer,Expression>> interpolations)
java.lang.String
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 Detail
-
interpolations
private final java.util.List<Pair<java.lang.Integer,Expression>> interpolations
-
template
private final java.lang.String template
-
formatter
private final Expression formatter
-
-
Constructor Detail
-
StringInterpolation
public StringInterpolation(java.lang.String template, java.util.List<Pair<java.lang.Integer,Expression>> interpolations, Expression formatter)
-
-
Method Detail
-
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, java.util.Stack<Pair<java.lang.Integer,com.fasterxml.jackson.databind.JsonNode>> stack, java.util.List<Pair<java.lang.Integer,Expression>> interpolations) throws JsonQueryException
- Throws:
JsonQueryException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copyEscaped
private static void copyEscaped(java.lang.StringBuilder builder, java.lang.String text, int begin, int end)
-
-