public class ASTStringLiteral extends SimpleNode
| 构造器和说明 |
|---|
ASTStringLiteral(int id) |
ASTStringLiteral(Parser p,
int id) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data)
init : we don't have to do much.
|
boolean |
isConstant()
Check to see if this is an interpolated string.
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
static java.lang.String |
unescape(java.lang.String string) |
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.
|
childrenAccept, dump, evaluate, execute, getChildren, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toStringpublic ASTStringLiteral(int id)
id - public ASTStringLiteral(Parser p, int id)
p - id - public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init 在接口中 Nodeinit 在类中 SimpleNodecontext - data - TemplateInitExceptionNode.init(bboss.org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public void adjTokenLineNums(Node node)
public static java.lang.String unescape(java.lang.String string)
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept 在接口中 NodejjtAccept 在类中 SimpleNodeSimpleNode.jjtAccept(bboss.org.apache.velocity.runtime.parser.node.ParserVisitor,
java.lang.Object)public boolean isConstant()
public java.lang.Object value(InternalContextAdapter context)
value 在接口中 Nodevalue 在类中 SimpleNodecontext - Node.value(bboss.org.apache.velocity.context.InternalContextAdapter)