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