Class StringInterpolation

  • All Implemented Interfaces:
    Expression

    public class StringInterpolation
    extends java.lang.Object
    implements Expression
    • 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
    • Field Detail

      • interpolations

        private final java.util.List<Pair<java.lang.Integer,​Expression>> interpolations
      • template

        private final java.lang.String template
    • Constructor Detail

      • StringInterpolation

        public StringInterpolation​(java.lang.String template,
                                   java.util.List<Pair<java.lang.Integer,​Expression>> interpolations,
                                   Expression formatter)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • copyEscaped

        private static void copyEscaped​(java.lang.StringBuilder builder,
                                        java.lang.String text,
                                        int begin,
                                        int end)