Class 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.ast.AbstractNode

        beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
    • 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
      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.
      Object jjtAccept​(EcmascriptParserVisitor visitor, Object data)
      Accept the visitor.
      • Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode

        appendElement, children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, 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

        children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Constructor Detail

      • ASTName

        public ASTName​(org.mozilla.javascript.ast.Name name)
    • Method Detail

      • getIdentifier

        public 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:
        true if name of a function declaration, false otherwise.
      • isFunctionNodeParameter

        public boolean isFunctionNodeParameter()
        Returns whether this name node is the name of a function declaration parameter.
        Returns:
        true if name of a function declaration parameter, false otherwise.
      • isFunctionCallName

        public boolean isFunctionCallName()
        Returns whether this name node is the name of a function call.
        Returns:
        true if name of a function call, false otherwise.
      • isVariableDeclaration

        public boolean isVariableDeclaration()
        Returns whether this name node is the name of a variable declaration.
        Returns:
        true if name of a variable declaration, false otherwise.