net.sourceforge.pmd.lang.java.symboltable
Class AbstractJavaScope

java.lang.Object
  extended by net.sourceforge.pmd.lang.symboltable.AbstractScope
      extended by 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
AbstractJavaScope()
           
 
Method Summary
 void addDeclaration(NameDeclaration declaration)
           
protected  void checkForDuplicatedNameDeclaration(NameDeclaration declaration)
           
 boolean contains(NameOccurrence occurrence)
           
protected abstract  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJavaScope

public AbstractJavaScope()
Method Detail

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-2016 InfoEther. All Rights Reserved.