|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaCompiler
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 |
setSourceEncoding(java.lang.String encoding)
Set source encoding |
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 |
---|
void setTargetVersion(java.lang.String targetVersion) throws java.lang.IllegalArgumentException
targetVersion
-
java.lang.IllegalArgumentException
void setSourceVersion(java.lang.String sourceVersion) throws java.lang.IllegalArgumentException
sourceVersion
-
java.lang.IllegalArgumentException
void setDebug(boolean debug)
debug
- void setSourceEncoding(java.lang.String encoding)
encoding
- 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 |