public class LocalScope extends AbstractScope
| Constructor and Description |
|---|
LocalScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(NameDeclaration declaration)
Adds a new declaration to this scope.
|
NameDeclaration |
addNameOccurrence(NameOccurrence occ)
Adds a
NameOccurrence to this scope - only call this after getting
a true back from Scope.contains(NameOccurrence). |
NameDeclaration |
findVariableHere(PLSQLNameOccurrence occurrence) |
Map<VariableNameDeclaration,List<NameOccurrence>> |
getVariableDeclarations() |
String |
toString() |
contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParentpublic NameDeclaration addNameOccurrence(NameOccurrence occ)
ScopeNameOccurrence to this scope - only call this after getting
a true back from Scope.contains(NameOccurrence).addNameOccurrence in interface ScopeaddNameOccurrence in class AbstractScopeNameDeclaration that is references by the given NameOccurrence,
if the NameOccurrence could be added. Otherwise null is returned.public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
public void addDeclaration(NameDeclaration declaration)
ScopeScope.contains(NameOccurrence) and Scope.addNameOccurrence(NameOccurrence) can
be used correctly.addDeclaration in interface ScopeaddDeclaration in class AbstractScopedeclaration - the declaration to addpublic NameDeclaration findVariableHere(PLSQLNameOccurrence occurrence)
Copyright © 2002-2014 InfoEther. All Rights Reserved.