jvanzyl     00/10/12 08:14:33

  Modified:    src/java/org/apache/velocity/test TemplateNodeView.java
  Log:
  - updated javadoc.
  
  Revision  Changes    Path
  1.2       +19 -5     
jakarta-velocity/src/java/org/apache/velocity/test/TemplateNodeView.java
  
  Index: TemplateNodeView.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/TemplateNodeView.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TemplateNodeView.java     2000/09/30 17:04:21     1.1
  +++ TemplateNodeView.java     2000/10/12 15:14:33     1.2
  @@ -65,17 +65,30 @@
   
   /**
    * Simple class for dumping the AST for a template.
  + * Good for debugging and writing new directives.
    */
   public class TemplateNodeView
   {
  -    /** Template processor */
  -    //private JavaCCProcessor processor;
  +    /** 
  +     * Root of the AST node structure that results from
  +     * parsing a template.
  +     */
       private SimpleNode document;
  +    
  +    /**
  +     * Visitor used to traverse the AST node structure
  +     * and produce a visual representation of the
  +     * node structure. Very good for debugging and
  +     * writing new directives.
  +     */
       private NodeViewMode visitor;
   
  -    // So now, after a template is constructed all the
  -    // initial processing is done.
  -
  +    /**
  +     * Default constructor: sets up the Velocity
  +     * Runtime, creates the visitor for traversing
  +     * the node structure and then produces the
  +     * visual representation by the visitation.
  +     */
       public TemplateNodeView(String template)
       {
           try
  @@ -94,6 +107,7 @@
           }
       }
   
  +    /** For testing */
       public static void main(String args[])
       {
           TemplateNodeView v = new TemplateNodeView(args[0]);
  
  
  

Reply via email to