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, setParent
public 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 Scope
addDeclaration
in class AbstractScope
declaration
- the declaration to addIllegalArgumentException
- if declaration is not a ClassNameDeclaration
protected NameDeclaration findVariableHere(NameOccurrence occ)
Copyright © 2002–2017 InfoEther. All rights reserved.