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

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

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

JavaCompiler.close介绍

[英]Close the compiler, flushing the logs
[中]关闭编译器,刷新日志

代码示例

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

void cleanup() {
  if (compiler != null)
    compiler.close();
  compiler = null;
  compilerMain = null;
  args = null;
  classNames = null;
  context = null;
  fileObjects = null;
  notYetEntered = null;
}

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

/** Close the compiler, flushing the logs
 */
public void close() {
  close(true);
}

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

void cleanup() {
  if (compiler != null)
    compiler.close();
  compiler = null;
  compilerMain = null;
  args = null;
  classNames = null;
  context = null;
  fileObjects = null;
  notYetEntered = null;
}

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

/** Close the compiler, flushing the logs
 */
public void close() {
  close(true);
}

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

/** Close the compiler, flushing the logs
 */
public void close() {
  close(true);
}

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

/** Close the compiler, flushing the logs
 */
public void close() {
  close(true);
}

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

/** Create the next round to be used. */
Round next(Set<JavaFileObject> newSourceFiles, Map<String, JavaFileObject> newClassFiles) {
  try {
    return new Round(this, newSourceFiles, newClassFiles);
  } finally {
    compiler.close(false);
  }
}

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

/** Create the next round to be used. */
Round next(Set<JavaFileObject> newSourceFiles, Map<String, JavaFileObject> newClassFiles) {
  try {
    return new Round(this, newSourceFiles, newClassFiles);
  } finally {
    compiler.close(false);
  }
}

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

/** Create the compiler to be used for the final compilation. */
JavaCompiler finalCompiler() {
  try {
    Context nextCtx = nextContext();
    JavacProcessingEnvironment.this.context = nextCtx;
    JavaCompiler c = JavaCompiler.instance(nextCtx);
    c.log.initRound(compiler.log);
    return c;
  } finally {
    compiler.close(false);
  }
}

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

/** Create the compiler to be used for the final compilation. */
JavaCompiler finalCompiler() {
  try {
    Context nextCtx = nextContext();
    JavacProcessingEnvironment.this.context = nextCtx;
    JavaCompiler c = JavaCompiler.instance(nextCtx);
    c.log.initRound(compiler.log);
    return c;
  } finally {
    compiler.close(false);
  }
}

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

delegateCompiler.close();
elapsed_msec = delegateCompiler.elapsed_msec;
} catch (Abort ex) {

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

delegateCompiler.close();
  elapsed_msec = delegateCompiler.elapsed_msec;
} catch (Abort ex) {

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

delegateCompiler.close();
  elapsed_msec = delegateCompiler.elapsed_msec;
} catch (Abort ex) {

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

delegateCompiler.close();
  elapsed_msec = delegateCompiler.elapsed_msec;
} catch (Abort ex) {

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

if (comp != null) {
  try {
    comp.close();
  } catch (ClientCodeException ex) {
    throw new RuntimeException(ex.getCause());

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

if (comp != null) {
  try {
    comp.close();
  } catch (ClientCodeException ex) {
    throw new RuntimeException(ex.getCause());

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

packageInfoFiles = List.nil();
      compiler.close();
      currentContext = contextForNextRound(currentContext, true);
compiler.close();
currentContext = contextForNextRound(currentContext, true);
compiler = JavaCompiler.instance(currentContext);
  compiler.todo.clear();
} else { // Final compilation
  compiler.close();
  currentContext = contextForNextRound(currentContext, true);
  compiler = JavaCompiler.instance(currentContext);

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

packageInfoFiles = List.nil();
      compiler.close(false);
      currentContext = contextForNextRound(currentContext, true);
  errorStatus = true;
compiler.close(false);
currentContext = contextForNextRound(currentContext, true);
compiler = JavaCompiler.instance(currentContext);
  compiler.todo.clear();
} else { // Final compilation
  compiler.close(false);
  currentContext = contextForNextRound(currentContext, true);
  compiler = JavaCompiler.instance(currentContext);

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

return EXIT_ABNORMAL;
} finally {
  if (comp != null) comp.close();
  filenames = null;
  options = null;

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

return EXIT_ABNORMAL;
} finally {
  if (comp != null) comp.close();
  filenames = null;
  options = null;

相关文章