Class ClassScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractScope
-
- net.sourceforge.pmd.lang.plsql.symboltable.ClassScope
-
- All Implemented Interfaces:
Scope
public class ClassScope extends AbstractScope
-
-
Constructor Summary
Constructors Constructor Description ClassScope()This is only for anonymous inner classes.ClassScope(String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeclaration(NameDeclaration declaration)Set<NameDeclaration>addNameOccurrence(NameOccurrence occ)protected Set<NameDeclaration>findVariableHere(PLSQLNameOccurrence occurrence)Map<ClassNameDeclaration,List<NameOccurrence>>getClassDeclarations()StringgetClassName()ClassScopegetEnclosingClassScope()Map<MethodNameDeclaration,List<NameOccurrence>>getMethodDeclarations()Map<VariableNameDeclaration,List<NameOccurrence>>getVariableDeclarations()StringtoString()-
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
-
-
-
-
Constructor Detail
-
ClassScope
public ClassScope(String className)
-
ClassScope
public ClassScope()
This is only for anonymous inner classes.FIXME - should have name like Foo$1, not Anonymous$1 to get this working right, the parent scope needs to be passed in when instantiating a ClassScope
-
-
Method Detail
-
addDeclaration
public void addDeclaration(NameDeclaration declaration)
- Specified by:
addDeclarationin interfaceScope- Overrides:
addDeclarationin classAbstractScope
-
addNameOccurrence
public Set<NameDeclaration> addNameOccurrence(NameOccurrence occ)
- Specified by:
addNameOccurrencein interfaceScope- Overrides:
addNameOccurrencein classAbstractScope
-
getVariableDeclarations
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
-
getMethodDeclarations
public Map<MethodNameDeclaration,List<NameOccurrence>> getMethodDeclarations()
-
getClassDeclarations
public Map<ClassNameDeclaration,List<NameOccurrence>> getClassDeclarations()
-
getEnclosingClassScope
public ClassScope getEnclosingClassScope()
-
getClassName
public String getClassName()
-
findVariableHere
protected Set<NameDeclaration> findVariableHere(PLSQLNameOccurrence occurrence)
-
-