Java Code Examples for com.sun.tools.javac.util.Log#printLines()
The following examples show how to use
com.sun.tools.javac.util.Log#printLines() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Print a string that explains usage for X options. */ void xhelp() { for (int i = 0; i < recognizedOptions.length; i++) { recognizedOptions[i].xhelp(out); } out.println(); Log.printLines(out, getLocalizedString("msg.usage.nonstandard.footer")); }
Example 2
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Report a usage error. */ void error(String key, Object... args) { if (apiMode) { String msg = getLocalizedString(key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); Log.printLines(out, getLocalizedString("msg.usage", ownName)); }
Example 3
Source File: Main.java From javaide with GNU General Public License v3.0 | 5 votes |
/** * Report a usage error. */ void error(String key, Object... args) { if (apiMode) { String msg = getLocalizedString(key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); Log.printLines(out, getLocalizedString("msg.usage", ownName)); }
Example 4
Source File: Main.java From javaide with GNU General Public License v3.0 | 5 votes |
/** * Print a string that explains usage for X options. */ void xhelp() { for (int i = 0; i < recognizedOptions.length; i++) { recognizedOptions[i].xhelp(out); } out.println(); Log.printLines(out, getLocalizedString("msg.usage.nonstandard.footer")); }
Example 5
Source File: Main.java From javaide with GNU General Public License v3.0 | 5 votes |
/** * Print a string that explains usage. */ void help() { Log.printLines(out, getLocalizedString("msg.usage.header", ownName)); for (int i = 0; i < recognizedOptions.length; i++) { recognizedOptions[i].help(out); } out.println(); }
Example 6
Source File: Main.java From javaide with GNU General Public License v3.0 | 5 votes |
/** * Print a message reporting a fatal error. */ void feMessage(Throwable ex) { Log.printLines(out, ex.getMessage()); if (ex.getCause() != null && options.isSet("dev")) { ex.getCause().printStackTrace(out); } }
Example 7
Source File: JavacOption.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Print a line of documentation describing this option, if standard. * * @param out the stream to which to write the documentation */ void help(PrintWriter out) { String s = " " + helpSynopsis(); out.print(s); for (int j = Math.min(s.length(), 28); j < 29; j++) out.print(" "); Log.printLines(out, Main.getLocalizedString(descrKey)); }
Example 8
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Print a message reporting an uncaught exception from an * annotation processor. */ void apMessage(AnnotationProcessingError ex) { Log.printLines(out, getLocalizedString("msg.proc.annotation.uncaught.exception")); ex.getCause().printStackTrace(out); }
Example 9
Source File: Main.java From javaide with GNU General Public License v3.0 | 4 votes |
/** * Print a message reporting an internal error. */ void bugMessage(Throwable ex) { Log.printLines(out, getLocalizedString("msg.bug", JavaCompiler.version())); ex.printStackTrace(out); }
Example 10
Source File: Main.java From javaide with GNU General Public License v3.0 | 4 votes |
/** * Report a warning. */ void warning(String key, Object... args) { Log.printLines(out, ownName + ": " + getLocalizedString(key, args)); }
Example 11
Source File: Main.java From javaide with GNU General Public License v3.0 | 4 votes |
public void printVersion() { Log.printLines(out, getLocalizedString("version", ownName, JavaCompiler.version())); }
Example 12
Source File: JavaCompiler.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
protected void printNote(String lines) { Log.printLines(log.noticeWriter, lines); }
Example 13
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
public void printVersion() { Log.printLines(out, getLocalizedString("version", ownName, JavaCompiler.version())); }
Example 14
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Print a message reporting an out-of-resources error. */ void resourceMessage(Throwable ex) { Log.printLines(out, getLocalizedString("msg.resource")); // System.out.println("(name buffer len = " + Name.names.length + " " + Name.nc);//DEBUG ex.printStackTrace(out); }
Example 15
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Print a message reporting an input/output error. */ void ioMessage(Throwable ex) { Log.printLines(out, getLocalizedString("msg.io")); ex.printStackTrace(out); }
Example 16
Source File: Main.java From javaide with GNU General Public License v3.0 | 4 votes |
/** * Print a message reporting an uncaught exception from an * annotation processor. */ void apMessage(AnnotationProcessingError ex) { Log.printLines(out, getLocalizedString("msg.proc.annotation.uncaught.exception")); ex.getCause().printStackTrace(out); }
Example 17
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Print a message reporting an internal error. */ void bugMessage(Throwable ex) { Log.printLines(out, getLocalizedString("msg.bug", JavaCompiler.version())); ex.printStackTrace(out); }
Example 18
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Report a warning. */ void warning(String key, Object... args) { Log.printLines(out, ownName + ": " + getLocalizedString(key, args)); }
Example 19
Source File: Main.java From javaide with GNU General Public License v3.0 | 4 votes |
/** * Print a message reporting an input/output error. */ void ioMessage(Throwable ex) { Log.printLines(out, getLocalizedString("msg.io")); ex.printStackTrace(out); }
Example 20
Source File: Main.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
public void printFullVersion() { Log.printLines(out, getLocalizedString("fullVersion", ownName, JavaCompiler.fullVersion())); }