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, setParent
protected Map<VariableNameDeclaration,List<NameOccurrence>> variableNames
public NameDeclaration addVariableNameOccurrence(NameOccurrence occurrence)
Scope
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
Scope
public void addDeclaration(VariableNameDeclaration nameDecl)
Scope
public NameDeclaration findVariableHere(NameOccurrence occurrence)
findVariableHere
in class AbstractScope
Copyright © 2002–2013 InfoEther. All rights reserved.