@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,
List<Segment> segments) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(Appendable appendable,
String text) |
void |
execute(Appendable appendable,
ExecutionContext context)
Execute this segment (e.g. write down some variable value).
|
void |
fn(Appendable appendable,
ExecutionContext context) |
String |
getContentLiteralBlock() |
protected String |
getDefaultEndDelimiter() |
protected String |
getDefaultStartDelimiter() |
protected List<MustacheTagInfo> |
getDirectChildTags() |
protected MustacheEngine |
getEngine() |
protected Configuration |
getEngineConfiguration() |
String |
getLiteralBlock() |
Origin |
getOrigin() |
protected String |
getSegmentName() |
List<Segment> |
getSegments() |
int |
getSegmentsSize(boolean recursive) |
MustacheTagInfo |
getTagInfo() |
protected String |
getTagLiteral(String content) |
protected MustacheTagType |
getTagType() |
Template |
getTemplate() |
String |
getText() |
SegmentType |
getType() |
protected boolean |
isHandlebarsSupportEnabled() |
Iterator<Segment> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLiteralBlock, getOrigin, getTagInfo, getTextforEach, spliteratorpublic 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.LITERALpublic String getContentLiteralBlock()
getContentLiteralBlock in interface ContainerSegmentpublic List<Segment> getSegments()
getSegments in interface ContainerSegmentpublic int getSegmentsSize(boolean recursive)
getSegmentsSize in interface ContainerSegmentprotected String getSegmentName()
protected List<MustacheTagInfo> getDirectChildTags()
public String getText()
public Origin getOrigin()
public MustacheTagInfo getTagInfo()
getTagInfo in interface Segmentpublic Template getTemplate()
protected MustacheEngine getEngine()
protected Configuration getEngineConfiguration()
protected String getDefaultStartDelimiter()
protected String getDefaultEndDelimiter()
protected boolean isHandlebarsSupportEnabled()
protected void append(Appendable appendable, String text)
protected MustacheTagType getTagType()
Copyright © 2015. All Rights Reserved.