Class SourceFileScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractScope
-
- net.sourceforge.pmd.lang.plsql.symboltable.SourceFileScope
-
- All Implemented Interfaces:
Scope
public class SourceFileScope extends AbstractScope
-
-
Constructor Summary
Constructors Constructor Description SourceFileScope()
SourceFileScope(String image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeclaration(NameDeclaration declaration)
protected NameDeclaration
findVariableHere(NameOccurrence occ)
String
getPackageName()
String
toString()
-
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
addNameOccurrence, contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
-
-
-
-
Constructor Detail
-
SourceFileScope
public SourceFileScope()
-
SourceFileScope
public SourceFileScope(String image)
-
-
Method Detail
-
getPackageName
public String getPackageName()
-
addDeclaration
public void addDeclaration(NameDeclaration declaration)
- Specified by:
addDeclaration
in interfaceScope
- Overrides:
addDeclaration
in classAbstractScope
- Throws:
IllegalArgumentException
- if declaration is not aClassNameDeclaration
-
findVariableHere
protected NameDeclaration findVariableHere(NameOccurrence occ)
-
-