Uses of Class
com.samskivert.mustache.Template.Segment
-
Uses of Template.Segment in com.samskivert.mustache
Subclasses of Template.Segment in com.samskivert.mustacheModifier and TypeClassDescriptionprotected static class
An abstract segment that is a template include.protected static class
A helper class for section-like segments.protected static class
A parent partial parameter using $ as the sigil.protected static class
protected static class
A segment that loads and executes a sub-template by spec called a partial.protected static class
A segment that represents an inverted section.protected static class
A helper class for named segments.protected static class
A segment that loads and executes a parent template by spec called inheritance.protected static class
A segment that represents a section.protected static class
A simple segment that reproduces a string.protected static class
A segment that substitutes the contents of a variable.Fields in com.samskivert.mustache declared as Template.SegmentModifier and TypeFieldDescriptionprotected final Template.Segment[]
Mustache.AbstractSectionSegment._segs
protected final Template.Segment[]
Mustache.ParentTemplateSegment._segs
protected final Template.Segment[]
Template._segs
Fields in com.samskivert.mustache with type parameters of type Template.SegmentModifier and TypeFieldDescriptionprotected final List
<Template.Segment> Mustache.Accumulator._segs
Methods in com.samskivert.mustache that return Template.SegmentModifier and TypeMethodDescriptionMustache.AbstractSectionSegment._segs()
Mustache.ParentTemplateSegment._segs()
Mustache.StandaloneSection._segs()
Mustache.Accumulator.finish()
(package private) abstract Template.Segment
Recursively indent by the parameter indent.(package private) static Template.Segment[]
Mustache.indentSegs
(Template.Segment[] _segs, String indent, boolean _first, boolean _last) Indents segments by indent.private static Template.Segment[]
Mustache.ParentTemplateSegment.removeNonBlocks
(Template.Segment[] segs) Mustache.BlockReplaceable.replaceBlocks
(Map<String, Mustache.BlockSegment> blocks) (package private) static Template.Segment[]
Mustache.replaceBlockSegs
(Template.Segment[] _segs, Map<String, Mustache.BlockSegment> blocks) protected static Template.Segment[]
Mustache.trim
(Template.Segment[] segs, boolean top) Methods in com.samskivert.mustache with parameters of type Template.SegmentModifier and TypeMethodDescriptionprotected Template.Fragment
Template.createFragment
(Template.Segment[] segs, Template.Context currentCtx) (package private) static Template.Segment[]
Mustache.indentSegs
(Template.Segment[] _segs, String indent, boolean _first, boolean _last) Indents segments by indent.private static Template.Segment[]
Mustache.ParentTemplateSegment.removeNonBlocks
(Template.Segment[] segs) (package private) static Template.Segment[]
Mustache.replaceBlockSegs
(Template.Segment[] _segs, Map<String, Mustache.BlockSegment> blocks) protected static Template.Segment[]
Mustache.trim
(Template.Segment[] segs, boolean top) Constructors in com.samskivert.mustache with parameters of type Template.SegmentModifierConstructorDescriptionprotected
AbstractSectionSegment
(Mustache.AbstractSectionSegment original, Template.Segment[] segs) protected
AbstractSectionSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) protected
BlockSegment
(Mustache.BlockSegment original, Template.Segment[] segs) BlockSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) InvertedSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) protected
InvertedSegment
(Mustache.InvertedSegment original, Template.Segment[] segs) ParentTemplateSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) private
ParentTemplateSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line, String indent) private
ParentTemplateSegment
(Mustache.ParentTemplateSegment original, Template.Segment[] segs, String indent, Map<String, Mustache.BlockSegment> blocks) SectionSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) protected
SectionSegment
(Mustache.SectionSegment original, Template.Segment[] segs) protected
Template
(Template.Segment[] segs, Mustache.Compiler compiler)