net.sourceforge.pmd.symboltable

Class AbstractScope

public abstract class AbstractScope extends Object implements Scope

BSD-style license; for more info see http://pmd.sourceforge.net/license.html
Method Summary
voidaddDeclaration(MethodNameDeclaration methodDecl)
voidaddDeclaration(ClassNameDeclaration classDecl)
booleancontains(NameOccurrence occurrence)
protected abstract NameDeclarationfindVariableHere(NameOccurrence occurrence)
Map<ClassNameDeclaration,List<NameOccurrence>>getClassDeclarations()
ClassScopegetEnclosingClassScope()
MethodScopegetEnclosingMethodScope()
SourceFileScopegetEnclosingSourceFileScope()
ScopegetParent()
protected <T> StringglomNames(Set<T> s)
voidsetParent(Scope parent)

Method Detail

addDeclaration

public void addDeclaration(MethodNameDeclaration methodDecl)

addDeclaration

public void addDeclaration(ClassNameDeclaration classDecl)

contains

public boolean contains(NameOccurrence occurrence)

findVariableHere

protected abstract NameDeclaration findVariableHere(NameOccurrence occurrence)

getClassDeclarations

public Map<ClassNameDeclaration,List<NameOccurrence>> getClassDeclarations()

getEnclosingClassScope

public ClassScope getEnclosingClassScope()

getEnclosingMethodScope

public MethodScope getEnclosingMethodScope()

getEnclosingSourceFileScope

public SourceFileScope getEnclosingSourceFileScope()

getParent

public Scope getParent()

glomNames

protected <T> String glomNames(Set<T> s)

setParent

public void setParent(Scope parent)