org.apache.axis.components.compiler
Interface Compiler
- AbstractCompiler, Javac, Jikes
public interface Compiler
This interface defines a compiler's functionality for all
(Java-based) compiled languages
- Davanum Srinivas
- Stefano Mazzocchi
- 2.0
void | addFile(String file) - Set the name of the file containing the source program
|
boolean | compile() - Compile a source file yielding a loadable program file.
|
List | getErrors() - Return the list of errors generated by this compilation
|
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
|
addFile
public void addFile(String file)
Set the name of the file containing the source program
file
- The name of the file containing the source program
compile
public boolean compile()
throws IOException
Compile a source file yielding a loadable program file.
getErrors
public List getErrors()
throws IOException
Return the list of errors generated by this compilation
- The list of errors generated by this compilation
setClasspath
public void setClasspath(String classpath)
Set the classpath to be used for this compilation
classpath
- The classpath to be used for this compilation
setDestination
public void setDestination(String destDir)
Set the name of the directory to contain the resulting object program file
destDir
- The name of the directory to contain the resulting object
program file
setEncoding
public void setEncoding(String encoding)
Set the encoding of the input source file or null
to use the
platform's default encoding
encoding
- The encoding of the input source file or null
to use the platform's default encoding
setSource
public void setSource(String srcDir)
Set the name of the directory containing the source program file
srcDir
- The name of the directory containing the source program file
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.