Class NodeViewMode
- java.lang.Object
-
- org.apache.velocity.runtime.visitor.BaseVisitor
-
- org.apache.velocity.runtime.visitor.NodeViewMode
-
- All Implemented Interfaces:
StandardParserVisitor
public class NodeViewMode extends BaseVisitor
This class is simply a visitor implementation that traverses the AST, produced by the Velocity parsing process, and creates a visual structure of the AST. This is primarily used for debugging, but it useful for documentation as well.- Version:
- $Id$
- Author:
- Jason van Zyl
-
-
Field Summary
-
Fields inherited from class org.apache.velocity.runtime.visitor.BaseVisitor
context, writer
-
-
Constructor Summary
Constructors Constructor Description NodeViewMode()
-
Method Summary
-
Methods inherited from class org.apache.velocity.runtime.visitor.BaseVisitor
setContext, setWriter, visit, visit, visit, visit
-
-
-
-
Method Detail
-
visit
public Object visit(SimpleNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.SimpleNode, java.lang.Object)
-
visit
public Object visit(ASTprocess node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTprocess, java.lang.Object)
-
visit
public Object visit(ASTExpression node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTExpression, java.lang.Object)
-
visit
public Object visit(ASTAssignment node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAssignment, java.lang.Object)
-
visit
public Object visit(ASTOrNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTOrNode, java.lang.Object)
-
visit
public Object visit(ASTAndNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAndNode, java.lang.Object)
-
visit
public Object visit(ASTEQNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEQNode, java.lang.Object)
-
visit
public Object visit(ASTNENode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTNENode, java.lang.Object)
-
visit
public Object visit(ASTLTNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTLTNode, java.lang.Object)
-
visit
public Object visit(ASTGTNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTGTNode, java.lang.Object)
-
visit
public Object visit(ASTLENode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTLENode, java.lang.Object)
-
visit
public Object visit(ASTGENode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTGENode, java.lang.Object)
-
visit
public Object visit(ASTAddNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAddNode, java.lang.Object)
-
visit
public Object visit(ASTSubtractNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTSubtractNode, java.lang.Object)
-
visit
public Object visit(ASTMulNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMulNode, java.lang.Object)
-
visit
public Object visit(ASTDivNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTDivNode, java.lang.Object)
-
visit
public Object visit(ASTModNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTModNode, java.lang.Object)
-
visit
public Object visit(ASTNotNode node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTNotNode, java.lang.Object)
-
visit
public Object visit(ASTNegateNode node, Object data)
-
visit
public Object visit(ASTFloatingPointLiteral node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTFloatingPointLiteral, java.lang.Object)
-
visit
public Object visit(ASTIntegerLiteral node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- Since:
- 1.5
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIntegerLiteral, java.lang.Object)
-
visit
public Object visit(ASTStringLiteral node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTStringLiteral, java.lang.Object)
-
visit
public Object visit(ASTIdentifier node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIdentifier, java.lang.Object)
-
visit
public Object visit(ASTMethod node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMethod, java.lang.Object)
-
visit
public Object visit(ASTReference node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTReference, java.lang.Object)
-
visit
public Object visit(ASTTrue node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTTrue, java.lang.Object)
-
visit
public Object visit(ASTFalse node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTFalse, java.lang.Object)
-
visit
public Object visit(ASTBlock node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTBlock, java.lang.Object)
-
visit
public Object visit(ASTText node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTText, java.lang.Object)
-
visit
public Object visit(ASTIfStatement node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIfStatement, java.lang.Object)
-
visit
public Object visit(ASTElseStatement node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTElseStatement, java.lang.Object)
-
visit
public Object visit(ASTElseIfStatement node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTElseIfStatement, java.lang.Object)
-
visit
public Object visit(ASTObjectArray node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTObjectArray, java.lang.Object)
-
visit
public Object visit(ASTDirective node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTDirective, java.lang.Object)
-
visit
public Object visit(ASTWord node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTWord, java.lang.Object)
-
visit
public Object visit(ASTSetDirective node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTSetDirective, java.lang.Object)
-
visit
public Object visit(ASTEscapedDirective node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- Since:
- 1.5
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEscapedDirective, java.lang.Object)
-
visit
public Object visit(ASTEscape node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- Since:
- 1.5
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEscape, java.lang.Object)
-
visit
public Object visit(ASTMap node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- Since:
- 1.5
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMap, java.lang.Object)
-
visit
public Object visit(ASTIntegerRange node, Object data)
- Specified by:
visit
in interfaceStandardParserVisitor
- Overrides:
visit
in classBaseVisitor
- See Also:
BaseVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIntegerRange, java.lang.Object)
-
-