Interface SectionHelperFactory.SectionInitContext

    • Method Detail

      • getParameters

        default Map<String,​String> getParameters()
        Returns:
        the parameters of the main block
      • hasParameter

        default boolean hasParameter​(String name)
        Returns:
        true if the main block declares a parameter of the given name
      • getParameter

        default String getParameter​(String name)
        Returns:
        the parameter, or null/Parameter.EMPTY if the main block does not declare a parameter of the given name
      • getParameterOrDefault

        default String getParameterOrDefault​(String name,
                                             String defaultValue)
        Parameters:
        name -
        defaultValue -
        Returns:
        the param or the default value if not specified
      • parseValue

        Expression parseValue​(String value)
        Parse the specified value. The expression is not registered in the template.
        Parameters:
        value -
        Returns:
        a new expression
      • getBlock

        default SectionBlock getBlock​(String label)
        Parameters:
        label -
        Returns:
        the first block with the given label, or {code null} if no such exists
      • getEngine

        Engine getEngine()
        Returns:
        the engine
      • getOrigin

        default TemplateNode.Origin getOrigin()
        Returns:
        the origin of the section start tag