public class J2ObjCCompiler extends AbstractCompiler
CSharpCompiler
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BATCH_SIZE
--batch-translate-max=
|
private static java.lang.String |
J_FLAG
-J
|
private static java.util.List<java.lang.String> |
ONE_DASH_ARGS
Put the arguments of j2objc who takes one dash inside an array, in order
the check the command line.
|
private static java.util.List<java.lang.String> |
TWO_DASH_ARGS
Put the command line arguments with 2 dashes inside an array, in order
the check the command line and build it.
|
private static java.lang.String |
X_BOOTCLASSPATH |
EOL, PS
Constructor and Description |
---|
J2ObjCCompiler() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String[] |
buildCompilerArguments(CompilerConfiguration config,
java.lang.String[] sourceFiles)
Build the compiler arguments :
the output location is used for -d of j2objc)
the classpath entries are added to -classpath
the sourcefiles are listed at the end of the command line
the configuration can contain any of the arguments
|
boolean |
canUpdateTarget(CompilerConfiguration configuration) |
private java.util.List<CompilerMessage> |
compileOutOfProcess(java.io.File workingDirectory,
java.io.File target,
java.lang.String executable,
java.lang.String[] args) |
java.lang.String[] |
createCommandLine(CompilerConfiguration config)
Create the command line that would be executed using this configuration.
|
private java.lang.String |
findExecutable(CompilerConfiguration config)
Find the executable given in the configuration or use j2objc from the
PATH.
|
static java.util.List<CompilerMessage> |
parseCompilerOutput(java.io.BufferedReader bufferedReader) |
CompilerResult |
performCompile(CompilerConfiguration config)
Performs the compilation of the project.
|
compile, getCompilerOutputStyle, getInputFileEnding, getOutputFile, getOutputFileEnding, getPathString, getSourceFiles, getSourceFilesForSourceRoot, makeClassName, toStringArray
private static final java.lang.String X_BOOTCLASSPATH
private static final java.lang.String J_FLAG
private static final java.lang.String BATCH_SIZE
private static final java.util.List<java.lang.String> ONE_DASH_ARGS
private static final java.util.List<java.lang.String> TWO_DASH_ARGS
public boolean canUpdateTarget(CompilerConfiguration configuration) throws CompilerException
canUpdateTarget
in interface Compiler
canUpdateTarget
in class AbstractCompiler
CompilerException
public CompilerResult performCompile(CompilerConfiguration config) throws CompilerException
Compiler
performCompile
in interface Compiler
performCompile
in class AbstractCompiler
config
- the configuration description of the compilation
to performCompilerException
public java.lang.String[] createCommandLine(CompilerConfiguration config) throws CompilerException
Compiler
config
- the CompilerConfiguration describing the compilationCompilerException
- if there was an error generating the command
lineprivate java.lang.String findExecutable(CompilerConfiguration config)
config
- private java.lang.String[] buildCompilerArguments(CompilerConfiguration config, java.lang.String[] sourceFiles) throws CompilerException
config
- sourceFiles
- CompilerException
private java.util.List<CompilerMessage> compileOutOfProcess(java.io.File workingDirectory, java.io.File target, java.lang.String executable, java.lang.String[] args) throws CompilerException
CompilerException
public static java.util.List<CompilerMessage> parseCompilerOutput(java.io.BufferedReader bufferedReader) throws java.io.IOException
java.io.IOException