io.sarl.lang.compiler.batch
Interface IJavaBatchCompiler
All Known Implementing Classes:
AbstractJavaBatchCompiler, EcjBatchCompiler, JavacBatchCompiler
interface IJavaBatchCompiler
An object that represents a Java compiler.

If not specific injection configuration is defined, the Javac batch compiler is used as the default implementation of this interface.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
batchcompiler
Since:
0.8
Property Summary
Modifier and type Property and description
java.lang.String name
Replies the name of the Java compiler.
Action Summary
Modifier and type Action and description
abstract CompilerStatus compile(File,Iterable<T>,Iterable<T>,Iterable<T>,String,String,boolean,OptimizationLevel,PrintWriter,PrintWriter,Logger,IProgressMonitor)
Run the Java compiler.
abstract java.lang.String getName
Replies the name of the Java compiler.
Property Details
name
val name : java.lang.String
Replies the name of the Java compiler.

This property is an alias for the action: getName

Returns:
the name, never null .
Since:
0.12
Action Details
compile(File,Iterable<T>,Iterable<T>,Iterable<T>,String,String,boolean,OptimizationLevel,PrintWriter,PrintWriter,Logger,IProgressMonitor)
def compile(File,Iterable<T>,Iterable<T>,Iterable<T>,String,String,boolean,OptimizationLevel,PrintWriter,PrintWriter,Logger,IProgressMonitor) : CompilerStatus
Run the Java compiler.
Parameters:
classDirectory - the output directory.
sourcePathDirectories - the source directories.
classPathEntries - classpath entries.
modulePathEntries - classpath entries. No more used.
javaVersion - the version of Java that is the target, e.g. 11.
encoding - the encoding of the files.
isCompilerMoreVerbose - indicates if the Java compiler should be more verbose.
optimizationLevel - the level of optimization to apply to the byte code or null if the defaults must be applied.
outWriter - the standard output writer.
errWriter - the standard error writer.
logger - the logger to use for debugging messages.
progress - monitor of the progress of the compilation.
Returns:
the success status; Never null .
getName
def getName : java.lang.String
Replies the name of the Java compiler.
Returns:
the name, never null .
Since:
0.12