|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.tempuri.javacImpl.util.MemoryClassFactoryImpl
| Nested Class Summary | |
class |
MemoryClassFactoryImpl.ClassReaderImpl
|
class |
MemoryClassFactoryImpl.ClassWriterImpl
|
class |
MemoryClassFactoryImpl.DefiningClassLoader
|
class |
MemoryClassFactoryImpl.SourceReaderImpl
|
| Constructor Summary | |
MemoryClassFactoryImpl()
|
|
| Method Summary | |
JavaClassReader |
getClassReader(java.lang.String className)
Returns a JavaClassReader for the specified class name |
JavaClassWriter |
getClassWriter(java.lang.String className)
Called by the compiler for each class it compiles, to handle the generated output. |
java.util.Map |
getOutput()
Get the compiled output files as a map |
JavaSourceReader |
getSourceReader(java.lang.String className)
Get a source reader for a Java class. |
java.lang.Class |
loadClass(java.lang.String className)
Convenience method to load a class you just compiled in memory |
void |
setClassLoader(java.lang.ClassLoader cl)
Set the class loader to use to locate existing classes. |
void |
setInput(java.util.Map sourceMap)
Set the input source files to be compiled. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemoryClassFactoryImpl()
| Method Detail |
public void setInput(java.util.Map sourceMap)
MemoryClassFactory
setInput in interface MemoryClassFactorysourceMap - a map of {className -> source code} pairs. Both the keys and values of the map must be instances of java.lang.Stringpublic java.util.Map getOutput()
MemoryClassFactory
getOutput in interface MemoryClassFactory
public JavaSourceReader getSourceReader(java.lang.String className)
throws java.io.IOException
JavaSourceReaderFactory
getSourceReader in interface JavaSourceReaderFactoryjava.io.IOException - if the source code exists but an error obtaining it occured
public JavaClassReader getClassReader(java.lang.String className)
throws java.io.IOException
JavaClassReaderFactory
getClassReader in interface JavaClassReaderFactoryclassName - name of class to be read
java.io.IOException - if an error occurs
public JavaClassWriter getClassWriter(java.lang.String className)
throws java.io.IOException
JavaClassWriterFactory
getClassWriter in interface JavaClassWriterFactoryclassName - name of compiled class
java.io.IOExceptionpublic void setClassLoader(java.lang.ClassLoader cl)
MemoryClassFactory
setClassLoader in interface MemoryClassFactorycl - class loader
public java.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException
MemoryClassFactory
loadClass in interface MemoryClassFactoryjava.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||