org.apache.velocity.runtime.parser.node
Class ASTStringLiteral
- Node
public class ASTStringLiteral
ASTStringLiteral support. Will interpolate!
Version:
- Geir Magnusson Jr.
- Jason van Zyl
Object | init(InternalContextAdapter context, Object data) - init : we don't have to do much.
|
Object | jjtAccept(ParserVisitor visitor, Object data) - Accept the visitor.
|
Object | value(InternalContextAdapter context) - renders the value of the string literal
If the properties allow, and the string literal contains a $ or a #
the literal is rendered against the context
Otherwise, the stringlit is returned.
|
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
image
private String image
interpolate
private boolean interpolate
interpolateimage
private String interpolateimage
ASTStringLiteral
public ASTStringLiteral(int id)
ASTStringLiteral
public ASTStringLiteral(Parser p,
int id)
init
public Object init(InternalContextAdapter context,
Object data)
throws Exception
init : we don't have to do much. Init the tree (there
shouldn't be one) and then see if interpolation is turned on.
- init in interface Node
- init in interface SimpleNode
value
public Object value(InternalContextAdapter context)
renders the value of the string literal
If the properties allow, and the string literal contains a $ or a #
the literal is rendered against the context
Otherwise, the stringlit is returned.
- value in interface Node
- value in interface SimpleNode
Copyright © 2003 Apache Software Foundation. All Rights Reserved.