org.apache.axis.components.compiler
public abstract class AbstractCompiler extends Object implements Compiler
Since: 2.0
Field Summary | |
---|---|
protected String | classpath
The classpath to be used for compilation |
protected String | destDir
The name of the directory to contain the resulting object program file |
protected String | encoding
The encoding of the source program or null to use the
platform's default encoding |
protected InputStream | errors
The input stream to output compilation errors |
protected ArrayList | fileList
The source program filenames |
protected String | srcDir
The name of the directory containing the source program file |
Method Summary | |
---|---|
void | addFile(String file)
Add the name of the file containing the source program to the file list
|
protected List | fillArguments(List arguments)
Fill the arguments taken by the Java compiler
|
List | getErrors()
Return the list of errors generated by this compilation
|
protected abstract List | parseStream(BufferedReader errors)
Parse the compiler error stream to produce a list of
CompilerError s
|
void | setClasspath(String classpath)
Set the classpath to be used for this compilation
|
void | setDestination(String destDir)
Set the name of the directory to contain the resulting object program file
|
void | setEncoding(String encoding)
Set the encoding of the input source file or null to use the
platform's default encoding
|
void | setSource(String srcDir)
Set the name of the directory containing the source program file
|
protected String[] | toStringArray(List arguments)
Copy arguments to a string array
|
null
to use the
platform's default encodingParameters: file The name of the file containing the source program
Parameters: arguments The list of compilation arguments
Returns: The prepared list of compilation arguments
Returns: The list of errors generated by this compilation
Throws: IOException If an error occurs during message collection
CompilerError
s
Parameters: errors The error stream
Returns: The list of compiler error messages
Throws: IOException If an error occurs during message collection
Parameters: classpath The classpath to be used for this compilation
Parameters: destDir The name of the directory to contain the resulting object program file
null
to use the
platform's default encoding
Parameters: encoding The encoding of the input source file or null
to use the platform's default encoding
Parameters: srcDir The name of the directory containing the source program file
Parameters: arguments The compiler arguments
Returns: A string array containing compilation arguments