Class Macro

  • All Implemented Interfaces:
    Cloneable

    @Deprecated
    public class Macro
    extends Directive
    Deprecated.
    for removal in PMD 7.0.0
    Macro implements the macro definition directive of VTL. example : #macro( isnull $i ) #if( $i ) $i #end #end This object is used at parse time to mainly process and register the macro. It is used inline in the parser when processing a directive.
    Version:
    $Id: Macro.java 746438 2009-02-21 05:41:24Z nbubna $
    Author:
    Geir Magnusson Jr., Henning P. Schmiedehausen
    • Constructor Detail

      • Macro

        public Macro()
        Deprecated.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Return name of this directive.
        Specified by:
        getName in class Directive
        Returns:
        The name of this directive.
      • getType

        public int getType()
        Deprecated.
        Return type of this directive.
        Specified by:
        getType in class Directive
        Returns:
        The type of this directive.
      • isScopeProvided

        public boolean isScopeProvided()
        Deprecated.
        Since this class does no processing of content, there is never a need for an internal scope.
        Overrides:
        isScopeProvided in class Directive
        Returns:
        true if there will be a scope control injected into the context when rendering this directive.