Class Directive

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BLOCK
      Block directive indicator
      static int LINE
      Line directive indicator
    • Constructor Summary

      Constructors 
      Constructor Description
      Directive()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumn()
      for log msg purposes
      int getLine()
      for log msg purposes
      abstract java.lang.String getName()
      Return the name of this directive.
      java.lang.String getScopeName()  
      java.lang.String getTemplateName()  
      abstract int getType()
      Get the directive type BLOCK/LINE.
      boolean isScopeProvided()  
      void setLocation​(int line, int column)
      Allows the template location to be set.
      void setLocation​(int line, int column, java.lang.String templateName)
      Allows the template location to be set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Directive

        public Directive()
    • Method Detail

      • getName

        public abstract java.lang.String getName()
        Return the name of this directive.
        Returns:
        The name of this directive.
      • getType

        public abstract int getType()
        Get the directive type BLOCK/LINE.
        Returns:
        The directive type BLOCK/LINE.
      • setLocation

        public void setLocation​(int line,
                                int column)
        Allows the template location to be set.
        Parameters:
        line -
        column -
      • setLocation

        public void setLocation​(int line,
                                int column,
                                java.lang.String templateName)
        Allows the template location to be set.
        Parameters:
        line -
        column -
      • getLine

        public int getLine()
        for log msg purposes
        Returns:
        The current line for log msg purposes.
      • getColumn

        public int getColumn()
        for log msg purposes
        Returns:
        The current column for log msg purposes.
      • getTemplateName

        public java.lang.String getTemplateName()
        Returns:
        The template file name this directive was defined in, or null if not defined in a file.
      • getScopeName

        public java.lang.String getScopeName()
        Returns:
        the name to be used when a scope control is provided for this directive.
      • isScopeProvided

        public boolean isScopeProvided()
        Returns:
        true if there will be a scope control injected into the context when rendering this directive.