Interface JavaNode

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Object childrenAccept​(JavaParserVisitor visitor, java.lang.Object data)
      Dispatches the given visitor to the children of this node.
      java.lang.Object jjtAccept​(JavaParserVisitor visitor, java.lang.Object data)
      Calls back the visitor's visit method corresponding to the runtime type of this Node.
      void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)
      Deprecated.
      • 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
      • Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode

        getScope
    • Method Detail

      • jjtAccept

        java.lang.Object jjtAccept​(JavaParserVisitor visitor,
                                   java.lang.Object data)
        Calls back the visitor's visit method corresponding to the runtime type of this Node.
        Parameters:
        visitor - Visitor to dispatch
        data - Visit data
      • childrenAccept

        java.lang.Object childrenAccept​(JavaParserVisitor visitor,
                                        java.lang.Object data)
        Dispatches the given visitor to the children of this node. This is the default implementation of JavaParserVisitor.visit(JavaNode, Object), to which all other default implementations for visit methods delegate. Unless visit methods are overridden without calling super.visit, the visitor performs a depth-first tree walk.

        The return value of the visit methods called on children are ignored.

        Parameters:
        visitor - Visitor to dispatch
        data - Visit data
      • setScope

        @InternalApi
        @Deprecated
        void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)
        Deprecated.