Package io.quarkus.qute
Class SectionBlock
java.lang.Object
io.quarkus.qute.SectionBlock
- All Implemented Interfaces:
ErrorInitializer,WithOrigin
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
FieldsModifier and TypeFieldDescriptionfinal Map<String,Expression> An unmodifiable ordered map of parameter expressions.final StringId generated by the parser.final StringLabel used for the given part.final TemplateNode.OriginAn unmodifiable ordered map of parsed parameters. -
Constructor Summary
ConstructorsConstructorDescriptionSectionBlock(TemplateNode.Origin origin, String id, String label, Map<String, String> parameters, Map<String, Expression> expressions, List<TemplateNode> nodes, List<String> positionalParameters) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.qute.ErrorInitializer
error
-
Field Details
-
origin
-
id
Id generated by the parser.mainfor the main block. -
label
Label used for the given part.mainfor the main block. -
parameters
An unmodifiable ordered map of parsed parameters.Note that the order does not necessary reflect the original positions of the parameters but the parsing order.
- See Also:
-
expressions
An unmodifiable ordered map of parameter expressions.
-
-
Constructor Details
-
SectionBlock
public SectionBlock(TemplateNode.Origin origin, String id, String label, Map<String, String> parameters, Map<String, Expression> expressions, List<TemplateNode> nodes, List<String> positionalParameters)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getParameter
- Parameters:
position-- Returns:
- the parameter for the specified position, or
nullif no such parameter exists
-
toString
-
getOrigin
- Specified by:
getOriginin interfaceWithOrigin
-