public class LocalScope extends AbstractScope
| Modifier and Type | Field and Description |
|---|---|
protected Map<VariableNameDeclaration,List<NameOccurrence>> |
variableNames |
| Constructor and Description |
|---|
LocalScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(VariableNameDeclaration nameDecl)
Add a variable declaration to this scope
|
NameDeclaration |
addVariableNameOccurrence(NameOccurrence occurrence)
Adds a NameOccurrence to this scope - only call this after getting
a true back from contains()
|
NameDeclaration |
findVariableHere(NameOccurrence occurrence) |
Map<VariableNameDeclaration,List<NameOccurrence>> |
getVariableDeclarations()
Returns a Map (VariableNameDeclaration->List(NameOccurrence,NameOccurrence)) of declarations that
exist at this scope
|
String |
toString() |
addDeclaration, addDeclaration, contains, getClassDeclarations, getEnclosingClassScope, getEnclosingMethodScope, getEnclosingSourceFileScope, getParent, glomNames, setParentprotected Map<VariableNameDeclaration,List<NameOccurrence>> variableNames
public NameDeclaration addVariableNameOccurrence(NameOccurrence occurrence)
Scopepublic Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
Scopepublic void addDeclaration(VariableNameDeclaration nameDecl)
Scopepublic NameDeclaration findVariableHere(NameOccurrence occurrence)
findVariableHere in class AbstractScopeCopyright © 2002-2013 InfoEther. All Rights Reserved.