net.sourceforge.pmd.lang.java.symboltable
Class MethodScope
java.lang.Object
net.sourceforge.pmd.lang.symboltable.AbstractScope
net.sourceforge.pmd.lang.java.symboltable.AbstractJavaScope
net.sourceforge.pmd.lang.java.symboltable.MethodScope
- All Implemented Interfaces:
- Scope
public class MethodScope
- extends AbstractJavaScope
A Method Scope can have variable declarations and class declarations within it.
MethodScope
public MethodScope(Node node)
getVariableDeclarations
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
addNameOccurrence
public NameDeclaration addNameOccurrence(NameOccurrence occurrence)
- Specified by:
addNameOccurrence
in interface Scope
- Overrides:
addNameOccurrence
in class AbstractScope
addDeclaration
public void addDeclaration(NameDeclaration variableDecl)
- Specified by:
addDeclaration
in interface Scope
- Overrides:
addDeclaration
in class AbstractJavaScope
findVariableHere
public NameDeclaration findVariableHere(JavaNameOccurrence occurrence)
- Specified by:
findVariableHere
in class AbstractJavaScope
getName
public String getName()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2015 InfoEther. All Rights Reserved.