public class SourceFileScope extends AbstractScope
| Constructor and Description |
|---|
SourceFileScope() |
SourceFileScope(String image) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(NameDeclaration declaration)
Adds a new declaration to this scope.
|
protected NameDeclaration |
findVariableHere(NameOccurrence occ) |
String |
getPackageName() |
String |
toString() |
addNameOccurrence, contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParentpublic SourceFileScope()
public SourceFileScope(String image)
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 AbstractScopedeclaration - the declaration to addIllegalArgumentException - if declaration is not a ClassNameDeclarationprotected NameDeclaration findVariableHere(NameOccurrence occ)
Copyright © 2002-2014 InfoEther. All Rights Reserved.