Package io.quarkus.qute
Class SectionBlock
- java.lang.Object
-
- io.quarkus.qute.SectionBlock
-
- All Implemented Interfaces:
ErrorInitializer,WithOrigin
public final class SectionBlock extends Object implements WithOrigin, ErrorInitializer
Each section consists of one or more blocks. The main block is always present. Additional blocks start with a label definition:{#label param1}.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Expression>expressionsAn unmodifiable ordered map of parameter expressions.StringidId generated by the parser.StringlabelLabel used for the given part.TemplateNode.OriginoriginMap<String,String>parametersAn unmodifiable ordered map of parsed parameters.
-
Constructor Summary
Constructors Constructor Description SectionBlock(TemplateNode.Origin origin, String id, String label, Map<String,String> parameters, Map<String,Expression> expressions, List<TemplateNode> nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateNode.OrigingetOrigin()booleanisEmpty()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.qute.ErrorInitializer
error
-
-
-
-
Field Detail
-
origin
public final TemplateNode.Origin origin
-
id
public final String id
Id generated by the parser.mainfor the main block.
-
label
public final String label
Label used for the given part.mainfor the main block.
-
parameters
public final Map<String,String> parameters
An unmodifiable ordered map of parsed parameters.
-
expressions
public final Map<String,Expression> expressions
An unmodifiable ordered map of parameter expressions.
-
-
Constructor Detail
-
SectionBlock
public SectionBlock(TemplateNode.Origin origin, String id, String label, Map<String,String> parameters, Map<String,Expression> expressions, List<TemplateNode> nodes)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getOrigin
public TemplateNode.Origin getOrigin()
- Specified by:
getOriginin interfaceWithOrigin
-
-