@Internal public class SectionSegment extends Object
The content is not rendered if there is no object found in the context, or the found object is:
The content is rendered one or more times if there is an object found in the context. If the found object is:
Lambda,
InvertedSectionSegment| Constructor and Description |
|---|
SectionSegment(String text,
Origin origin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSegment(Segment segment) |
protected void |
append(Appendable appendable,
String text) |
void |
execute(Appendable appendable,
ExecutionContext context)
Execute this segment (e.g. write down some variable value).
|
protected String |
getContainingLiteralBlock() |
protected String |
getDefaultEndDelimiter() |
protected String |
getDefaultStartDelimiter() |
protected MustacheEngine |
getEngine() |
protected Configuration |
getEngineConfiguration() |
String |
getLiteralBlock() |
Origin |
getOrigin() |
protected String |
getSegmentName() |
List<Segment> |
getSegments() |
int |
getSegmentsSize() |
protected String |
getTagLiteral(String content) |
TemplateSegment |
getTemplate() |
String |
getText() |
SegmentType |
getType() |
protected void |
checkModificationAllowed() |
protected boolean |
isReadOnly() |
Iterator<Segment> |
iterator() |
void |
performPostProcessing()
Perform compilation post processing, e.g. optimization.
|
String |
toString() |
public SegmentType getType()
public void execute(Appendable appendable, ExecutionContext context)
Segmentpublic String getLiteralBlock()
getLiteralBlock in interface SegmentLambda.InputType.LITERALprotected String getContainingLiteralBlock()
public void performPostProcessing()
SegmentperformPostProcessing in interface Segmentpublic void addSegment(Segment segment)
addSegment in interface ContainerSegmentpublic List<Segment> getSegments()
getSegments in interface ContainerSegmentpublic int getSegmentsSize()
getSegmentsSize in interface ContainerSegmentprotected String getSegmentName()
public String getText()
public Origin getOrigin()
public TemplateSegment getTemplate()
protected boolean isReadOnly()
protected MustacheEngine getEngine()
protected Configuration getEngineConfiguration()
protected String getDefaultStartDelimiter()
protected String getDefaultEndDelimiter()
protected void append(Appendable appendable, String text)
protected void checkModificationAllowed()
Copyright © 2013. All Rights Reserved.