public class MethodScope extends AbstractJavaScope
Constructor and Description |
---|
MethodScope(Node node) |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(NameDeclaration variableDecl) |
Set<NameDeclaration> |
addNameOccurrence(NameOccurrence occurrence) |
Set<NameDeclaration> |
findVariableHere(JavaNameOccurrence occurrence) |
String |
getName() |
Map<VariableNameDeclaration,List<NameOccurrence>> |
getVariableDeclarations() |
String |
toString() |
checkForDuplicatedNameDeclaration, contains, glomNames
getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public MethodScope(Node node)
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
public Set<NameDeclaration> addNameOccurrence(NameOccurrence occurrence)
addNameOccurrence
in interface Scope
addNameOccurrence
in class AbstractScope
public void addDeclaration(NameDeclaration variableDecl)
addDeclaration
in interface Scope
addDeclaration
in class AbstractJavaScope
public Set<NameDeclaration> findVariableHere(JavaNameOccurrence occurrence)
findVariableHere
in class AbstractJavaScope
public String getName()
Copyright © 2002-2015 InfoEther. All Rights Reserved.