Class SourceFileScope

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

    public class SourceFileScope
    extends net.sourceforge.pmd.lang.symboltable.AbstractScope
    • Constructor Detail

      • SourceFileScope

        public SourceFileScope()
      • SourceFileScope

        public SourceFileScope​(String image)
    • Method Detail

      • getPackageName

        public 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:
        IllegalArgumentException - if declaration is not a ClassNameDeclaration
      • findVariableHere

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