Interface NameOccurrence


@Deprecated public interface NameOccurrence
Deprecated.
Since 7.19.0. For more info, see net.sourceforge.pmd.lang.symboltable.
A NameOccurrence represents one usage of a name declaration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets the image of the used declaration, such as the variable name.
    Deprecated.
    Gets the location where the usage occurred.
  • Method Details

    • getLocation

      ScopedNode getLocation()
      Deprecated.
      Gets the location where the usage occurred.
      Returns:
      the node
    • getImage

      String getImage()
      Deprecated.
      Gets the image of the used declaration, such as the variable name.
      Returns:
      the image