Package: org.codehaus.groovy.tools.javac

## [Java] Class JavacJavaCompiler

- org.codehaus.groovy.tools.javac.JavacJavaCompiler

- All Implemented Interfaces and Traits:
    JavaCompiler

      public class JavacJavaCompiler
      extends Object
      implements JavaCompiler

  JavaCompiler implementation that delegates to the JDK system Java compiler.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `JavacJavaCompiler(CompilerConfiguration config)` Creates a javac-backed compiler for the supplied configuration.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `compile(List<String> files, CompilationUnit cu)` Compiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public JavacJavaCompiler(CompilerConfiguration config)

      Creates a javac-backed compiler for the supplied configuration.

      Parameters:
        `config` - the compiler configuration to use

  - ### Method Detail

    - #### public void compile(List<String> files, CompilationUnit cu)

      Compiles the supplied Java source files with javac and reports any errors back to the Groovy compilation unit.

      Parameters:
        `files` - the Java source files to compile
        `cu` - the owning Groovy compilation unit