Save This Page
Home » velocity-1.5 » org.apache » velocity » runtime » directive » [javadoc | source]
org.apache.velocity.runtime.directive
abstract public class: Directive [javadoc | source]
java.lang.Object
   org.apache.velocity.runtime.directive.Directive

All Implemented Interfaces:
    Cloneable, DirectiveConstants

Direct Known Subclasses:
    Literal, Macro, Parse, InputBase, Include, VelocimacroProxy, Foreach

Base class for all directives used in Velocity.
Field Summary
protected  RuntimeServices rsvc     
Method from org.apache.velocity.runtime.directive.Directive Summary:
getColumn,   getLine,   getName,   getType,   init,   render,   setLocation
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.velocity.runtime.directive.Directive Detail:
 public int getColumn() 
    for log msg purposes
 public int getLine() 
    for log msg purposes
 abstract public String getName()
    Return the name of this directive.
 abstract public int getType()
    Get the directive type BLOCK/LINE.
 public  void init(RuntimeServices rs,
    InternalContextAdapter context,
    Node node) throws TemplateInitException 
    How this directive is to be initialized.
 abstract public boolean render(InternalContextAdapter context,
    Writer writer,
    Node node) throws MethodInvocationException, IOException, ResourceNotFoundException, ParseErrorException
    How this directive is to be rendered
 public  void setLocation(int line,
    int column) 
    Allows the template location to be set.