public class MethodScope extends AbstractScope
Constructor and Description |
---|
MethodScope(Node node) |
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) |
MethodScope |
getEnclosingMethodScope() |
String |
getName() |
Map<VariableNameDeclaration,List<NameOccurrence>> |
getVariableDeclarations() |
String |
toString() |
contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public MethodScope(Node node)
public MethodScope getEnclosingMethodScope()
public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
public NameDeclaration addNameOccurrence(NameOccurrence occ)
Scope
NameOccurrence
to this scope - only call this after getting
a true back from Scope.contains(NameOccurrence)
.addNameOccurrence
in interface Scope
addNameOccurrence
in class AbstractScope
NameDeclaration
that is references by the given NameOccurrence
,
if the NameOccurrence
could be added. Otherwise null
is returned.public void addDeclaration(NameDeclaration declaration)
Scope
Scope.contains(NameOccurrence)
and Scope.addNameOccurrence(NameOccurrence)
can
be used correctly.addDeclaration
in interface Scope
addDeclaration
in class AbstractScope
declaration
- the declaration to addpublic NameDeclaration findVariableHere(PLSQLNameOccurrence occurrence)
public String getName()
Copyright © 2002–2015 InfoEther. All rights reserved.