## Uses of Class
net.sourceforge.pmd.lang.java.symboltable.NameOccurrence

Packages that use NameOccurrence
Package | Description
--- | ---
net.sourceforge.pmd.lang.java.ast |
net.sourceforge.pmd.lang.java.rule |
net.sourceforge.pmd.lang.java.rule.design |
net.sourceforge.pmd.lang.java.rule.optimizations |
net.sourceforge.pmd.lang.java.rule.strings |
net.sourceforge.pmd.lang.java.symboltable |

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.ast

Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`List<NameOccurrence>` | ASTVariableDeclaratorId.`getUsages()`

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.rule

Methods in net.sourceforge.pmd.lang.java.rule with parameters of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`abstract boolean` | AbstractInefficientZeroCheck.`isTargetMethod(NameOccurrence occ)`

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.rule.design

Methods in net.sourceforge.pmd.lang.java.rule.design with parameters of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`boolean` | UseCollectionIsEmptyRule.`isTargetMethod(NameOccurrence occ)` Determine if we're dealing with .size method

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.rule.optimizations

Method parameters in net.sourceforge.pmd.lang.java.rule.optimizations with type arguments of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`protected boolean` | AbstractOptimizationRule.`assigned(List<NameOccurrence> usages)`

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.rule.strings

Methods in net.sourceforge.pmd.lang.java.rule.strings with parameters of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`boolean` | InefficientEmptyStringCheckRule.`isTargetMethod(NameOccurrence occ)` Determine if we're dealing with String.length method

### Uses of NameOccurrence in net.sourceforge.pmd.lang.java.symboltable

Fields in net.sourceforge.pmd.lang.java.symboltable with type parameters of type NameOccurrence
Modifier and Type | Field and Description
--- | ---
`protected Map<ClassNameDeclaration,List<NameOccurrence>>` | ClassScope.`classNames`
`protected Map<ClassNameDeclaration,List<NameOccurrence>>` | SourceFileScope.`classNames`
`protected Map<MethodNameDeclaration,List<NameOccurrence>>` | ClassScope.`methodNames`
`protected Map<VariableNameDeclaration,List<NameOccurrence>>` | LocalScope.`variableNames`
`protected Map<VariableNameDeclaration,List<NameOccurrence>>` | MethodScope.`variableNames`
`protected Map<VariableNameDeclaration,List<NameOccurrence>>` | ClassScope.`variableNames`

Methods in net.sourceforge.pmd.lang.java.symboltable that return NameOccurrence
Modifier and Type | Method and Description
--- | ---
`NameOccurrence` | NameOccurrence.`getNameForWhichThisIsAQualifier()`

Methods in net.sourceforge.pmd.lang.java.symboltable that return types with arguments of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`Map<ClassNameDeclaration,List<NameOccurrence>>` | ClassScope.`getClassDeclarations()`
`Map<ClassNameDeclaration,List<NameOccurrence>>` | DummyScope.`getClassDeclarations()`
`Map<ClassNameDeclaration,List<NameOccurrence>>` | AbstractScope.`getClassDeclarations()`
`Map<ClassNameDeclaration,List<NameOccurrence>>` | Scope.`getClassDeclarations()` Returns a Map (VariableNameDeclaration->List(NameOccurrence,NameOccurrence)) of declarations that exist at this scope
`Map<ClassNameDeclaration,List<NameOccurrence>>` | SourceFileScope.`getClassDeclarations()`
`Map<MethodNameDeclaration,List<NameOccurrence>>` | ClassScope.`getMethodDeclarations()`
`List<NameOccurrence>` | NameFinder.`getNames()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | VariableUsageFinderFunction.`getUsed()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | LocalScope.`getVariableDeclarations()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | MethodScope.`getVariableDeclarations()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | ClassScope.`getVariableDeclarations()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | DummyScope.`getVariableDeclarations()`
`Map<VariableNameDeclaration,List<NameOccurrence>>` | Scope.`getVariableDeclarations()` Returns a Map (VariableNameDeclaration->List(NameOccurrence,NameOccurrence)) of declarations that exist at this scope
`Map<VariableNameDeclaration,List<NameOccurrence>>` | SourceFileScope.`getVariableDeclarations()`

Methods in net.sourceforge.pmd.lang.java.symboltable with parameters of type NameOccurrence
Modifier and Type | Method and Description
--- | ---
`NameDeclaration` | LocalScope.`addVariableNameOccurrence(NameOccurrence occurrence)`
`NameDeclaration` | MethodScope.`addVariableNameOccurrence(NameOccurrence occurrence)`
`NameDeclaration` | ClassScope.`addVariableNameOccurrence(NameOccurrence occurrence)`
`NameDeclaration` | DummyScope.`addVariableNameOccurrence(NameOccurrence occ)`
`NameDeclaration` | Scope.`addVariableNameOccurrence(NameOccurrence occ)` Adds a NameOccurrence to this scope - only call this after getting a true back from contains()
`NameDeclaration` | SourceFileScope.`addVariableNameOccurrence(NameOccurrence occ)`
`boolean` | DummyScope.`contains(NameOccurrence occ)`
`boolean` | AbstractScope.`contains(NameOccurrence occurrence)`
`boolean` | Scope.`contains(NameOccurrence occ)` Tests whether or not a NameOccurrence is directly contained in the scope Note that this search is just for this scope - it doesn't go diving into any child scopes.
`NameDeclaration` | LocalScope.`findVariableHere(NameOccurrence occurrence)`
`NameDeclaration` | MethodScope.`findVariableHere(NameOccurrence occurrence)`
`protected NameDeclaration` | ClassScope.`findVariableHere(NameOccurrence occurrence)`
`protected abstract NameDeclaration` | AbstractScope.`findVariableHere(NameOccurrence occurrence)`
`protected NameDeclaration` | SourceFileScope.`findVariableHere(NameOccurrence occ)`
`void` | NameOccurrence.`setNameWhichThisQualifies(NameOccurrence qualifiedName)`

Constructors in net.sourceforge.pmd.lang.java.symboltable with parameters of type NameOccurrence
Constructor and Description
`Search(NameOccurrence occ)`

Constructor parameters in net.sourceforge.pmd.lang.java.symboltable with type arguments of type NameOccurrence
Constructor and Description
`VariableUsageFinderFunction(Map<VariableNameDeclaration,List<NameOccurrence>> decls)`