Class AbstractJavaNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected JavaParser parser  
      • 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
      java.lang.Object childrenAccept​(JavaParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      Comment comment()  
      void comment​(Comment theComment)  
      net.sourceforge.pmd.lang.symboltable.Scope getScope()  
      java.lang.String getXPathNodeName()  
      java.lang.Object jjtAccept​(JavaParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      void jjtClose()  
      void jjtOpen()  
      void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)  
      • 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, getNthParent, getParentsOfType, getUserData, 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 class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • 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, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Constructor Detail

      • AbstractJavaNode

        public AbstractJavaNode​(int id)
      • AbstractJavaNode

        public AbstractJavaNode​(JavaParser parser,
                                int id)
    • Method Detail

      • jjtOpen

        public void jjtOpen()
        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()
        Specified by:
        jjtClose in interface net.sourceforge.pmd.lang.ast.Node
        Overrides:
        jjtClose in class net.sourceforge.pmd.lang.ast.AbstractNode
      • jjtAccept

        public java.lang.Object jjtAccept​(JavaParserVisitor visitor,
                                          java.lang.Object data)
        Accept the visitor. *
        Specified by:
        jjtAccept in interface JavaNode
      • getScope

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

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

        public void comment​(Comment theComment)
      • comment

        public Comment comment()
      • getXPathNodeName

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