public class SourceFileScope extends AbstractScope
| Constructor and Description |
|---|
SourceFileScope() |
SourceFileScope(String image) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeclaration(NameDeclaration declaration) |
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)
addDeclaration in interface ScopeaddDeclaration in class AbstractScopeIllegalArgumentException - if declaration is not a ClassNameDeclarationprotected NameDeclaration findVariableHere(NameOccurrence occ)
Copyright © 2002-2017 PMD. All Rights Reserved.