- java.lang.Object
-
- com.samskivert.mustache.Mustache.Accumulator
-
- Enclosing class:
- Mustache
protected static class Mustache.Accumulator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Mustache.Compiler_compprotected java.util.List<Template.Segment>_segsprotected boolean_topLevel
-
Constructor Summary
Constructors Constructor Description Accumulator(Mustache.Compiler compiler, boolean topLevel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Mustache.AccumulatoraddCloseSectionSegment(java.lang.String tag, int line)voidaddFauxSegment()Mustache.AccumulatoraddTagSegment(java.lang.StringBuilder accum, int tagLine)voidaddTextSegment(java.lang.StringBuilder text)Template.Segment[]finish()protected static voidrequireNoNewlines(java.lang.String tag, int line)protected static voidrequireSameName(java.lang.String name1, java.lang.String name2, int line)
-
-
-
Field Detail
-
_comp
protected final Mustache.Compiler _comp
-
_topLevel
protected final boolean _topLevel
-
_segs
protected final java.util.List<Template.Segment> _segs
-
-
Constructor Detail
-
Accumulator
public Accumulator(Mustache.Compiler compiler, boolean topLevel)
-
-
Method Detail
-
addTextSegment
public void addTextSegment(java.lang.StringBuilder text)
-
addTagSegment
public Mustache.Accumulator addTagSegment(java.lang.StringBuilder accum, int tagLine)
-
addFauxSegment
public void addFauxSegment()
-
finish
public Template.Segment[] finish()
-
addCloseSectionSegment
protected Mustache.Accumulator addCloseSectionSegment(java.lang.String tag, int line)
-
requireNoNewlines
protected static void requireNoNewlines(java.lang.String tag, int line)
-
requireSameName
protected static void requireSameName(java.lang.String name1, java.lang.String name2, int line)
-
-