public final class CompilerAdapterFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPILER_CLASSIC |
static java.lang.String |
COMPILER_EXTJAVAC |
static java.lang.String |
COMPILER_EXTJAVAC_CLASSNAME |
static java.lang.String |
COMPILER_GCJ |
static java.lang.String |
COMPILER_JAVAC_1_1 |
static java.lang.String |
COMPILER_JAVAC_1_2 |
static java.lang.String |
COMPILER_JAVAC_1_3 |
static java.lang.String |
COMPILER_JAVAC_1_4 |
static java.lang.String |
COMPILER_JAVAC_1_5 |
static java.lang.String |
COMPILER_JAVAC_1_6 |
static java.lang.String |
COMPILER_JAVAC_1_7 |
static java.lang.String |
COMPILER_JAVAC_1_8 |
static java.lang.String |
COMPILER_JAVAC_10_PLUS |
static java.lang.String |
COMPILER_JAVAC_9 |
static java.lang.String |
COMPILER_JAVAC_9_ALIAS |
static java.lang.String |
COMPILER_JIKES |
static java.lang.String |
COMPILER_JVC |
static java.lang.String |
COMPILER_JVC_ALIAS |
static java.lang.String |
COMPILER_KJC |
static java.lang.String |
COMPILER_MODERN |
static java.lang.String |
COMPILER_MODERN_CLASSNAME |
static java.lang.String |
COMPILER_SYMANTEC |
static java.lang.String |
COMPILER_SYMANTEC_ALIAS |
Modifier and Type | Method and Description |
---|---|
static CompilerAdapter |
getCompiler(java.lang.String compilerType,
Task task)
Based on the parameter passed in, this method creates the necessary
factory desired.
|
static CompilerAdapter |
getCompiler(java.lang.String compilerType,
Task task,
Path classpath)
Based on the parameter passed in, this method creates the necessary
factory desired.
|
static boolean |
isClassicJdkCompiler(java.lang.String compilerName)
Does the compiler correspond to "classic"?
|
static boolean |
isForkedJavac(java.lang.String compilerName)
Is the compiler implementation a forked jdk compiler?
|
static boolean |
isJdkCompiler(java.lang.String compilerName)
Is the compiler implementation a jdk compiler?
|
static boolean |
isJdkCompilerNickname(java.lang.String compilerName)
Is the compiler implementation a jdk compiler without specified version?
|
static boolean |
isModernJdkCompiler(java.lang.String compilerName)
Does the compiler correspond to "modern"?
|
public static final java.lang.String COMPILER_JIKES
public static final java.lang.String COMPILER_GCJ
public static final java.lang.String COMPILER_SYMANTEC_ALIAS
public static final java.lang.String COMPILER_SYMANTEC
public static final java.lang.String COMPILER_JVC_ALIAS
public static final java.lang.String COMPILER_JVC
public static final java.lang.String COMPILER_KJC
public static final java.lang.String COMPILER_JAVAC_1_1
public static final java.lang.String COMPILER_JAVAC_1_2
public static final java.lang.String COMPILER_JAVAC_1_3
public static final java.lang.String COMPILER_JAVAC_1_4
public static final java.lang.String COMPILER_JAVAC_1_5
public static final java.lang.String COMPILER_JAVAC_1_6
public static final java.lang.String COMPILER_JAVAC_1_7
public static final java.lang.String COMPILER_JAVAC_1_8
public static final java.lang.String COMPILER_JAVAC_9_ALIAS
public static final java.lang.String COMPILER_JAVAC_9
public static final java.lang.String COMPILER_JAVAC_10_PLUS
public static final java.lang.String COMPILER_CLASSIC
public static final java.lang.String COMPILER_MODERN
public static final java.lang.String COMPILER_EXTJAVAC
public static final java.lang.String COMPILER_MODERN_CLASSNAME
public static final java.lang.String COMPILER_EXTJAVAC_CLASSNAME
public static CompilerAdapter getCompiler(java.lang.String compilerType, Task task) throws BuildException
compilerType
- either the name of the desired compiler, or the
full classname of the compiler's adapter.task
- a task to log through.BuildException
- if the compiler type could not be resolved into
a compiler adapter.public static CompilerAdapter getCompiler(java.lang.String compilerType, Task task, Path classpath) throws BuildException
compilerType
- either the name of the desired compiler, or the
full classname of the compiler's adapter.task
- a task to log through.classpath
- the classpath to use when looking up an
adapter classBuildException
- if the compiler type could not be resolved into
a compiler adapter.public static boolean isForkedJavac(java.lang.String compilerName)
compilerImpl
- the name of the compiler implementationpublic static boolean isJdkCompiler(java.lang.String compilerName)
compilerImpl
- the name of the compiler implementationpublic static boolean isJdkCompilerNickname(java.lang.String compilerName)
compilerImpl
- the name of the compiler implementationpublic static boolean isClassicJdkCompiler(java.lang.String compilerName)
compilerImpl
- the name of the compiler implementationpublic static boolean isModernJdkCompiler(java.lang.String compilerName)
compilerImpl
- the name of the compiler implementation