public abstract class BaseVisitor extends Object implements ParserVisitor
Modifier and Type | Field and Description |
---|---|
protected InternalContextAdapter |
context
Context used during traversal
|
protected Writer |
writer
Writer used as the output sink
|
Constructor and Description |
---|
BaseVisitor() |
protected InternalContextAdapter context
protected Writer writer
public void setWriter(Writer writer)
writer
- public void setContext(InternalContextAdapter context)
context
- public Object visit(SimpleNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.SimpleNode, java.lang.Object)
public Object visit(ASTprocess node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTprocess, java.lang.Object)
public Object visit(ASTExpression node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTExpression, java.lang.Object)
public Object visit(ASTAssignment node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAssignment, java.lang.Object)
public Object visit(ASTOrNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTOrNode, java.lang.Object)
public Object visit(ASTAndNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAndNode, java.lang.Object)
public Object visit(ASTEQNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEQNode, java.lang.Object)
public Object visit(ASTNENode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTNENode, java.lang.Object)
public Object visit(ASTLTNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTLTNode, java.lang.Object)
public Object visit(ASTGTNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTGTNode, java.lang.Object)
public Object visit(ASTLENode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTLENode, java.lang.Object)
public Object visit(ASTGENode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTGENode, java.lang.Object)
public Object visit(ASTAddNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTAddNode, java.lang.Object)
public Object visit(ASTSubtractNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTSubtractNode, java.lang.Object)
public Object visit(ASTMulNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMulNode, java.lang.Object)
public Object visit(ASTDivNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTDivNode, java.lang.Object)
public Object visit(ASTModNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTModNode, java.lang.Object)
public Object visit(ASTNotNode node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTNotNode, java.lang.Object)
public Object visit(ASTIntegerLiteral node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIntegerLiteral, java.lang.Object)
public Object visit(ASTFloatingPointLiteral node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTFloatingPointLiteral, java.lang.Object)
public Object visit(ASTStringLiteral node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTStringLiteral, java.lang.Object)
public Object visit(ASTIdentifier node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIdentifier, java.lang.Object)
public Object visit(ASTMethod node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMethod, java.lang.Object)
public Object visit(ASTIndex node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIndex, java.lang.Object)
public Object visit(ASTReference node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTReference, java.lang.Object)
public Object visit(ASTTrue node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTTrue, java.lang.Object)
public Object visit(ASTFalse node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTFalse, java.lang.Object)
public Object visit(ASTBlock node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTBlock, java.lang.Object)
public Object visit(ASTText node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTText, java.lang.Object)
public Object visit(ASTIfStatement node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIfStatement, java.lang.Object)
public Object visit(ASTElseStatement node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTElseStatement, java.lang.Object)
public Object visit(ASTElseIfStatement node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTElseIfStatement, java.lang.Object)
public Object visit(ASTComment node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTComment, java.lang.Object)
public Object visit(ASTTextblock node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTTextblock, java.lang.Object)
public Object visit(ASTObjectArray node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTObjectArray, java.lang.Object)
public Object visit(ASTWord node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTWord, java.lang.Object)
public Object visit(ASTSetDirective node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTSetDirective, java.lang.Object)
public Object visit(ASTDirectiveAssign node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTDirectiveAssign, java.lang.Object)
public Object visit(ASTDirective node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTDirective, java.lang.Object)
public Object visit(ASTEscapedDirective node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEscapedDirective, java.lang.Object)
public Object visit(ASTEscape node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTEscape, java.lang.Object)
public Object visit(ASTMap node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTMap, java.lang.Object)
public Object visit(ASTIntegerRange node, Object data)
visit
in interface ParserVisitor
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTIntegerRange, java.lang.Object)
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.