public class LocalScope extends AbstractJavaScope
Constructor and Description |
---|
LocalScope() |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(NameDeclaration nameDecl) |
java.util.Set<NameDeclaration> |
addNameOccurrence(NameOccurrence occurrence) |
java.util.Set<NameDeclaration> |
findVariableHere(JavaNameOccurrence occurrence) |
java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> |
getVariableDeclarations() |
java.lang.String |
toString() |
checkForDuplicatedNameDeclaration, contains, glomNames
getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> getVariableDeclarations()
public java.util.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 java.util.Set<NameDeclaration> findVariableHere(JavaNameOccurrence occurrence)
findVariableHere
in class AbstractJavaScope
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002–2017 PMD. All rights reserved.