net.sourceforge.pmd.lang.plsql.symboltable
Class SourceFileScope

java.lang.Object
  extended by net.sourceforge.pmd.lang.symboltable.AbstractScope
      extended by net.sourceforge.pmd.lang.plsql.symboltable.SourceFileScope
All Implemented Interfaces:
Scope

public class SourceFileScope
extends AbstractScope


Constructor Summary
SourceFileScope()
           
SourceFileScope(String image)
           
 
Method Summary
 void addDeclaration(NameDeclaration declaration)
          Adds a new declaration to this scope.
protected  NameDeclaration findVariableHere(NameOccurrence occ)
           
 String getPackageName()
           
 String toString()
           
 
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
addNameOccurrence, contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFileScope

public SourceFileScope()

SourceFileScope

public SourceFileScope(String image)
Method Detail

getPackageName

public String getPackageName()

addDeclaration

public void addDeclaration(NameDeclaration declaration)
Adds a new declaration to this scope. Only after the declaration has been added, Scope.contains(NameOccurrence) and Scope.addNameOccurrence(NameOccurrence) can be used correctly.

Specified by:
addDeclaration in interface Scope
Overrides:
addDeclaration in class AbstractScope
Parameters:
declaration - the declaration to add
Throws:
IllegalArgumentException - if declaration is not a ClassNameDeclaration

toString

public String toString()
Overrides:
toString in class Object

findVariableHere

protected NameDeclaration findVariableHere(NameOccurrence occ)


Copyright © 2002–2015 InfoEther. All rights reserved.