Package io.quarkus.qute
Interface SectionHelperFactory.BlockInfo
- All Superinterfaces:
ErrorInitializer,SectionHelperFactory.ParserDelegate,WithOrigin
- Enclosing interface:
- SectionHelperFactory<T extends SectionHelper>
public static interface SectionHelperFactory.BlockInfo
extends SectionHelperFactory.ParserDelegate, WithOrigin
-
Method Summary
Modifier and TypeMethodDescriptionaddExpression(String param, String value) Parse and register an expression for the specified parameter.getLabel()getParameter(int position) default StringgetParameter(String name) An unmodifiable ordered map of parsed parameters.default booleanhasParameter(String name) Methods inherited from interface io.quarkus.qute.ErrorInitializer
errorMethods inherited from interface io.quarkus.qute.SectionHelperFactory.ParserDelegate
createParserErrorMethods inherited from interface io.quarkus.qute.WithOrigin
getOrigin
-
Method Details
-
getLabel
String getLabel() -
getParameters
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.
- Returns:
- the map of parameters
- See Also:
-
getParameter
-
hasParameter
-
getParameter
- Parameters:
position-- Returns:
- the parameter for the specified position, or
nullif no such parameter exists - See Also:
-
addExpression
Parse and register an expression for the specified parameter.A registered expression contributes to the
Template.getExpressions(), i.e. can be validated at build time.The origin of the returned expression is the origin of the containing block.
- Parameters:
param-value-- Returns:
- a new expression
- See Also:
-