net.sourceforge.pmd.lang.ast.Node
, EcmascriptNode<org.mozilla.javascript.ast.Name>
public class ASTName extends AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
node
Constructor | Description |
---|---|
ASTName(org.mozilla.javascript.ast.Name name) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getIdentifier() |
|
boolean |
isFunctionCallName() |
Returns whether this name node is the name of a function call.
|
boolean |
isFunctionNodeName() |
Returns whether this name node is the name of a function declaration.
|
boolean |
isFunctionNodeParameter() |
Returns whether this name node is the name of a function declaration
parameter.
|
boolean |
isGlobalName() |
|
boolean |
isLocalName() |
|
boolean |
isVariableDeclaration() |
Returns whether this name node is the name of a variable declaration.
|
java.lang.Object |
jjtAccept(EcmascriptParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
childrenAccept, getJsDoc, getNode, getXPathNodeName, hasSideEffects
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
public java.lang.Object jjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface EcmascriptNode<org.mozilla.javascript.ast.Name>
jjtAccept
in class AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
public java.lang.String getIdentifier()
public boolean isLocalName()
public boolean isGlobalName()
public boolean isFunctionNodeName()
true
if name of a function declaration,
false
otherwise.public boolean isFunctionNodeParameter()
true
if name of a function declaration parameter,
false
otherwise.public boolean isFunctionCallName()
true
if name of a function call, false
otherwise.public boolean isVariableDeclaration()
true
if name of a variable declaration,
false
otherwise.Copyright © 2002–2018 PMD. All rights reserved.