Class BaseVisitor
java.lang.Object
org.apache.velocity.runtime.visitor.BaseVisitor
- All Implemented Interfaces:
StandardParserVisitor
- Direct Known Subclasses:
NodeViewMode
This is the base class for all visitors.
For each AST node, this class will provide
a bare-bones method for traversal.
- Version:
- $Id$
- Author:
- Jason van Zyl, Geir Magnusson Jr.
-
Field Summary
Modifier and TypeFieldDescriptionprotected InternalContextAdapter
Context used during traversalprotected Writer
Writer used as the output sink -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContext
(InternalContextAdapter context) void
visit
(ASTAddNode node, Object data) visit
(ASTAndNode node, Object data) visit
(ASTAssignment node, Object data) visit
(ASTComment node, Object data) visit
(ASTDirectiveAssign node, Object data) visit
(ASTDirective node, Object data) visit
(ASTDivNode node, Object data) visit
(ASTElseIfStatement node, Object data) visit
(ASTElseStatement node, Object data) visit
(ASTEscapedDirective node, Object data) visit
(ASTExpression node, Object data) visit
(ASTFloatingPointLiteral node, Object data) visit
(ASTIdentifier node, Object data) visit
(ASTIfStatement node, Object data) visit
(ASTIntegerLiteral node, Object data) visit
(ASTIntegerRange node, Object data) visit
(ASTModNode node, Object data) visit
(ASTMulNode node, Object data) visit
(ASTNotNode node, Object data) visit
(ASTObjectArray node, Object data) visit
(ASTprocess node, Object data) visit
(ASTReference node, Object data) visit
(ASTSetDirective node, Object data) visit
(ASTStringLiteral node, Object data) visit
(ASTSubtractNode node, Object data) visit
(ASTTextblock node, Object data) visit
(SimpleNode node, Object data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.velocity.runtime.parser.node.StandardParserVisitor
visit
-
Field Details
-
context
Context used during traversal -
writer
Writer used as the output sink
-
-
Constructor Details
-
BaseVisitor
public BaseVisitor()
-
-
Method Details
-
setWriter
- Parameters:
writer
-
-
setContext
- Parameters:
context
-
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- Since:
- 1.5
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- Since:
- 1.5
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- Since:
- 1.5
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- Since:
- 1.5
- See Also:
-
visit
- Specified by:
visit
in interfaceStandardParserVisitor
- Since:
- 1.5
- See Also:
-