Package | Description |
---|---|
net.sourceforge.pmd.lang.symboltable |
Modifier and Type | Method and Description |
---|---|
Map<NameDeclaration,List<NameOccurrence>> |
Scope.getDeclarations()
Gets all the declaration with the occurrences in this scope.
|
Map<NameDeclaration,List<NameOccurrence>> |
AbstractScope.getDeclarations() |
<T extends NameDeclaration> |
Scope.getDeclarations(Class<T> clazz)
Helper method to get only a specific type of name declarations.
|
<T extends NameDeclaration> |
AbstractScope.getDeclarations(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
Set<NameDeclaration> |
Scope.addNameOccurrence(NameOccurrence occurrence)
Adds a
NameOccurrence to this scope - only call this after getting
a true back from Scope.contains(NameOccurrence) . |
Set<NameDeclaration> |
AbstractScope.addNameOccurrence(NameOccurrence occurrence) |
boolean |
Scope.contains(NameOccurrence occ)
Tests whether or not a
NameOccurrence is directly contained in the scope. |
boolean |
AbstractScope.contains(NameOccurrence occ) |
Copyright © 2002–2017 PMD. All rights reserved.