|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.visitor.BaseVisitor org.apache.velocity.runtime.visitor.VMReferenceMungeVisitor
public class VMReferenceMungeVisitor
This class is a visitor used by the VM proxy to change the literal representation of a reference in a VM. The reason is to preserve the 'render literal if null' behavior w/o making the VMProxy stuff more complicated than it is already.
Field Summary |
---|
Fields inherited from class org.apache.velocity.runtime.visitor.BaseVisitor |
---|
context, writer |
Constructor Summary | |
---|---|
VMReferenceMungeVisitor(Map map)
CTOR - takes a map of args to reference |
Method Summary | |
---|---|
Object |
visit(ASTReference node,
Object data)
Visitor method - if the literal is right, will set the literal in the ASTReference node |
Methods inherited from class org.apache.velocity.runtime.visitor.BaseVisitor |
---|
setContext, setWriter, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VMReferenceMungeVisitor(Map map)
map
- Method Detail |
---|
public Object visit(ASTReference node, Object data)
visit
in interface ParserVisitor
visit
in class BaseVisitor
node
- ASTReference to work ondata
- Object to pass down from caller
ParserVisitor.visit(org.apache.velocity.runtime.parser.node.ASTReference, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |