io.sarl.lang.compiler.batch
Class SarlBatchCompilerUtils
final class SarlBatchCompilerUtils
extends java.lang.Object
Utility functions for the SARL batch compiler API.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
batchcompiler
Since:
0.12
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
static java.lang.Class<T> getDefaultJavaBatchCompilerImplementationType
Replies the type of the default Java batch compiler.
static boolean isModuleFolder(File)
Replies if the given folder contains the definition of a module.
static boolean isModuleSupported(String)
Replies if the given version of Java supports the modules.
static boolean isModuleSupported(JavaVersion)
Replies if the given version of Java supports the modules.
static IJavaBatchCompiler newDefaultJavaBatchCompiler
Create a default Java batch compiler, without injection.
static org.eclipse.xtext.util.JavaVersion parseJavaVersion(String)
Parse a Java version.
Constructor Details
new
new
Action Details
getDefaultJavaBatchCompilerImplementationType
def getDefaultJavaBatchCompilerImplementationType : java.lang.Class<T>
Replies the type of the default Java batch compiler.
Returns:
the type of the default Java batch compiler, never null .
Since:
0.12
isModuleFolder(File)
def isModuleFolder(File) : boolean
Replies if the given folder contains the definition of a module. A module definition is written into a file named module-info.java.
Parameters:
folder - the folder to test.
Returns:
true if the folder contains the module definition.
Since:
0.12
isModuleSupported(String)
def isModuleSupported(String) : boolean
Replies if the given version of Java supports the modules.
Parameters:
javaVersion - the version of JAva to test.
Returns:
true if the Java modules are supported.
Since:
0.12
isModuleSupported(JavaVersion)
def isModuleSupported(JavaVersion) : boolean
Replies if the given version of Java supports the modules.
Parameters:
javaVersion - the version of JAva to test.
Returns:
true if the Java modules are supported.
Since:
0.12
newDefaultJavaBatchCompiler
def newDefaultJavaBatchCompiler : IJavaBatchCompiler
Create a default Java batch compiler, without injection.
Returns:
the Java batch compiler, never null .
parseJavaVersion(String)
def parseJavaVersion(String) : org.eclipse.xtext.util.JavaVersion
Parse a Java version.
Parameters:
javaVersion - the version of JAva to test.
Returns:
the java version object.
Since:
0.12