Class MethodScope
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractScope
-
- net.sourceforge.pmd.lang.plsql.symboltable.MethodScope
-
- All Implemented Interfaces:
Scope
public class MethodScope extends AbstractScope
-
-
Constructor Summary
Constructors Constructor Description MethodScope(Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDeclaration(NameDeclaration declaration)
Set<NameDeclaration>
addNameOccurrence(NameOccurrence occ)
Set<NameDeclaration>
findVariableHere(PLSQLNameOccurrence occurrence)
MethodScope
getEnclosingMethodScope()
String
getName()
Map<VariableNameDeclaration,List<NameOccurrence>>
getVariableDeclarations()
String
toString()
-
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
-
-
-
-
Constructor Detail
-
MethodScope
public MethodScope(Node node)
-
-
Method Detail
-
getEnclosingMethodScope
public MethodScope getEnclosingMethodScope()
-
getVariableDeclarations
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
-
addNameOccurrence
public Set<NameDeclaration> addNameOccurrence(NameOccurrence occ)
- Specified by:
addNameOccurrence
in interfaceScope
- Overrides:
addNameOccurrence
in classAbstractScope
-
addDeclaration
public void addDeclaration(NameDeclaration declaration)
- Specified by:
addDeclaration
in interfaceScope
- Overrides:
addDeclaration
in classAbstractScope
-
findVariableHere
public Set<NameDeclaration> findVariableHere(PLSQLNameOccurrence occurrence)
-
getName
public String getName()
-
-