public class InvertedSectionSegment extends AbstractSectionSegment
The content is rendered if there is no object found in the context, or is a
Boolean of value false, or is an Iterable with
no elements, or is an empty array.
segments| Constructor and Description |
|---|
InvertedSectionSegment(String text,
TemplateSegment template) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Appendable appendable,
ExecutionContext context)
Execute this segment (e.g. write down some variable value).
|
SegmentType |
getType() |
getContainingLiteralBlock, getLiteralBlock, performPostProcessingaddSegment, getSegmentName, getSegments, getSegmentsSize, iteratorappend, getDefaultEndDelimiter, getDefaultStartDelimiter, getEngine, getEngineConfiguration, getTagLiteral, getTemplate, getText, checkModificationAllowed, isReadOnly, toStringpublic InvertedSectionSegment(String text, TemplateSegment template)
public SegmentType getType()
public void execute(Appendable appendable, ExecutionContext context)
Segmentexecute in interface Segmentexecute in class AbstractContainerSegmentCopyright © 2013. All Rights Reserved.