- java.lang.Object
-
- com.samskivert.mustache.Template.Segment
-
- com.samskivert.mustache.Mustache.NamedSegment
-
- com.samskivert.mustache.Mustache.BlockSegment
-
- com.samskivert.mustache.Mustache.SectionSegment
-
- Enclosing class:
- Mustache
protected static class Mustache.SectionSegment extends Mustache.BlockSegment
A segment that represents a section.
-
-
Field Summary
Fields Modifier and Type Field Description protected Mustache.Compiler_comp-
Fields inherited from class com.samskivert.mustache.Mustache.BlockSegment
_segs
-
Fields inherited from class com.samskivert.mustache.Mustache.NamedSegment
_line, _name
-
-
Constructor Summary
Constructors Constructor Description SectionSegment(Mustache.Compiler compiler, java.lang.String name, Template.Segment[] segs, int line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecompile(Mustache.Delims delims, java.lang.StringBuilder into)voidexecute(Template tmpl, Template.Context ctx, java.io.Writer out)java.lang.StringtoString()voidvisit(Mustache.Visitor visitor)-
Methods inherited from class com.samskivert.mustache.Mustache.BlockSegment
executeSegs, firstLeadsBlank, lastTrailsBlank, trimFirstBlank, trimLastBlank
-
Methods inherited from class com.samskivert.mustache.Template.Segment
write
-
-
-
-
Field Detail
-
_comp
protected final Mustache.Compiler _comp
-
-
Constructor Detail
-
SectionSegment
public SectionSegment(Mustache.Compiler compiler, java.lang.String name, Template.Segment[] segs, int line)
-
-
Method Detail
-
execute
public void execute(Template tmpl, Template.Context ctx, java.io.Writer out)
- Specified by:
executein classTemplate.Segment
-
decompile
public void decompile(Mustache.Delims delims, java.lang.StringBuilder into)
- Specified by:
decompilein classTemplate.Segment
-
visit
public void visit(Mustache.Visitor visitor)
- Specified by:
visitin classTemplate.Segment
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-