01: package spoon.reflect.cu;
02:
03: import spoon.reflect.reference.CtReference;
04:
05: /**
06: * This interface represents imports in a compilation unit. Imports are not part
07: * of the AST and are generated automatically. However, when the auto-import
08: * feature of a compilation unit is turned off, the programmer can manually
09: * specify the imports to be done.
10: *
11: * @see CompilationUnit#isAutoImport()
12: * @see CompilationUnit#setAutoImport(boolean)
13: * @see CompilationUnit#getManualImports()
14: * @see CompilationUnit#setManualImports(java.util.Set)
15: */
16: public interface Import {
17:
18: /**
19: * Gets the Java string declaration of the import.
20: */
21: String toString();
22:
23: /**
24: * Gets the reference of the element that is imported.
25: */
26: CtReference getReference();
27:
28: }
|