1 package polyglot.ast; 2 3 import polyglot.types.Flags; 4 import polyglot.types.Named; 5 6 /** 7 * A top-level declaration. This is any declaration that can appear in the 8 * outermost scope of a source file. 9 */ 10 public interface TopLevelDecl extends Node 11 { 12 /** The declaration's flags. */ 13 Flags flags(); 14 15 /** The declaration's name. */ 16 String name(); 17 18 /** The type object being declared. */ 19 Named declaration(); 20 } 21