|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a compiler's functionality for all (Java-based) compiled languages
Method Summary | |
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 |
setCompilerComplianceLevel(int level)
Set the version of the java source code to be compiled |
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 |
setFile(String file)
Set the name of the file containing the source program |
void |
setSource(String srcDir)
Set the name of the directory containing the source program file |
Method Detail |
public void setFile(String file)
file
- The name of the file containing the source programpublic void setSource(String srcDir)
srcDir
- The name of the directory containing the source program filepublic void setDestination(String destDir)
destDir
- The name of the directory to contain the resulting object
program filepublic void setClasspath(String classpath)
classpath
- The classpath to be used for this compilationpublic void setEncoding(String encoding)
null
to use the
platform's default encoding
encoding
- The encoding of the input source file or null
to use the platform's default encodingpublic void setCompilerComplianceLevel(int level)
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.5public boolean compile() throws IOException
IOException
- If an error occurs during compilationpublic List getErrors() throws IOException
IOException
- If an error occurs during message collection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |