public class SourceFileScope extends AbstractScope
Constructor and Description |
---|
SourceFileScope() |
SourceFileScope(java.lang.String image) |
Modifier and Type | Method and Description |
---|---|
void |
addDeclaration(NameDeclaration declaration) |
protected NameDeclaration |
findVariableHere(NameOccurrence occ) |
java.lang.String |
getPackageName() |
java.lang.String |
toString() |
addNameOccurrence, contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
public SourceFileScope()
public SourceFileScope(java.lang.String image)
public java.lang.String getPackageName()
public void addDeclaration(NameDeclaration declaration)
addDeclaration
in interface Scope
addDeclaration
in class AbstractScope
java.lang.IllegalArgumentException
- if declaration is not a ClassNameDeclaration
public java.lang.String toString()
toString
in class java.lang.Object
protected NameDeclaration findVariableHere(NameOccurrence occ)
Copyright © 2002–2017 PMD. All rights reserved.