1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
249 * @return an object representing the compilation |
249 * @return an object representing the compilation |
250 * @throws RuntimeException if an unrecoverable error |
250 * @throws RuntimeException if an unrecoverable error |
251 * occurred in a user supplied component. The |
251 * occurred in a user supplied component. The |
252 * {@linkplain Throwable#getCause() cause} will be the error in |
252 * {@linkplain Throwable#getCause() cause} will be the error in |
253 * user code. |
253 * user code. |
254 * @throws IllegalArgumentException if any of the given |
254 * @throws IllegalArgumentException if any of the options are invalid, |
255 * compilation units are of other kind than |
255 * or if any of the given compilation units are of other kind than |
256 * {@linkplain JavaFileObject.Kind#SOURCE source} |
256 * {@linkplain JavaFileObject.Kind#SOURCE source} |
257 */ |
257 */ |
258 CompilationTask getTask(Writer out, |
258 CompilationTask getTask(Writer out, |
259 JavaFileManager fileManager, |
259 JavaFileManager fileManager, |
260 DiagnosticListener<? super JavaFileObject> diagnosticListener, |
260 DiagnosticListener<? super JavaFileObject> diagnosticListener, |