33
34 import com.sun.tools.javac.file.JavacFileManager;
35 import com.sun.tools.javac.util.*;
36 import com.sun.tools.javac.code.*;
37 import com.sun.tools.javac.jvm.*;
38
39 import com.sun.tools.javac.code.Symbol.*;
40 import com.sun.tools.javac.tree.JCTree.*;
41
42 import com.sun.tools.apt.comp.*;
43 import com.sun.tools.apt.util.Bark;
44 import com.sun.mirror.apt.AnnotationProcessorFactory;
45 import com.sun.tools.javac.parser.DocCommentScanner;
46
47 /**
48 * <p><b>This is NOT part of any API supported by Sun Microsystems.
49 * If you write code that depends on this, you do so at your own
50 * risk. This code and its internal interfaces are subject to change
51 * or deletion without notice.</b>
52 */
53 public class JavaCompiler extends com.sun.tools.javac.main.JavaCompiler {
54 /** The context key for the compiler. */
55 protected static final Context.Key<JavaCompiler> compilerKey =
56 new Context.Key<JavaCompiler>();
57
58 /** Get the JavaCompiler instance for this context. */
59 public static JavaCompiler instance(Context context) {
60 JavaCompiler instance = context.get(compilerKey);
61 if (instance == null)
62 instance = new JavaCompiler(context);
63 return instance;
64 }
65
66
67 java.util.Set<String> genSourceFileNames;
68 java.util.Set<String> genClassFileNames;
69
70 public java.util.Set<String> getSourceFileNames() {
71 return genSourceFileNames;
72 }
|
33
34 import com.sun.tools.javac.file.JavacFileManager;
35 import com.sun.tools.javac.util.*;
36 import com.sun.tools.javac.code.*;
37 import com.sun.tools.javac.jvm.*;
38
39 import com.sun.tools.javac.code.Symbol.*;
40 import com.sun.tools.javac.tree.JCTree.*;
41
42 import com.sun.tools.apt.comp.*;
43 import com.sun.tools.apt.util.Bark;
44 import com.sun.mirror.apt.AnnotationProcessorFactory;
45 import com.sun.tools.javac.parser.DocCommentScanner;
46
47 /**
48 * <p><b>This is NOT part of any API supported by Sun Microsystems.
49 * If you write code that depends on this, you do so at your own
50 * risk. This code and its internal interfaces are subject to change
51 * or deletion without notice.</b>
52 */
53 @SuppressWarnings("deprecation")
54 public class JavaCompiler extends com.sun.tools.javac.main.JavaCompiler {
55 /** The context key for the compiler. */
56 protected static final Context.Key<JavaCompiler> compilerKey =
57 new Context.Key<JavaCompiler>();
58
59 /** Get the JavaCompiler instance for this context. */
60 public static JavaCompiler instance(Context context) {
61 JavaCompiler instance = context.get(compilerKey);
62 if (instance == null)
63 instance = new JavaCompiler(context);
64 return instance;
65 }
66
67
68 java.util.Set<String> genSourceFileNames;
69 java.util.Set<String> genClassFileNames;
70
71 public java.util.Set<String> getSourceFileNames() {
72 return genSourceFileNames;
73 }
|