org.apache.axis.components.compiler

Interface Compiler

public interface Compiler

This interface defines a compiler's functionality for all (Java-based) compiled languages

Since: 2.0

Author: Davanum Srinivas Stefano Mazzocchi

Method Summary
voidaddFile(String file)
Set the name of the file containing the source program
booleancompile()
Compile a source file yielding a loadable program file.
ListgetErrors()
Return the list of errors generated by this compilation
voidsetClasspath(String classpath)
Set the classpath to be used for this compilation
voidsetDestination(String destDir)
Set the name of the directory to contain the resulting object program file
voidsetEncoding(String encoding)
Set the encoding of the input source file or null to use the platform's default encoding
voidsetSource(String srcDir)
Set the name of the directory containing the source program file

Method Detail

addFile

public void addFile(String file)
Set the name of the file containing the source program

Parameters: file The name of the file containing the source program

compile

public boolean compile()
Compile a source file yielding a loadable program file.

Parameters: filename The object program base file name baseDirectory The directory containing the object program file encoding The encoding expected in the source file or null if it is the platform's default encoding

Throws: LanguageException If an error occurs during compilation

getErrors

public List getErrors()
Return the list of errors generated by this compilation

Returns: The list of errors generated by this compilation

Throws: IOException If an error occurs during message collection

setClasspath

public void setClasspath(String classpath)
Set the classpath to be used for this compilation

Parameters: 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

Parameters: 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

Parameters: 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

Parameters: srcDir The name of the directory containing the source program file

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.