Class EclipseJavaCompiler

    • Constructor Detail

      • EclipseJavaCompiler

        public EclipseJavaCompiler()
      • EclipseJavaCompiler

        public EclipseJavaCompiler​(java.util.Map<java.lang.String,​java.lang.String> pSettings)
    • Method Detail

      • compile

        public CompilationResult compile​(java.lang.String[] pSourceFiles,
                                         ResourceReader pReader,
                                         ResourceStore pStore,
                                         java.lang.ClassLoader pClassLoader,
                                         JavaCompilerSettings pSettings)
        Description copied from interface: 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.
        Returns:
        always a CompilationResult
      • createDefaultSettings

        public JavaCompilerSettings createDefaultSettings()
        Description copied from interface: JavaCompiler
        factory method to create the underlying default settings