Class IterableCode

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.Writer execute​(java.io.Writer writer, java.lang.Object resolve, java.util.List<java.lang.Object> scopes)  
      java.io.Writer execute​(java.io.Writer writer, java.util.List<java.lang.Object> scopes)
      The default behavior is to run the codes and append the captured text.
      protected java.io.Writer handle​(java.io.Writer writer, java.lang.Object resolved, java.util.List<java.lang.Object> scopes)  
      protected java.io.Writer handleCallable​(java.io.Writer writer, java.util.concurrent.Callable callable, java.util.List<java.lang.Object> scopes)  
      protected java.io.Writer handleFunction​(java.io.Writer writer, java.util.function.Function function, java.util.List<java.lang.Object> scopes)  
      Node invert​(Node node, java.lang.String text, java.util.concurrent.atomic.AtomicInteger position)  
      java.io.Writer next​(java.io.Writer writer, java.lang.Object next, java.util.List<java.lang.Object> scopes)  
      protected java.io.Writer writeTemplate​(java.io.Writer writer, java.lang.String templateText, java.util.List<java.lang.Object> scopes)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • les

        private final java.util.concurrent.ExecutorService les
    • Method Detail

      • execute

        public java.io.Writer execute​(java.io.Writer writer,
                                      java.util.List<java.lang.Object> scopes)
        Description copied from class: DefaultCode
        The default behavior is to run the codes and append the captured text.
        Specified by:
        execute in interface Code
        Overrides:
        execute in class DefaultCode
        Parameters:
        writer - The writer to write the output to
        scopes - The scopes to evaluate the embedded names against.
      • handle

        protected java.io.Writer handle​(java.io.Writer writer,
                                        java.lang.Object resolved,
                                        java.util.List<java.lang.Object> scopes)
      • handleCallable

        protected java.io.Writer handleCallable​(java.io.Writer writer,
                                                java.util.concurrent.Callable callable,
                                                java.util.List<java.lang.Object> scopes)
      • handleFunction

        protected java.io.Writer handleFunction​(java.io.Writer writer,
                                                java.util.function.Function function,
                                                java.util.List<java.lang.Object> scopes)
      • writeTemplate

        protected java.io.Writer writeTemplate​(java.io.Writer writer,
                                               java.lang.String templateText,
                                               java.util.List<java.lang.Object> scopes)
      • execute

        protected java.io.Writer execute​(java.io.Writer writer,
                                         java.lang.Object resolve,
                                         java.util.List<java.lang.Object> scopes)
      • next

        public java.io.Writer next​(java.io.Writer writer,
                                   java.lang.Object next,
                                   java.util.List<java.lang.Object> scopes)
        Specified by:
        next in interface Iteration
      • invert

        public Node invert​(Node node,
                           java.lang.String text,
                           java.util.concurrent.atomic.AtomicInteger position)
        Specified by:
        invert in interface Code
        Overrides:
        invert in class DefaultCode