Uses of Class
com.samskivert.mustache.Mustache.Compiler
-
Uses of Mustache.Compiler in com.samskivert.mustache
Fields in com.samskivert.mustache declared as Mustache.CompilerModifier and TypeFieldDescriptionprotected final Mustache.Compiler
Mustache.AbstractPartialSegment._comp
protected final Mustache.Compiler
Mustache.AbstractSectionSegment._comp
protected final Mustache.Compiler
Mustache.Accumulator._comp
protected final Mustache.Compiler
Mustache.InvertedSegment._comp
protected final Mustache.Compiler
Template._compiler
Methods in com.samskivert.mustache that return Mustache.CompilerModifier and TypeMethodDescriptionstatic Mustache.Compiler
Mustache.compiler()
Returns a compiler that escapes HTML by default and does not use standards mode.Mustache.Compiler.defaultValue
(String defaultValue) Returns a compiler that will use the given value for any variable that is missing, or otherwise resolves to null.Mustache.Compiler.emptyStringIsFalse
(boolean emptyStringIsFalse) Returns a compiler that will treat empty string as a false value if parameter is true.Mustache.Compiler.escapeHTML
(boolean escapeHTML) Returns a compiler that either does or does not escape HTML by default.Returns a compiler that will use the given value for any variable that resolves to null, but will still raise an exception for variables for which an accessor cannot be found.Mustache.Compiler.standardsMode
(boolean standardsMode) Returns a compiler that either does or does not use standards mode.Mustache.Compiler.strictSections
(boolean strictSections) Returns a compiler that throws an exception when a section references a missing value (true
) or treats a missing value asfalse
(false
, the default).Mustache.Compiler.withCollector
(Mustache.Collector collector) Returns a compiler configured to use the supplied collector.Mustache.Compiler.withDelims
(String delims) Returns a compiler configured to use the supplied delims as default delimiters.Mustache.Compiler.withEscaper
(Mustache.Escaper escaper) Configures theMustache.Escaper
used to escape substituted text.Mustache.Compiler.withFormatter
(Mustache.Formatter formatter) Configures theMustache.Formatter
used to turn objects into strings.Mustache.Compiler.withLoader
(Mustache.TemplateLoader loader) Returns a compiler configured to use the supplied template loader to handle partials.Mustache.Compiler.zeroIsFalse
(boolean zeroIsFalse) Returns a compiler that will treat zero as a false value if parameter is true.Methods in com.samskivert.mustache with parameters of type Mustache.CompilerModifier and TypeMethodDescriptionprotected static Template
Mustache.compile
(Reader source, Mustache.Compiler compiler) Compiles the supplied template into a repeatedly executable intermediate form.Constructors in com.samskivert.mustache with parameters of type Mustache.CompilerModifierConstructorDescriptionprotected
AbstractPartialSegment
(Mustache.Compiler compiler, String name, int line, String indent) protected
AbstractSectionSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) Accumulator
(Mustache.Compiler compiler, boolean topLevel) BlockSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) IncludedTemplateSegment
(Mustache.Compiler compiler, String name, int line) private
IncludedTemplateSegment
(Mustache.Compiler compiler, String name, int line, String indent) InvertedSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) 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) Parser
(Mustache.Compiler compiler) SectionSegment
(Mustache.Compiler compiler, String name, Template.Segment[] segs, int line) protected
Template
(Template.Segment[] segs, Mustache.Compiler compiler)