Class ASTPrimarySuffix

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.impl.GenericNode<PLSQLNode>, net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode<PLSQLNode>, net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.ast.TextAvailableNode, PLSQLNode, net.sourceforge.pmd.lang.symboltable.ScopedNode, net.sourceforge.pmd.reporting.Reportable

    public final class ASTPrimarySuffix
    extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode,​PLSQLNode>
    • Field Summary

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

        id
      • Fields inherited from interface net.sourceforge.pmd.lang.ast.Node

        COORDS_COMPARATOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <P,​R>
      R
      acceptPlsqlVisitor​(PlsqlVisitor<? super P,​? extends R> visitor, P data)  
      <P,​R>
      R
      acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor, P data)  
      int getArgumentCount()
      Get the number of arguments for this primary suffix.
      net.sourceforge.pmd.lang.symboltable.Scope getScope()  
      String getXPathNodeName()  
      boolean isArguments()  
      boolean isArrayDereference()  
      Object jjtGetValue()  
      protected void jjtSetValue​(Object value)  
      protected void setImage​(String image)  
      • Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode

        addChild, compareLocation, enlargeLeft, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtClose, jjtOpen, setFirstToken, setLastToken, toString
      • Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode

        children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParent
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode

        ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode

        getFirstToken, getLastToken, tokens
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode

        getOriginalText, getText, getTextRegion
    • Field Detail

      • value

        protected Object value
      • scope

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

      • acceptPlsqlVisitor

        protected <P,​R> R acceptPlsqlVisitor​(PlsqlVisitor<? super P,​? extends R> visitor,
                                                   P data)
      • isArrayDereference

        public boolean isArrayDereference()
      • isArguments

        public boolean isArguments()
      • getArgumentCount

        public int getArgumentCount()
        Get the number of arguments for this primary suffix. One should call isArguments() to see if there are arguments. If this method is called when there are no arguments it returns -1.
        Returns:
        A non-negative argument number when there are arguments, -1 otherwise.
      • setImage

        protected void setImage​(String image)
        Overrides:
        setImage in class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode,​PLSQLNode>
      • jjtSetValue

        protected void jjtSetValue​(Object value)
      • jjtGetValue

        public Object jjtGetValue()
      • acceptVisitor

        public final <P,​R> R acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor,
                                                 P data)
        Specified by:
        acceptVisitor in interface net.sourceforge.pmd.lang.ast.Node
      • getXPathNodeName

        public String getXPathNodeName()
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node
      • 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