public class MethodScope extends AbstractJavaScope
| Constructor and Description |
|---|
MethodScope(Node node) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(NameDeclaration variableDecl) |
java.util.Set<NameDeclaration> |
addNameOccurrence(NameOccurrence occurrence) |
java.util.Set<NameDeclaration> |
findVariableHere(JavaNameOccurrence occurrence) |
java.lang.String |
getName() |
java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> |
getVariableDeclarations() |
java.lang.String |
toString() |
checkForDuplicatedNameDeclaration, contains, glomNamesgetDeclarations, getDeclarations, getEnclosingScope, getParent, setParentpublic MethodScope(Node node)
public java.util.Map<VariableNameDeclaration,java.util.List<NameOccurrence>> getVariableDeclarations()
public java.util.Set<NameDeclaration> addNameOccurrence(NameOccurrence occurrence)
addNameOccurrence in interface ScopeaddNameOccurrence in class AbstractScopepublic void addDeclaration(NameDeclaration variableDecl)
addDeclaration in interface ScopeaddDeclaration in class AbstractJavaScopepublic java.util.Set<NameDeclaration> findVariableHere(JavaNameOccurrence occurrence)
findVariableHere in class AbstractJavaScopepublic java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002–2017 PMD. All rights reserved.