|
|||||||||||
| 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
ASTStringLiteral support. Will interpolate!
| Field Summary |
| Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode |
children, first, id, info, invalid, last, log, parent, parser, rsvc, state, templateName |
| Constructor Summary | |
ASTStringLiteral(int id)
|
|
ASTStringLiteral(Parser p,
int id)
|
|
| Method Summary | |
void |
adjTokenLineNums(Node node)
Adjust all the line and column numbers that comprise a node so that they are corrected for the string literals position within the template file. |
Object |
init(InternalContextAdapter context,
Object data)
init : we don't have to do much. |
boolean |
isConstant()
Check to see if this is an interpolated string. |
Object |
jjtAccept(ParserVisitor visitor,
Object data)
|
static String |
unescape(String string)
|
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, getLocation, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ASTStringLiteral(int id)
id -
public ASTStringLiteral(Parser p,
int id)
p - id - | Method Detail |
public Object init(InternalContextAdapter context,
Object data)
throws TemplateInitException
init in interface Nodeinit in class SimpleNodecontext - data -
TemplateInitExceptionNode.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public void adjTokenLineNums(Node node)
public static String unescape(String string)
public Object jjtAccept(ParserVisitor visitor,
Object data)
jjtAccept in interface NodejjtAccept in class SimpleNodeSimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor,
java.lang.Object)public boolean isConstant()
public Object value(InternalContextAdapter context)
value in interface Nodevalue in class SimpleNodecontext -
Node.value(org.apache.velocity.context.InternalContextAdapter)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||