Class AbstractPLSQLNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected PLSQLParser parser  
      protected net.sourceforge.pmd.lang.symboltable.Scope scope  
      protected java.lang.Object value  
      • Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object childrenAccept​(PLSQLParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      void dump​(java.lang.String prefix)  
      java.lang.String getCanonicalImage()
      Return node image converted to the normal Oracle form.
      static java.lang.String getCanonicalImage​(java.lang.String image)
      Convert arbitrary String to normal Oracle format, under assumption that the passed image is an Oracle name.
      net.sourceforge.pmd.lang.symboltable.Scope getScope()  
      java.lang.String getXPathNodeName()  
      java.lang.Object jjtAccept​(PLSQLParserVisitor visitor, java.lang.Object data)
      Accept the visitor.
      void jjtClose()  
      java.lang.Object jjtGetValue()  
      void jjtOpen()  
      void jjtSetValue​(java.lang.Object value)  
      void setScope​(net.sourceforge.pmd.lang.symboltable.Scope scope)  
      java.lang.String toString​(java.lang.String prefix)  
      • 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
    • Field Detail

      • value

        protected java.lang.Object value
      • scope

        protected net.sourceforge.pmd.lang.symboltable.Scope scope
    • Constructor Detail

      • AbstractPLSQLNode

        public AbstractPLSQLNode​(int i)
      • AbstractPLSQLNode

        public AbstractPLSQLNode​(PLSQLParser p,
                                 int i)
    • 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
      • jjtSetValue

        public void jjtSetValue​(java.lang.Object value)
      • jjtGetValue

        public java.lang.Object jjtGetValue()
      • getXPathNodeName

        public 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
      • toString

        public java.lang.String toString​(java.lang.String prefix)
      • dump

        public void dump​(java.lang.String prefix)
      • getCanonicalImage

        public java.lang.String getCanonicalImage()
        Return node image converted to the normal Oracle form.

        Normally this is uppercase, unless the names is quoted ("name").

      • getCanonicalImage

        public static java.lang.String getCanonicalImage​(java.lang.String image)
        Convert arbitrary String to normal Oracle format, under assumption that the passed image is an Oracle name.

        This a helper method for PLSQL classes dependent on SimpleNode, that would otherwise have to import PLSQParser.

        Parameters:
        image -
        Returns:
      • getScope

        public net.sourceforge.pmd.lang.symboltable.Scope getScope()
        Specified by:
        getScope in interface PLSQLNode
        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 PLSQLNode