public class SourceFileScope extends AbstractJavaScope
| Constructor and Description |
|---|
SourceFileScope() |
SourceFileScope(String packageImage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(NameDeclaration declaration)
Adds a new declaration to this scope.
|
protected NameDeclaration |
findVariableHere(JavaNameOccurrence occ) |
Map<ClassNameDeclaration,List<NameOccurrence>> |
getClassDeclarations()
Convenience method that casts the declarations to
ClassNameDeclarations. |
String |
getPackageName() |
String |
toString() |
checkForDuplicatedNameDeclaration, contains, glomNamesaddNameOccurrence, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParentpublic SourceFileScope()
public SourceFileScope(String packageImage)
public String getPackageName()
public void addDeclaration(NameDeclaration declaration)
Scope.contains(NameOccurrence) and Scope.addNameOccurrence(NameOccurrence) can
be used correctly.addDeclaration in interface ScopeaddDeclaration in class AbstractJavaScopedeclaration - the declaration to addIllegalArgumentException - if declaration is not a ClassNameDeclarationpublic Map<ClassNameDeclaration,List<NameOccurrence>> getClassDeclarations()
ClassNameDeclarations.AbstractScope.getDeclarations()protected NameDeclaration findVariableHere(JavaNameOccurrence occ)
findVariableHere in class AbstractJavaScopeCopyright © 2002-2014 InfoEther. All Rights Reserved.