|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generic interface to a Java compilation system
Method Summary | |
void |
compile(java.lang.String[] classNames,
JavaSourceReaderFactory sourceReaderFactory,
JavaClassReaderFactory classReaderFactory,
JavaClassWriterFactory classWriterFactory,
JavaCompilerErrorHandler errorHandler)
Compile a set of source classes. |
void |
setDebug(boolean debug)
Choose whether the compiler should include the line number table and local variable table in generated class files |
void |
setSourceVersion(java.lang.String sourceVersion)
Choose the Java source version, e.g "1.2", "1.3", or "1.4" |
void |
setTargetVersion(java.lang.String targetVersion)
Choose the target Java platform version, e.g "1.2", "1.3", or "1.4" |
Method Detail |
public void setTargetVersion(java.lang.String targetVersion) throws java.lang.IllegalArgumentException
targetVersion
-
java.lang.IllegalArgumentException
public void setSourceVersion(java.lang.String sourceVersion) throws java.lang.IllegalArgumentException
sourceVersion
-
java.lang.IllegalArgumentException
public void setDebug(boolean debug)
debug
- public void compile(java.lang.String[] classNames, JavaSourceReaderFactory sourceReaderFactory, JavaClassReaderFactory classReaderFactory, JavaClassWriterFactory classWriterFactory, JavaCompilerErrorHandler errorHandler)
classNames
- list of classes to be compiledsourceReaderFactory
- object used by compiler to locate source codeclassReaderFactory
- object used by compiler to locate existing compiled classesclassWriterFactory
- object used by compiler to handle generated classeserrorHandler
- object used by compiler to handle errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |