|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tempuri.javacImpl.eclipse.JavaCompilerImpl
Implementation of JavaCompiler with eclipse.org Java Development Tools compiler
Constructor Summary | |
JavaCompilerImpl()
|
Method Summary | |
void |
compile(java.lang.String[] classNames,
JavaSourceReaderFactory sourceReaderFactory,
JavaClassReaderFactory classReaderFactory,
JavaClassWriterFactory classWriterFactory,
JavaCompilerErrorHandler errorHandler)
Compile a set of source classes. |
static java.lang.String |
makeClassName(java.lang.String name)
|
void |
setDebug(boolean value)
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" |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaCompilerImpl()
Method Detail |
public void setTargetVersion(java.lang.String targetVersion) throws java.lang.IllegalArgumentException
JavaCompiler
setTargetVersion
in interface JavaCompiler
targetVersion
-
java.lang.IllegalArgumentException
public void setDebug(boolean value)
JavaCompiler
setDebug
in interface JavaCompiler
value
- public void setSourceVersion(java.lang.String sourceVersion) throws java.lang.IllegalArgumentException
JavaCompiler
setSourceVersion
in interface JavaCompiler
sourceVersion
-
java.lang.IllegalArgumentException
public static java.lang.String makeClassName(java.lang.String name)
public void compile(java.lang.String[] classNames, JavaSourceReaderFactory sourceReaderFactory, JavaClassReaderFactory classReaderFactory, JavaClassWriterFactory classWriterFactory, JavaCompilerErrorHandler errorHandler)
JavaCompiler
compile
in interface JavaCompiler
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 |