public interface LanguageCompiler extends Component(Code)
This interface defines a compiler's functionality for all
(Java-based) compiled languages
author: Stefano Mazzocchi version: CVS $Id: LanguageCompiler.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.0
Method Summary
boolean
compile() Compile a source file yielding a loadable program file.
Return the list of errors generated by this compilation
The list of errors generated by this compilation exception: IOException - If an error occurs during message collection
Set the version of the java source code to be compiled
Parameters: level - The version of the JVM for wich the code was written.i.e: Posible level's values are:130 = for Java 1.3, 140 = for Java 1.4 and 150 = for Java 1.5 since: 2.1.7
Set the name of the directory to contain the resulting object program file
Parameters: destDir - The name of the directory to contain the resulting objectprogram file
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 nullto use the platform's default encoding