Class Mustache.AbstractPartialSegment
java.lang.Object
com.samskivert.mustache.Template.Segment
com.samskivert.mustache.Mustache.NamedSegment
com.samskivert.mustache.Mustache.AbstractPartialSegment
- Direct Known Subclasses:
Mustache.IncludedTemplateSegment, Mustache.ParentTemplateSegment
- Enclosing class:
Mustache
An abstract segment that is a template include.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Mustache.Compilerprotected final Stringprivate Templateprivate final LockFields inherited from class Mustache.NamedSegment
_line, _name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPartialSegment(Mustache.Compiler compiler, String name, int line, String indent) -
Method Summary
Methods inherited from class Template.Segment
decompile, indent, visit, write
-
Field Details
-
_comp
-
_indent
-
lock
-
_template
-
-
Constructor Details
-
AbstractPartialSegment
-
-
Method Details
-
execute
- Specified by:
executein classTemplate.Segment
-
getTemplate
-
_loadTemplate
-
isStandalone
public abstract boolean isStandalone()Description copied from class:Template.SegmentWhether or not the segment is standalone. The definition of standalone is defined by the mustache spec. String and variable tags are never standalone. For blocks this is based on the closing tag. Oncetrimis called, standalone tags are determined so that proper (re)indentation will work without reparsing the template.- Specified by:
isStandalonein classTemplate.Segment- Returns:
- true if the tag is standalone.
-