jvanzyl 00/10/12 09:33:24
Modified: src/java/org/apache/velocity/runtime/visitor
BaseVisitor.java
Log:
- update javadoc. got rid of unused fields.
Revision Changes Path
1.2 +8 -4
jakarta-velocity/src/java/org/apache/velocity/runtime/visitor/BaseVisitor.java
Index: BaseVisitor.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/visitor/BaseVisitor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BaseVisitor.java 2000/09/30 17:04:28 1.1
+++ BaseVisitor.java 2000/10/12 16:33:23 1.2
@@ -62,16 +62,20 @@
import org.apache.velocity.Context;
import org.apache.velocity.util.ClassUtils;
-// This will be expanded to full form when the
-// nodes settle down.
import org.apache.velocity.runtime.parser.*;
+/**
+ * This is the base class for all visitors.
+ * For each AST node, this class will provide
+ * a bare-bones method for traversal.
+ */
public abstract class BaseVisitor implements ParserVisitor
{
+ /** Context used during traversal */
protected Context context;
+
+ /** Writer used as the output sink */
protected Writer writer;
- protected SimpleNode root;
- protected String property;
public void setWriter(Writer writer)
{