|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTStringLiteral
public class ASTStringLiteral
ASTStringLiteral support. Will interpolate!
Field Summary | |
---|---|
private java.lang.String |
image
|
private boolean |
interpolate
|
private java.lang.String |
interpolateimage
|
private SimpleNode |
nodeTree
|
Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
---|
children, first, id, info, invalid, last, parent, parser, rsvc, state |
Constructor Summary | |
---|---|
ASTStringLiteral(int id)
|
|
ASTStringLiteral(Parser p,
int id)
|
Method Summary | |
---|---|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data)
init : we don't have to do much. |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
java.lang.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. |
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
---|
childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean interpolate
private SimpleNode nodeTree
private java.lang.String image
private java.lang.String interpolateimage
Constructor Detail |
---|
public ASTStringLiteral(int id)
public ASTStringLiteral(Parser p, int id)
Method Detail |
---|
public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws java.lang.Exception
init
in interface Node
init
in class SimpleNode
java.lang.Exception
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
public java.lang.Object value(InternalContextAdapter context)
value
in interface Node
value
in class SimpleNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |