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)
MapgetClassDeclarations()
ClassScopegetEnclosingClassScope()
MethodScopegetEnclosingMethodScope()
SourceFileScopegetEnclosingSourceFileScope()
ScopegetParent()
protected StringglomNames(Iterator i)
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 getClassDeclarations()

getEnclosingClassScope

public ClassScope getEnclosingClassScope()

getEnclosingMethodScope

public MethodScope getEnclosingMethodScope()

getEnclosingSourceFileScope

public SourceFileScope getEnclosingSourceFileScope()

getParent

public Scope getParent()

glomNames

protected String glomNames(Iterator i)

setParent

public void setParent(Scope parent)