Class Mustache.BlockSegment
java.lang.Object
com.samskivert.mustache.Template.Segment
com.samskivert.mustache.Mustache.NamedSegment
com.samskivert.mustache.Mustache.AbstractSectionSegment
com.samskivert.mustache.Mustache.BlockSegment
- All Implemented Interfaces:
Mustache.BlockReplaceable, Mustache.StandaloneSection
- Enclosing class:
Mustache
A parent partial parameter using $ as the sigil.
-
Field Summary
Fields inherited from class Mustache.AbstractSectionSegment
_comp, _segs, _standaloneEnd, _standaloneStartFields inherited from class Mustache.NamedSegment
_line, _name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlockSegment(Mustache.BlockSegment original, Template.Segment[] segs) BlockSegment(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecompile(Mustache.Delims delims, StringBuilder into) voidexecute(Template tmpl, Template.Context ctx, Writer out) protected Mustache.BlockSegmentRecursively indent by the parameter indent.replaceBlocks(Map<String, Mustache.BlockSegment> blocks) toString()voidvisit(Mustache.Visitor visitor) Methods inherited from class Mustache.AbstractSectionSegment
_segs, executeSegs, isStandalone, isStandaloneEnd, isStandaloneStart, standaloneEnd, standaloneStartMethods inherited from class Template.Segment
writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Mustache.StandaloneSection
firstLeadsBlank, lastTrailsBlank, trimFirstBlank, trimLastBlank
-
Constructor Details
-
BlockSegment
-
BlockSegment
-
-
Method Details
-
execute
- Specified by:
executein classTemplate.Segment
-
decompile
- Specified by:
decompilein classTemplate.Segment
-
visit
- Specified by:
visitin classTemplate.Segment
-
indent
Description copied from class:Template.SegmentRecursively indent by the parameter indent.- Specified by:
indentin classMustache.AbstractSectionSegment- Parameters:
indent- should be space characters that are not\n.first- append indent to the first line (regardless if it has a\nor not).last- append indent on the last\nthat has no text after it.- Returns:
- a newly created segment or the same segment if nothing changed.
-
replaceBlocks
-
toString
-