public class ClassScope extends AbstractScope
Constructor and Description |
---|
ClassScope()
This is only for anonymous inner classes.
|
ClassScope(java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(NameDeclaration declaration) |
java.util.Set<NameDeclaration> |
addNameOccurrence(NameOccurrence occ) |
protected java.util.Set<NameDeclaration> |
findVariableHere(PLSQLNameOccurrence occurrence) |
java.util.Map<ClassNameDeclaration,java.util.List<NameOccurrence>> |
getClassDeclarations() |
java.lang.String |
getClassName() |
ClassScope |
getEnclosingClassScope() |
java.util.Map<MethodNameDeclaration,java.util.List<NameOccurrence>> |
getMethodDeclarations() |
java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> |
getVariableDeclarations() |
java.lang.String |
toString() |
contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public ClassScope(java.lang.String className)
public ClassScope()
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
public void addDeclaration(NameDeclaration declaration)
addDeclaration
in interface Scope
addDeclaration
in class AbstractScope
public java.util.Set<NameDeclaration> addNameOccurrence(NameOccurrence occ)
addNameOccurrence
in interface Scope
addNameOccurrence
in class AbstractScope
public java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> getVariableDeclarations()
public java.util.Map<MethodNameDeclaration,java.util.List<NameOccurrence>> getMethodDeclarations()
public java.util.Map<ClassNameDeclaration,java.util.List<NameOccurrence>> getClassDeclarations()
public ClassScope getEnclosingClassScope()
public java.lang.String getClassName()
protected java.util.Set<NameDeclaration> findVariableHere(PLSQLNameOccurrence occurrence)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002–2017 PMD. All rights reserved.