Constructor and Description |
---|
PartialSegment(String text,
Origin origin,
String indentation) |
Modifier and Type | Method and Description |
---|---|
protected Appendable |
append(Appendable appendable,
String text) |
protected Appendable |
appendText(Appendable appendable) |
Appendable |
execute(Appendable appendable,
ExecutionContext context)
Execute this segment (e.g. write down some variable value).
|
protected String |
getDefaultEndDelimiter() |
protected String |
getDefaultStartDelimiter() |
protected List<MustacheTagInfo> |
getDirectChildTags() |
protected MustacheEngine |
getEngine() |
protected Configuration |
getEngineConfiguration() |
String |
getLiteralBlock()
Note that the text is reconstructed and will not be an exact copy when
"Set Delimiter" tags are used.
|
Origin |
getOrigin() |
protected String |
getSegmentName() |
MustacheTagInfo |
getTagInfo() |
protected String |
getTagLiteral(String content) |
protected MustacheTagType |
getTagType() |
protected Template |
getTemplate() |
String |
getText() |
SegmentType |
getType() |
protected boolean |
isHandlebarsSupportEnabled() |
String |
toString() |
public SegmentType getType()
public Appendable execute(Appendable appendable, ExecutionContext context)
Segment
public String getLiteralBlock()
Segment
getLiteralBlock
in interface Segment
Lambda.InputType.LITERAL
,
HelperDefinition.getContentLiteralBlock()
protected String getSegmentName()
public String getText()
public Origin getOrigin()
public MustacheTagInfo getTagInfo()
getTagInfo
in interface Segment
null
if the
segment does not represent a tag (e.g. SegmentType.TEXT
)protected Template getTemplate()
protected MustacheEngine getEngine()
protected Configuration getEngineConfiguration()
protected String getDefaultStartDelimiter()
protected String getDefaultEndDelimiter()
protected boolean isHandlebarsSupportEnabled()
protected Appendable append(Appendable appendable, String text)
protected Appendable appendText(Appendable appendable)
protected MustacheTagType getTagType()
protected List<MustacheTagInfo> getDirectChildTags()
Copyright © 2017. All rights reserved.