Class AbstractJavaScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractScope
-
- net.sourceforge.pmd.lang.java.symboltable.AbstractJavaScope
-
- All Implemented Interfaces:
Scope
- Direct Known Subclasses:
ClassScope
,LocalScope
,MethodScope
,SourceFileScope
public abstract class AbstractJavaScope extends AbstractScope
Provides the basic java scope implementation.- See Also:
- JLS 6.3
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaScope()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addDeclaration(NameDeclaration declaration)
protected void
checkForDuplicatedNameDeclaration(NameDeclaration declaration)
boolean
contains(NameOccurrence occurrence)
protected abstract Set<NameDeclaration>
findVariableHere(JavaNameOccurrence occurrence)
protected <T> String
glomNames(Set<T> s)
-
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
addNameOccurrence, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
-
-
-
-
Method Detail
-
addDeclaration
public void addDeclaration(NameDeclaration declaration)
- Specified by:
addDeclaration
in interfaceScope
- Overrides:
addDeclaration
in classAbstractScope
-
checkForDuplicatedNameDeclaration
protected void checkForDuplicatedNameDeclaration(NameDeclaration declaration)
-
contains
public boolean contains(NameOccurrence occurrence)
- Specified by:
contains
in interfaceScope
- Overrides:
contains
in classAbstractScope
-
findVariableHere
protected abstract Set<NameDeclaration> findVariableHere(JavaNameOccurrence occurrence)
-
-