|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.tempuri.javacImpl.util.FileSystemClassFactoryImpl
| Nested Class Summary | |
static class |
FileSystemClassFactoryImpl.ClassReaderImpl
|
static class |
FileSystemClassFactoryImpl.ClassWriterImpl
|
static class |
FileSystemClassFactoryImpl.SourceReaderImpl
|
| Constructor Summary | |
FileSystemClassFactoryImpl()
|
|
| 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. |
JavaSourceReader |
getSourceReader(java.lang.String className)
Get a source reader for a Java class. |
java.lang.String |
makeClassName(java.lang.String fileName)
Convert a file name to its associated Java class name |
java.lang.String |
makeFileName(java.lang.String className)
Convert a class name to its associated file name |
void |
setBootClassPath(java.lang.String bcp)
Set the boot class path to use in locating compiled classes. |
void |
setClassPath(java.lang.String cp)
Set the class path to use in locating compiled classes. |
void |
setOutputDir(java.lang.String outputDir)
Set the source path to use in locating Java source files. |
void |
setSourcePath(java.lang.String sp)
Set the source path to use in locating Java source files. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileSystemClassFactoryImpl()
| Method Detail |
public java.lang.String makeClassName(java.lang.String fileName)
throws java.io.IOException
FileSystemClassFactory
makeClassName in interface FileSystemClassFactoryfileName - name of file
java.io.IOException
public java.lang.String makeFileName(java.lang.String className)
throws java.io.IOException
FileSystemClassFactory
makeFileName in interface FileSystemClassFactoryclassName - name of class
java.io.IOException
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 setBootClassPath(java.lang.String bcp)
FileSystemClassFactorySet the boot class path to use in locating compiled classes. Equivalent to the "-bootclasspath" option of javac
setBootClassPath in interface FileSystemClassFactorybcp - string containing directory or jar file paths separated by the java.io.File.pathSeparatorpublic void setClassPath(java.lang.String cp)
FileSystemClassFactorySet the class path to use in locating compiled classes. Equivalent to the "-classpath" option of javac
setClassPath in interface FileSystemClassFactorycp - string containing directory or jar file paths separated by the java.io.File.pathSeparatorpublic void setSourcePath(java.lang.String sp)
FileSystemClassFactorySet the source path to use in locating Java source files. Equivalent to the "-sourcepath" option of javac.
setSourcePath in interface FileSystemClassFactorypublic void setOutputDir(java.lang.String outputDir)
FileSystemClassFactorySet the source path to use in locating Java source files. Equivalent to the "-d" option of javac.
setOutputDir in interface FileSystemClassFactoryoutputDir - string containing the root directory for generated class files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||