public class ASTStringLiteral extends AbstractVmNode
first, info, invalid, last, parser, state, templateName
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor and Description |
---|
ASTStringLiteral(int id) |
ASTStringLiteral(VmParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
adjTokenLineNums(AbstractVmNode 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.
|
boolean |
isConstant()
Check to see if this is an interpolated string.
|
Object |
jjtAccept(VmParserVisitor visitor,
Object data)
Accept the visitor.
|
static String |
unescape(String string) |
childrenAccept, dump, getColumn, getFirstToken, getInfo, getLastToken, getLine, getTemplateName, getType, isInvalid, jjtClose, jjtOpen, literal, setFirstToken, setInfo, setInvalid, toString, toString
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
public ASTStringLiteral(int id)
id
- public ASTStringLiteral(VmParser p, int id)
p
- id
- public void adjTokenLineNums(AbstractVmNode node)
public Object jjtAccept(VmParserVisitor visitor, Object data)
VmNode
jjtAccept
in interface VmNode
jjtAccept
in class AbstractVmNode
org.apache.velocity.runtime.parser.node.SimpleNode#jjtAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor,
java.lang.Object)
public boolean isConstant()
Copyright © 2002–2017 InfoEther. All rights reserved.