public class LocalScope extends AbstractJavaScope
Constructor and Description |
---|
LocalScope() |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(NameDeclaration nameDecl) |
Set<NameDeclaration> |
addNameOccurrence(NameOccurrence occurrence) |
Set<NameDeclaration> |
findVariableHere(JavaNameOccurrence occurrence) |
Map<VariableNameDeclaration,List<NameOccurrence>> |
getVariableDeclarations() |
String |
toString() |
checkForDuplicatedNameDeclaration, contains, glomNames
getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
public Set<NameDeclaration> addNameOccurrence(NameOccurrence occurrence)
addNameOccurrence
in interface Scope
addNameOccurrence
in class AbstractScope
public void addDeclaration(NameDeclaration nameDecl)
addDeclaration
in interface Scope
addDeclaration
in class AbstractJavaScope
public Set<NameDeclaration> findVariableHere(JavaNameOccurrence occurrence)
findVariableHere
in class AbstractJavaScope
Copyright © 2002-2017 PMD. All Rights Reserved.