1 /** 2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html 3 */ 4 package net.sourceforge.pmd.lang.symboltable; 5 6 7 /** 8 * A {@link NameOccurrence} represents one usage of a name declaration. 9 * 10 */ 11 public interface NameOccurrence { 12 /** 13 * Gets the location where the usage occurred. 14 * @return the node 15 */ 16 ScopedNode getLocation(); 17 18 /** 19 * Gets the image of the used declaration, such as the variable name. 20 * @return the image 21 */ 22 String getImage(); 23 }