Class AbstractJavaNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected JavaParser parser
      Deprecated.
       
      • 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 Deprecated Methods 
      Modifier and Type Method Description
      Object childrenAccept​(JavaParserVisitor visitor, Object data)
      Deprecated.
      Dispatches the given visitor to the children of this node.
      Comment comment()
      Deprecated.
       
      void comment​(Comment theComment)
      Deprecated.
      net.sourceforge.pmd.lang.symboltable.Scope getScope()
      Deprecated.
       
      String getXPathNodeName()
      Deprecated.
       
      Object jjtAccept​(JavaParserVisitor visitor, Object data)
      Deprecated.
      Calls back the visitor's visit method corresponding to the runtime type of this Node.
      void jjtClose()
      Deprecated.
       
      void jjtOpen()
      Deprecated.
       
      void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)
      Deprecated.
      • Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode

        children, getChild, getParent
      • 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, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, 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, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Field Detail

    • Constructor Detail

      • AbstractJavaNode

        @InternalApi
        @Deprecated
        public AbstractJavaNode​(int id)
        Deprecated.
      • AbstractJavaNode

        @InternalApi
        @Deprecated
        public AbstractJavaNode​(JavaParser parser,
                                int id)
        Deprecated.
    • Method Detail

      • jjtOpen

        public void jjtOpen()
        Deprecated.
        Specified by:
        jjtOpen in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        jjtOpen in class net.sourceforge.pmd.lang.ast.AbstractNode
      • jjtClose

        public void jjtClose()
        Deprecated.
        Specified by:
        jjtClose in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        jjtClose in class net.sourceforge.pmd.lang.ast.AbstractNode
      • jjtAccept

        public Object jjtAccept​(JavaParserVisitor visitor,
                                Object data)
        Deprecated.
        Description copied from interface: JavaNode
        Calls back the visitor's visit method corresponding to the runtime type of this Node.
        Specified by:
        jjtAccept in interface JavaNode
        Parameters:
        visitor - Visitor to dispatch
        data - Visit data
      • childrenAccept

        public Object childrenAccept​(JavaParserVisitor visitor,
                                     Object data)
        Deprecated.
        Description copied from interface: JavaNode
        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.

        Specified by:
        childrenAccept in interface JavaNode
        Parameters:
        visitor - Visitor to dispatch
        data - Visit data
      • getScope

        public net.sourceforge.pmd.lang.symboltable.Scope getScope()
        Deprecated.
        Specified by:
        getScope in interface net.sourceforge.pmd.lang.symboltable.ScopedNode
      • setScope

        @InternalApi
        @Deprecated
        public void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)
        Deprecated.
        Specified by:
        setScope in interface JavaNode
      • comment

        @InternalApi
        @Deprecated
        public void comment​(Comment theComment)
        Deprecated.
      • comment

        public Comment comment()
        Deprecated.
      • getXPathNodeName

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