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 voidaddDeclaration(NameDeclaration declaration)protected NameDeclarationfindVariableHere(NameOccurrence occ)StringgetPackageName()StringtoString()-
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:
addDeclarationin interfaceScope- Overrides:
addDeclarationin classAbstractScope- Throws:
IllegalArgumentException- if declaration is not aClassNameDeclaration
-
findVariableHere
protected NameDeclaration findVariableHere(NameOccurrence occ)
-
-