com.sun.tools.javac.main.JavaCompiler.generate()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中com.sun.tools.javac.main.JavaCompiler.generate()方法的一些代码示例,展示了JavaCompiler.generate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JavaCompiler.generate()方法的具体详情如下:
包路径:com.sun.tools.javac.main.JavaCompiler
类名称:JavaCompiler
方法名:generate

JavaCompiler.generate介绍

[英]Generates the source or class file for a list of classes. The decision to generate a source file or a class file is based upon the compiler's options. Generation stops if an error occurs while writing files.
[中]为类列表生成源文件或类文件。生成源文件或类文件的决定取决于编译器的选项。如果写入文件时发生错误,则停止生成。

代码示例

代码示例来源:origin: konsoletyper/teavm-javac

/** Generates the source or class file for a list of classes.
 * The decision to generate a source file or a class file is
 * based upon the compiler's options.
 * Generation stops if an error occurs while writing files.
 */
public void generate(Queue<Pair<Env<AttrContext>, JCClassDecl>> queue) {
  generate(queue, null);
}

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

/** Generates the source or class file for a list of classes.
 * The decision to generate a source file or a class file is
 * based upon the compiler's options.
 * Generation stops if an error occurs while writing files.
 */
public void generate(List<Pair<Env<AttrContext>, JCClassDecl>> list) {
  generate(list, null);
}

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

/** Generates the source or class file for a list of classes.
 * The decision to generate a source file or a class file is
 * based upon the compiler's options.
 * Generation stops if an error occurs while writing files.
 */
public void generate(Queue<Pair<Env<AttrContext>, JCClassDecl>> queue) {
  generate(queue, null);
}

代码示例来源:origin: sc.fiji/javac

/** Generates the source or class file for a list of classes.
 * The decision to generate a source file or a class file is
 * based upon the compiler's options.
 * Generation stops if an error occurs while writing files.
 */
public void generate(Queue<Pair<Env<AttrContext>, JCClassDecl>> queue) {
  generate(queue, null);
}

代码示例来源:origin: konsoletyper/teavm-javac

public void process(Env<AttrContext> env) {
    compiler.generate(compiler.desugar(ListBuffer.of(env)), results);
  }
};

代码示例来源:origin: sc.fiji/javac

public void process(Env<AttrContext> env) {
    compiler.generate(compiler.desugar(ListBuffer.of(env)), results);
  }
};

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

public void process(Env<AttrContext> env) {
    compiler.generate(compiler.desugar(ListBuffer.of(env)), results);
  }
};

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

public void process(Env<AttrContext> env) {
    compiler.generate(compiler.desugar(List.of(env)), results);
  }
};

代码示例来源:origin: konsoletyper/teavm-javac

generate(desugar(flow(attribute(todo))));
break;
  Queue<Queue<Env<AttrContext>>> q = todo.groupByFile();
  while (!q.isEmpty() && !shouldStop(CompileState.ATTR)) {
    generate(desugar(flow(attribute(q.remove()))));
  generate(desugar(flow(attribute(todo.remove()))));
break;

代码示例来源:origin: sc.fiji/javac

generate(desugar(flow(attribute(todo))));
break;
  Queue<Queue<Env<AttrContext>>> q = todo.groupByFile();
  while (!q.isEmpty() && !shouldStop(CompileState.ATTR)) {
    generate(desugar(flow(attribute(q.remove()))));
  generate(desugar(flow(attribute(todo.remove()))));
break;

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

generate(desugar(flow(attribute(todo))));
break;
  Queue<Queue<Env<AttrContext>>> q = todo.groupByFile();
  while (!q.isEmpty() && !shouldStop(CompileState.ATTR)) {
    generate(desugar(flow(attribute(q.remove()))));
  generate(desugar(flow(attribute(todo.remove()))));
break;

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

generate(desugar(flow(attribute(todo))));
break;
  generate(desugar(list));
break;
  generate(desugar(flow(attribute(todo.next()))));
break;

代码示例来源:origin: org.kohsuke.sorcerer/sorcerer-javac

compiler.generate(compiler.desugar(genList), results);
genList.clear();

代码示例来源:origin: konsoletyper/teavm-javac

compiler.generate(compiler.desugar(genList), results);
genList.clear();

代码示例来源:origin: sc.fiji/javac

compiler.generate(compiler.desugar(genList), results);
genList.clear();

代码示例来源:origin: org.jvnet.sorcerer/sorcerer-javac

compiler.generate(compiler.desugar(genList.toList()), results);
genList.clear();

相关文章