@Internal public interface Segment
Modifier and Type | Method and Description |
---|---|
Appendable |
execute(Appendable appendable,
ExecutionContext context)
Execute this segment (e.g. write down some variable value).
|
String |
getLiteralBlock()
Note that the text is reconstructed and will not be an exact copy when
"Set Delimiter" tags are used.
|
Origin |
getOrigin() |
MustacheTagInfo |
getTagInfo() |
String |
getText() |
SegmentType |
getType() |
SegmentType getType()
String getText()
Origin getOrigin()
null
in case of this
segment is a templateMustacheTagInfo getTagInfo()
null
if the
segment does not represent a tag (e.g. SegmentType.TEXT
)String getLiteralBlock()
Lambda.InputType.LITERAL
,
HelperDefinition.getContentLiteralBlock()
Appendable execute(Appendable appendable, ExecutionContext context)
appendable
- context
- Copyright © 2017. All rights reserved.