public interface Element
  • Method Details

    • getLanguage

      String getLanguage()
      Gets the language what belongs to the template
      Returns:
    • accept

      ElementVisitor accept(ElementVisitor visitor)
      Accept the visitor to visit the element
      Parameters:
      visitor -
      Returns:
    • getTemplate

      String getTemplate()
      Gets the template of specified element
      Returns:
    • language

      Element language(String language)
      Assigns the language to
      Parameters:
      language -
      Returns:
    • template

      Element template(String template)
      Assigns the template to the element
      Parameters:
      template -
      Returns:
    • getPluginConfig

      PluginConfig getPluginConfig()
      Gets template configure for the element uses it in the case when we need to get the groovy template.
      Returns:
    • config

      Element config(PluginConfig templateConfig)
      Sets the template configure for the element
      Parameters:
      templateConfig -
      Returns:
    • addNewLine

      Element addNewLine(boolean needNewLine)
      Set the value isNewLine for the case digest
      Parameters:
      needNewLine -
      Returns:
    • isNewLine

      boolean isNewLine()
      Get the value of isNewLine
      Returns: