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 Details

    • isMainBlock

      default boolean isMainBlock()
    • getLabel

      String getLabel()
    • getParameters

      Map<String,String> 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

      default String getParameter(String name)
    • hasParameter

      default boolean hasParameter(String name)
    • getParameter

      String getParameter(int position)
      Parameters:
      position -
      Returns:
      the parameter for the specified position, or null if no such parameter exists
      See Also:
    • addExpression

      Expression addExpression(String param, String value)
      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: