Interface TemplateNode.Origin

Enclosing interface:
TemplateNode

public static interface TemplateNode.Origin
Represents an origin of a template node.
  • Method Details

    • getLine

      int getLine()
      Returns:
      the line where the node can be found
    • getLineCharacterStart

      int getLineCharacterStart()
      Note that this information is not available for all nodes.

      However, it's always available for an expression node.

      Returns:
      the line character the node starts
    • getLineCharacterEnd

      int getLineCharacterEnd()
      Note that this information is not available for all nodes.

      However, it's always available for an expression node.

      Returns:
      the line character the node ends
    • getTemplateId

      String getTemplateId()
    • getTemplateGeneratedId

      String getTemplateGeneratedId()
    • hasNonGeneratedTemplateId

      default boolean hasNonGeneratedTemplateId()
    • getVariant

      Optional<Variant> getVariant()
      Returns:
      the template variant
    • appendTo

      default void appendTo(StringBuilder builder)
    • isSynthetic

      default boolean isSynthetic()
      Returns:
      true if the template node was not part of the original template, false otherwise