Class AbstractTemplateEvent

    • Field Detail

      • templateName

        final java.lang.String templateName
      • line

        final int line
      • col

        final int col
    • Constructor Detail

      • AbstractTemplateEvent

        AbstractTemplateEvent()
      • AbstractTemplateEvent

        AbstractTemplateEvent​(java.lang.String templateName,
                              int line,
                              int col)
    • Method Detail

      • hasLocation

        public final boolean hasLocation()
        Description copied from interface: ITemplateEvent

        Checks whether this event contains location information (template name, line and column).

        Only events that are generated during the parsing of templates contain location info, locating them in their original template. All events generated during template processing and not originally present at the template do not contain this location data.

        Specified by:
        hasLocation in interface ITemplateEvent
        Returns:
        whether the event contains location data or not.
      • getTemplateName

        public final java.lang.String getTemplateName()
        Description copied from interface: ITemplateEvent

        Returns the name of the template from which parsing this event was originally created.

        Specified by:
        getTemplateName in interface ITemplateEvent
        Returns:
        the name of the template