Interface EcmascriptNode<T extends org.mozilla.javascript.ast.AstNode>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object childrenAccept​(EcmascriptParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      java.lang.String getJsDoc()
      Get the JsDoc associated with the given node.
      T getNode()
      Get the underlying Rhino AST node.
      boolean hasSideEffects()  
      java.lang.Object jjtAccept​(EcmascriptParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      • 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, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Method Detail

      • jjtAccept

        java.lang.Object jjtAccept​(EcmascriptParserVisitor visitor,
                                   java.lang.Object data)
        Accept the visitor. *
      • childrenAccept

        java.lang.Object childrenAccept​(EcmascriptParserVisitor visitor,
                                        java.lang.Object data)
        Accept the visitor. *
      • getNode

        T getNode()
        Get the underlying Rhino AST node.
      • getJsDoc

        java.lang.String getJsDoc()
        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.
        Returns:
        The JsDoc comment for the node, may be null.
      • hasSideEffects

        boolean hasSideEffects()