1 4 package net.sourceforge.pmd.symboltable; 5 6 import java.util.Map ; 7 8 13 public interface Scope { 14 15 19 Map getVariableDeclarations(); 20 21 25 Map getClassDeclarations(); 26 27 30 void addDeclaration(ClassNameDeclaration decl); 31 32 35 void addDeclaration(VariableNameDeclaration decl); 36 37 40 void addDeclaration(MethodNameDeclaration decl); 41 42 47 boolean contains(NameOccurrence occ); 48 49 53 NameDeclaration addVariableNameOccurrence(NameOccurrence occ); 54 55 58 void setParent(Scope parent); 59 60 63 Scope getParent(); 64 65 70 ClassScope getEnclosingClassScope(); 71 72 77 SourceFileScope getEnclosingSourceFileScope(); 78 79 84 MethodScope getEnclosingMethodScope(); 85 } 86 | Popular Tags |