Class PLSQLNameOccurrence

java.lang.Object
net.sourceforge.pmd.lang.plsql.symboltable.PLSQLNameOccurrence
All Implemented Interfaces:
NameOccurrence

public class PLSQLNameOccurrence extends Object implements NameOccurrence
  • Constructor Details

    • PLSQLNameOccurrence

      public PLSQLNameOccurrence(PLSQLNode location, String image)
  • Method Details

    • setIsMethodOrConstructorInvocation

      public void setIsMethodOrConstructorInvocation()
    • setArgumentCount

      public void setArgumentCount(int count)
    • getArgumentCount

      public int getArgumentCount()
    • isMethodOrConstructorInvocation

      public boolean isMethodOrConstructorInvocation()
    • setNameWhichThisQualifies

      public void setNameWhichThisQualifies(PLSQLNameOccurrence qualifiedName)
    • getNameForWhichThisIsAQualifier

      public PLSQLNameOccurrence getNameForWhichThisIsAQualifier()
    • isPartOfQualifiedName

      public boolean isPartOfQualifiedName()
    • getLocation

      public PLSQLNode getLocation()
      Specified by:
      getLocation in interface NameOccurrence
    • isOnRightHandSide

      public boolean isOnRightHandSide()
    • isOnLeftHandSide

      public boolean isOnLeftHandSide()
    • isThisOrSuper

      public boolean isThisOrSuper()
      Simply return true is the image is equal to keyword 'this' or 'super'.
      Returns:
      return true if image equal to 'this' or 'super'.
    • equals

      public boolean equals(Object o)
      Simply return if the image start with keyword 'this' or 'super'.
      Overrides:
      equals in class Object
      Returns:
      true, if keyword is used, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getImage

      public String getImage()
      Specified by:
      getImage in interface NameOccurrence
    • toString

      public String toString()
      Overrides:
      toString in class Object