Class AbstractEcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T node  
      • Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode

        beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object childrenAccept​(EcmascriptParserVisitor visitor, Object data)
      Accept the visitor
      String getJsDoc()
      Get the JsDoc associated with the given node.
      T getNode()
      Get the underlying Rhino AST node.
      String getXPathNodeName()  
      boolean hasSideEffects()  
      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
    • Field Detail

      • node

        protected final T extends org.mozilla.javascript.ast.AstNode node
    • Constructor Detail

      • AbstractEcmascriptNode

        public AbstractEcmascriptNode​(T node)
    • Method Detail

      • getNode

        public T getNode()
        Description copied from interface: EcmascriptNode
        Get the underlying Rhino AST node.
        Specified by:
        getNode in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
      • getJsDoc

        public String getJsDoc()
        Description copied from interface: EcmascriptNode
        Get the JsDoc associated with the given node. If there is no JsDoc on this node, it may be associated with a parent node, on more representative of the entire expression containing this node.
        Specified by:
        getJsDoc in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
        Returns:
        The JsDoc comment for the node, may be null.
      • hasSideEffects

        public boolean hasSideEffects()
        Specified by:
        hasSideEffects in interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>
      • getXPathNodeName

        public String getXPathNodeName()
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        getXPathNodeName in class net.sourceforge.pmd.lang.ast.AbstractNode