Class ASTName
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
-
- net.sourceforge.pmd.lang.ecmascript.ast.ASTName
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,EcmascriptNode<org.mozilla.javascript.ast.Name>
public class ASTName extends AbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
node
-
-
Constructor Summary
Constructors Constructor Description ASTName(org.mozilla.javascript.ast.Name name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIdentifier()booleanisFunctionCallName()Returns whether this name node is the name of a function call.booleanisFunctionNodeName()Returns whether this name node is the name of a function declaration.booleanisFunctionNodeParameter()Returns whether this name node is the name of a function declaration parameter.booleanisGlobalName()booleanisLocalName()booleanisVariableDeclaration()Returns whether this name node is the name of a variable declaration.java.lang.ObjectjjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)Accept the visitor.-
Methods inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
childrenAccept, getJsDoc, getNode, getXPathNodeName, hasSideEffects
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, 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
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
jjtAccept
public java.lang.Object jjtAccept(EcmascriptParserVisitor visitor, java.lang.Object data)
Accept the visitor.- Specified by:
jjtAcceptin interfaceEcmascriptNode<org.mozilla.javascript.ast.Name>- Overrides:
jjtAcceptin classAbstractEcmascriptNode<org.mozilla.javascript.ast.Name>
-
getIdentifier
public java.lang.String getIdentifier()
-
isLocalName
public boolean isLocalName()
-
isGlobalName
public boolean isGlobalName()
-
isFunctionNodeName
public boolean isFunctionNodeName()
Returns whether this name node is the name of a function declaration.- Returns:
trueif name of a function declaration,falseotherwise.
-
isFunctionNodeParameter
public boolean isFunctionNodeParameter()
Returns whether this name node is the name of a function declaration parameter.- Returns:
trueif name of a function declaration parameter,falseotherwise.
-
isFunctionCallName
public boolean isFunctionCallName()
Returns whether this name node is the name of a function call.- Returns:
trueif name of a function call,falseotherwise.
-
isVariableDeclaration
public boolean isVariableDeclaration()
Returns whether this name node is the name of a variable declaration.- Returns:
trueif name of a variable declaration,falseotherwise.
-
-