|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | 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. |
java.util.List |
getErrors()
Return the list of errors generated by this compilation |
void |
setClasspath(java.lang.String classpath)
Set the classpath to be used for this compilation |
void |
setDestination(java.lang.String destDir)
Set the name of the directory to contain the resulting object program file |
void |
setEncoding(java.lang.String encoding)
Set the encoding of the input source file or null to use the
platform's default encoding |
void |
setFile(java.lang.String file)
Set the name of the file containing the source program |
void |
setSource(java.lang.String srcDir)
Set the name of the directory containing the source program file |
Method Detail |
public void setFile(java.lang.String file)
file
- The name of the file containing the source programpublic void setSource(java.lang.String srcDir)
srcDir
- The name of the directory containing the source program filepublic void setDestination(java.lang.String destDir)
destDir
- The name of the directory to contain the resulting object
program filepublic void setClasspath(java.lang.String classpath)
classpath
- The classpath to be used for this compilationpublic void setEncoding(java.lang.String encoding)
null
to use the
platform's default encodingencoding
- The encoding of the input source file or null
to use the platform's default encodingpublic boolean compile() throws java.io.IOException
filename
- The object program base file namebaseDirectory
- The directory containing the object program fileencoding
- The encoding expected in the source file or
null
if it is the platform's default encodingLanguageException
- If an error occurs during compilationpublic java.util.List getErrors() throws java.io.IOException
java.io.IOException
- If an error occurs during message collection
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |