@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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLiteralBlock, getOrigin, getTagInfo, getText, performPostProcessingpublic SegmentType getType()
public void execute(Appendable appendable, ExecutionContext context)
Segmentpublic void fn(Appendable appendable, ExecutionContext context)
appendable - context - Options.fn()public 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 MustacheTagInfo getTagInfo()
getTagInfo in interface Segmentpublic TemplateSegment getTemplate()
protected boolean isReadOnly()
protected MustacheEngine getEngine()
protected Configuration getEngineConfiguration()
protected String getDefaultStartDelimiter()
protected String getDefaultEndDelimiter()
protected boolean isHandlebarsSupportEnabled()
protected void append(Appendable appendable, String text)
protected void checkModificationAllowed()
protected MustacheTagType getTagType()
Copyright © 2014. All Rights Reserved.