Class Directive

  • All Implemented Interfaces:
    Cloneable, org.apache.velocity.runtime.directive.DirectiveConstants
    Direct Known Subclasses:
    BlockDirective, LineDirective

    public abstract class Directive
    extends org.apache.velocity.runtime.directive.Directive
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Directive.Variable  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DIRECTIVE_FILE_EXTENSION  
      • Fields inherited from class org.apache.velocity.runtime.directive.Directive

        rsvc
      • Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants

        BLOCK, LINE
    • Constructor Summary

      Constructors 
      Constructor Description
      Directive()  
    • Constructor Detail

      • Directive

        public Directive()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class org.apache.velocity.runtime.directive.Directive
      • init

        public void init​(org.apache.velocity.runtime.RuntimeServices rs,
                         org.apache.velocity.context.InternalContextAdapter context,
                         org.apache.velocity.runtime.parser.node.Node node)
                  throws org.apache.velocity.exception.TemplateInitException
        Overrides:
        init in class org.apache.velocity.runtime.directive.Directive
        Throws:
        org.apache.velocity.exception.TemplateInitException
      • render

        public final boolean render​(org.apache.velocity.context.InternalContextAdapter context,
                                    Writer writer,
                                    org.apache.velocity.runtime.parser.node.Node node)
                             throws org.apache.velocity.exception.ResourceNotFoundException
        Specified by:
        render in class org.apache.velocity.runtime.directive.Directive
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException