net.sourceforge.pmd.lang.ast.Node, VmNodepublic class ASTReference extends AbstractVmNode
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
strictRef |
Indicates if we are running in strict reference mode.
|
boolean |
toStringNullCheck |
Indicates if toString() should be called during condition evaluation just
to ensure it does not return null.
|
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parentfirst, info, invalid, last, parser, state, templateName| Constructor | Description |
|---|---|
ASTReference(int id) |
|
ASTReference(VmParser p,
int id) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getRootString() |
Returns the 'root string', the reference key
|
java.lang.Object |
jjtAccept(VmParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
java.lang.String |
literal() |
Override of the SimpleNode method literal() Returns the literal
representation of the node.
|
void |
setLiteral(java.lang.String literal) |
Routine to allow the literal representation to be externally overridden.
|
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, 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, toStringchildrenAccept, dump, getColumn, getFirstToken, getInfo, getLastToken, getLine, getTemplateName, getType, getXPathNodeName, isInvalid, jjtClose, jjtOpen, setFirstToken, setInfo, setInvalid, toStringfindChildNodesWithXPath, 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, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserDatapublic boolean strictRef
public boolean toStringNullCheck
public ASTReference(int id)
id - public ASTReference(VmParser p, int id)
p - id - public java.lang.Object jjtAccept(VmParserVisitor visitor, java.lang.Object data)
VmNodejjtAccept in interface VmNodejjtAccept in class AbstractVmNodepublic java.lang.String getRootString()
public void setLiteral(java.lang.String literal)
literal - String to render to when nullpublic java.lang.String literal()
literal in class AbstractVmNodeCopyright © 2002–2018 PMD. All rights reserved.