类 EclipseJavaCompiler

java.lang.Object
com.sh.common.jci.compilers.AbstractJavaCompiler
com.sh.common.jci.compilers.EclipseJavaCompiler
所有已实现的接口:
JavaCompiler

public final class EclipseJavaCompiler extends AbstractJavaCompiler
适配 JDK 21 的 Eclipse 编译器实现
  • 构造器详细资料

    • EclipseJavaCompiler

      public EclipseJavaCompiler()
    • EclipseJavaCompiler

      public EclipseJavaCompiler(Map pSettings)
    • EclipseJavaCompiler

      public EclipseJavaCompiler(EclipseJavaCompilerSettings pSettings)
  • 方法详细资料

    • compile

      public CompilationResult compile(String[] pSourceFiles, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader, JavaCompilerSettings pSettings)
      从接口复制的说明: JavaCompiler
      Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class". Note: As these are resource path you always have to use "/" The result of the compilation run including detailed error information is returned as CompilationResult. If you need to get notified already during the compilation process you can register a CompilationProblemHandler. Note: Not all compilers might support this notification mechanism.
      参数:
      pSourceFiles - String[]
      pReader - ResourceReader
      pStore - ResourceStore
      pClassLoader - ClassLoader
      pSettings - JavaCompilerSettings
      返回:
      always a CompilationResult
    • createDefaultSettings

      public JavaCompilerSettings createDefaultSettings()
      从接口复制的说明: JavaCompiler
      factory method to create the underlying default settings
      返回:
      JavaCompilerSettings