net.sourceforge.pmd.lang.java.symboltable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJavaScope
public AbstractJavaScope()
addDeclaration
public void addDeclaration(NameDeclaration declaration)
- Specified by:
addDeclaration
in interface Scope
- Overrides:
addDeclaration
in class AbstractScope
checkForDuplicatedNameDeclaration
protected void checkForDuplicatedNameDeclaration(NameDeclaration declaration)
contains
public boolean contains(NameOccurrence occurrence)
- Specified by:
contains
in interface Scope
- Overrides:
contains
in class AbstractScope
findVariableHere
protected abstract NameDeclaration findVariableHere(JavaNameOccurrence occurrence)
glomNames
protected <T> String glomNames(Set<T> s)
Copyright © 2002-2015 InfoEther. All Rights Reserved.