Package org.codehaus.plexus.compiler
Interface Compiler
- All Known Implementing Classes:
AbstractCompiler
,CSharpCompiler
,J2ObjCCompiler
,JavacCompiler
,JikesCompiler
public interface Compiler
The interface of an compiling language processor (aka compiler).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUpdateTarget
(CompilerConfiguration configuration) compile
(CompilerConfiguration configuration) Deprecated.String[]
Create the command line that would be executed using this configuration.getInputFileEnding
(CompilerConfiguration configuration) getOutputFile
(CompilerConfiguration configuration) getOutputFileEnding
(CompilerConfiguration configuration) performCompile
(CompilerConfiguration configuration) Performs the compilation of the project.
-
Field Details
-
ROLE
-
-
Method Details
-
getCompilerOutputStyle
CompilerOutputStyle getCompilerOutputStyle() -
getInputFileEnding
- Throws:
CompilerException
-
getOutputFileEnding
- Throws:
CompilerException
-
getOutputFile
- Throws:
CompilerException
-
canUpdateTarget
- Throws:
CompilerException
-
performCompile
Performs the compilation of the project. Clients must implement this method.- Parameters:
configuration
- the configuration description of the compilation to perform- Returns:
- the result of the compilation returned by the language processor
- Throws:
CompilerException
-
compile
@Deprecated List<CompilerError> compile(CompilerConfiguration configuration) throws CompilerException Deprecated.This method is provided for backwards compatibility only. Clients should useperformCompile(CompilerConfiguration)
instead.- Parameters:
configuration
- the configuration description of the compilation to perform- Returns:
- the result of the compilation returned by the language processor
- Throws:
CompilerException
-
createCommandLine
Create the command line that would be executed using this configuration. If this particular compiler has no concept of a command line then returns null.- Parameters:
config
- the CompilerConfiguration describing the compilation- Returns:
- an array of Strings that make up the command line, or null if this compiler has no concept of command line
- Throws:
CompilerException
- if there was an error generating the command line
-