- java.lang.Object
-
- com.samskivert.mustache.Template.Segment
-
- com.samskivert.mustache.Mustache.NamedSegment
-
- com.samskivert.mustache.Mustache.BlockSegment
-
- Direct Known Subclasses:
Mustache.InvertedSegment,Mustache.SectionSegment
- Enclosing class:
- Mustache
protected abstract static class Mustache.BlockSegment extends Mustache.NamedSegment
A helper class for block segments.
-
-
Field Summary
Fields Modifier and Type Field Description protected Template.Segment[]_segs-
Fields inherited from class com.samskivert.mustache.Mustache.NamedSegment
_line, _name
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockSegment(java.lang.String name, Template.Segment[] segs, int line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteSegs(Template tmpl, Template.Context ctx, java.io.Writer out)booleanfirstLeadsBlank()booleanlastTrailsBlank()voidtrimFirstBlank()voidtrimLastBlank()-
Methods inherited from class com.samskivert.mustache.Template.Segment
decompile, execute, visit, write
-
-
-
-
Field Detail
-
_segs
protected final Template.Segment[] _segs
-
-
Constructor Detail
-
BlockSegment
protected BlockSegment(java.lang.String name, Template.Segment[] segs, int line)
-
-
Method Detail
-
firstLeadsBlank
public boolean firstLeadsBlank()
-
trimFirstBlank
public void trimFirstBlank()
-
lastTrailsBlank
public boolean lastTrailsBlank()
-
trimLastBlank
public void trimLastBlank()
-
executeSegs
protected void executeSegs(Template tmpl, Template.Context ctx, java.io.Writer out)
-
-