net.sourceforge.pmd.lang.ast.Node
, VmNode
public class ASTStringLiteral extends AbstractVmNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
first, info, invalid, last, parser, state, templateName
Constructor | Description |
---|---|
ASTStringLiteral(int id) |
|
ASTStringLiteral(VmParser p,
int id) |
Modifier and Type | Method | 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.
|
java.lang.Object |
jjtAccept(VmParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
static java.lang.String |
unescape(java.lang.String string) |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
childrenAccept, dump, getColumn, getFirstToken, getInfo, getLastToken, getLine, getTemplateName, getType, getXPathNodeName, isInvalid, jjtClose, jjtOpen, literal, setFirstToken, setInfo, setInvalid, toString
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
public ASTStringLiteral(int id)
id
- public ASTStringLiteral(VmParser p, int id)
p
- id
- public void adjTokenLineNums(AbstractVmNode node)
public static java.lang.String unescape(java.lang.String string)
public java.lang.Object jjtAccept(VmParserVisitor visitor, java.lang.Object data)
VmNode
jjtAccept
in interface VmNode
jjtAccept
in class AbstractVmNode
public boolean isConstant()
Copyright © 2002–2018 PMD. All rights reserved.