39 * <p><b>This is NOT part of any API supported by Sun Microsystems. If |
39 * <p><b>This is NOT part of any API supported by Sun Microsystems. If |
40 * you write code that depends on this, you do so at your own risk. |
40 * you write code that depends on this, you do so at your own risk. |
41 * This code and its internal interfaces are subject to change or |
41 * This code and its internal interfaces are subject to change or |
42 * deletion without notice.</b> |
42 * deletion without notice.</b> |
43 */ |
43 */ |
44 class JavapFileManager extends JavacFileManager { |
44 public class JavapFileManager extends JavacFileManager { |
45 private JavapFileManager(Context context, Charset charset) { |
45 private JavapFileManager(Context context, Charset charset) { |
46 super(context, true, charset); |
46 super(context, true, charset); |
47 setIgnoreSymbolFile(true); |
47 setIgnoreSymbolFile(true); |
48 } |
48 } |
49 |
49 |
50 static JavapFileManager create(final DiagnosticListener<? super JavaFileObject> dl, PrintWriter log, Options options) { |
50 public static JavapFileManager create(final DiagnosticListener<? super JavaFileObject> dl, PrintWriter log) { |
51 Context javac_context = new Context(); |
51 Context javac_context = new Context(); |
52 |
52 |
53 if (dl != null) |
53 if (dl != null) |
54 javac_context.put(DiagnosticListener.class, dl); |
54 javac_context.put(DiagnosticListener.class, dl); |
55 javac_context.put(com.sun.tools.javac.util.Log.outKey, log); |
55 javac_context.put(com.sun.tools.javac.util.Log.outKey, log); |