Class Mustache.AbstractPartialSegment

    • Field Detail

      • _indent

        protected final java.lang.String _indent
      • lock

        private final java.util.concurrent.locks.Lock lock
      • _template

        private volatile Template _template
    • Constructor Detail

      • AbstractPartialSegment

        protected AbstractPartialSegment​(Mustache.Compiler compiler,
                                         java.lang.String name,
                                         int line,
                                         java.lang.String indent)
    • Method Detail

      • getTemplate

        protected final Template getTemplate()
      • _loadTemplate

        protected Template _loadTemplate()
      • isStandalone

        public abstract boolean isStandalone()
        Description copied from class: Template.Segment
        Whether or not the segment is standalone. The definition of standalone is defined by the mustache spec. String and variable tags are never standalone. For blocks this is based on the closing tag. Once trim is called, standalone tags are determined so that proper (re)indentation will work without reparsing the template.
        Specified by:
        isStandalone in class Template.Segment
        Returns:
        true if the tag is standalone.