Module com.samskivert.jmustache
Package com.samskivert.mustache
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.Compiler
protected final String
private Template
private final Lock
Fields inherited from class com.samskivert.mustache.Mustache.NamedSegment
_line, _name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPartialSegment
(Mustache.Compiler compiler, String name, int line, String indent) -
Method Summary
Methods inherited from class com.samskivert.mustache.Template.Segment
decompile, indent, visit, write
-
Field Details
-
_comp
-
_indent
-
lock
-
_template
-
-
Constructor Details
-
AbstractPartialSegment
-
-
Method Details
-
execute
- Specified by:
execute
in classTemplate.Segment
-
getTemplate
-
_loadTemplate
-
isStandalone
public abstract boolean isStandalone()Description copied from class:Template.Segment
Whether 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. Oncetrim
is called, standalone tags are determined so that proper (re)indentation will work without reparsing the template.- Specified by:
isStandalone
in classTemplate.Segment
- Returns:
- true if the tag is standalone.
-