Interface ParserHelper


public interface ParserHelper
See Also:
  • Method Details

    • getTemplateId

      String getTemplateId()
      Returns:
      the template id
    • addParameter

      void addParameter(String name, String type)
      Adds an implicit parameter declaration. This is an alternative approach to explicit parameter declarations used directly in the templates, e.g. .

      The type is a fully qualified class name. The package name is optional for JDK types from the java.lang package. Parameterized types are supported, however wildcards are always ignored - only the upper/lower bound is taken into account. For example, the type info java.util.List<? extends org.acme.Foo> is recognized as java.util.List<org.acme.Foo> list. Type variables are not handled in a special way and should never be used.

      Parameters:
      name -
      type -
    • addContentFilter

      void addContentFilter(Function<String,String> filter)
      The filter is used before the template contents is parsed.
      Parameters:
      filter -