org.codehaus.plexus.compiler

Interface Compiler

Known Implementing Classes:
AbstractCompiler

public interface Compiler

Version:
$Id: Compiler.java 2723 2005-10-15 14:58:55Z brett $
Authors:
Jason van Zyl
Trygve Laugstøl
Matthew Pocock

Field Summary

static String
ROLE

Method Summary

boolean
canUpdateTarget(CompilerConfiguration configuration)
List
compile(CompilerConfiguration configuration)
String[]
createCommandLine(CompilerConfiguration config)
Create the command line that would be executed using this configuration.
CompilerOutputStyle
getCompilerOutputStyle()
String
getInputFileEnding(CompilerConfiguration configuration)
String
getOutputFile(CompilerConfiguration configuration)
String
getOutputFileEnding(CompilerConfiguration configuration)

Field Details

ROLE

public static final String ROLE

Method Details

canUpdateTarget

public boolean canUpdateTarget(CompilerConfiguration configuration)
            throws CompilerException

compile

public List compile(CompilerConfiguration configuration)
            throws CompilerException

createCommandLine

public String[] createCommandLine(CompilerConfiguration config)
            throws CompilerException
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

getCompilerOutputStyle

public CompilerOutputStyle getCompilerOutputStyle()

getInputFileEnding

public String getInputFileEnding(CompilerConfiguration configuration)
            throws CompilerException

getOutputFile

public String getOutputFile(CompilerConfiguration configuration)
            throws CompilerException

getOutputFileEnding

public String getOutputFileEnding(CompilerConfiguration configuration)
            throws CompilerException