org.apache.velocity.runtime.parser.node

Class ASTStringLiteral

public class ASTStringLiteral extends SimpleNode

ASTStringLiteral support. Will interpolate!

Version: $Id: ASTStringLiteral.java,v 1.17.4.1 2004/03/03 23:22:59 geirm Exp $

Author: Geir Magnusson Jr. Jason van Zyl

Field Summary
Stringimage
booleaninterpolate
Stringinterpolateimage
SimpleNodenodeTree
Constructor Summary
ASTStringLiteral(int id)
ASTStringLiteral(Parser p, int id)
Method Summary
Objectinit(InternalContextAdapter context, Object data)
init : we don't have to do much.
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(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.

Field Detail

image

private String image

interpolate

private boolean interpolate

interpolateimage

private String interpolateimage

nodeTree

private SimpleNode nodeTree

Constructor Detail

ASTStringLiteral

public ASTStringLiteral(int id)

ASTStringLiteral

public ASTStringLiteral(Parser p, int id)

Method Detail

init

public Object init(InternalContextAdapter context, Object data)
init : we don't have to do much. Init the tree (there shouldn't be one) and then see if interpolation is turned on.

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *

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.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.