- java.lang.Object
-
- com.samskivert.mustache.Template.Segment
-
- com.samskivert.mustache.Mustache.NamedSegment
-
- com.samskivert.mustache.Mustache.VariableSegment
-
- Enclosing class:
- Mustache
protected static class Mustache.VariableSegment extends Mustache.NamedSegment
A segment that substitutes the contents of a variable.
-
-
Field Summary
Fields Modifier and Type Field Description protected Mustache.Escaper_escaperprotected Mustache.Formatter_formatter-
Fields inherited from class com.samskivert.mustache.Mustache.NamedSegment
_line, _name
-
-
Constructor Summary
Constructors Constructor Description VariableSegment(java.lang.String name, int line, Mustache.Formatter formatter, Mustache.Escaper escaper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecompile(Mustache.Delims delims, java.lang.StringBuilder into)voidexecute(Template tmpl, Template.Context ctx, java.io.Writer out)java.lang.StringtoString()voidvisit(Mustache.Visitor visitor)-
Methods inherited from class com.samskivert.mustache.Template.Segment
write
-
-
-
-
Field Detail
-
_formatter
protected final Mustache.Formatter _formatter
-
_escaper
protected final Mustache.Escaper _escaper
-
-
Constructor Detail
-
VariableSegment
public VariableSegment(java.lang.String name, int line, Mustache.Formatter formatter, Mustache.Escaper escaper)
-
-
Method Detail
-
execute
public void execute(Template tmpl, Template.Context ctx, java.io.Writer out)
- Specified by:
executein classTemplate.Segment
-
decompile
public void decompile(Mustache.Delims delims, java.lang.StringBuilder into)
- Specified by:
decompilein classTemplate.Segment
-
visit
public void visit(Mustache.Visitor visitor)
- Specified by:
visitin classTemplate.Segment
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-