Class SourceFileScope

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.symboltable.Scope

    public class SourceFileScope
    extends net.sourceforge.pmd.lang.symboltable.AbstractScope
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDeclaration​(net.sourceforge.pmd.lang.symboltable.NameDeclaration declaration)  
      protected net.sourceforge.pmd.lang.symboltable.NameDeclaration findVariableHere​(net.sourceforge.pmd.lang.symboltable.NameOccurrence occ)  
      java.lang.String getPackageName()  
      java.lang.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​(java.lang.String image)
    • Method Detail

      • getPackageName

        public java.lang.String getPackageName()
      • addDeclaration

        public void addDeclaration​(net.sourceforge.pmd.lang.symboltable.NameDeclaration declaration)
        Specified by:
        addDeclaration in interface net.sourceforge.pmd.lang.symboltable.Scope
        Overrides:
        addDeclaration in class net.sourceforge.pmd.lang.symboltable.AbstractScope
        Throws:
        java.lang.IllegalArgumentException - if declaration is not a ClassNameDeclaration
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • findVariableHere

        protected net.sourceforge.pmd.lang.symboltable.NameDeclaration findVariableHere​(net.sourceforge.pmd.lang.symboltable.NameOccurrence occ)