org.apache.velocity.runtime.visitor
Class VMReferenceMungeVisitor
- ParserVisitor
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.
Version:
- Geir Magnusson Jr.
private Map | argmap - Map containing VM arg to instance-use reference
Passed in with CTOR
|
Object | visit(ASTReference node, Object data) - Visitor method - if the literal is right, will
set the literal in the ASTReference node
|
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 |
argmap
private Map argmap
Map containing VM arg to instance-use reference
Passed in with CTOR
VMReferenceMungeVisitor
public VMReferenceMungeVisitor(Map map)
CTOR - takes a map of args to reference
visit
public Object visit(ASTReference node,
Object data)
Visitor method - if the literal is right, will
set the literal in the ASTReference node
- visit in interface ParserVisitor
- visit in interface BaseVisitor
node
- ASTReference to work ondata
- Object to pass down from caller
Copyright © 2003 Apache Software Foundation. All Rights Reserved.