本文整理汇总了Java中com.sun.tools.javac.util.Log.printLines方法的典型用法代码示例。如果您正苦于以下问题:Java Log.printLines方法的具体用法?Java Log.printLines怎么用?Java Log.printLines使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.javac.util.Log
的用法示例。
在下文中一共展示了Log.printLines方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: help
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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();
}
示例2: xhelp
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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"));
}
示例3: error
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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));
}
示例4: feMessage
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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);
}
}
示例5: help
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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));
}
示例6: printVersion
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
public void printVersion() {
Log.printLines(out, getLocalizedString("version", ownName, JavaCompiler.version()));
}
示例7: printFullVersion
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
public void printFullVersion() {
Log.printLines(out, getLocalizedString("fullVersion", ownName, JavaCompiler.fullVersion()));
}
示例8: warning
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* Report a warning.
*/
void warning(String key, Object... args) {
Log.printLines(out, ownName + ": "
+ getLocalizedString(key, args));
}
示例9: bugMessage
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* Print a message reporting an internal error.
*/
void bugMessage(Throwable ex) {
Log.printLines(out, getLocalizedString("msg.bug",
JavaCompiler.version()));
ex.printStackTrace(out);
}
示例10: ioMessage
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* Print a message reporting an input/output error.
*/
void ioMessage(Throwable ex) {
Log.printLines(out, getLocalizedString("msg.io"));
ex.printStackTrace(out);
}
示例11: resourceMessage
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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);
}
示例12: apMessage
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
/**
* 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);
}
示例13: printNote
import com.sun.tools.javac.util.Log; //导入方法依赖的package包/类
protected void printNote(String lines) {
Log.printLines(log.noticeWriter, lines);
}