org.tempuri.javac.util
Interface FileSystemClassFactory

All Superinterfaces:
JavaClassReaderFactory, JavaClassWriterFactory, JavaSourceReaderFactory
All Known Implementing Classes:
FileSystemClassFactoryImpl

public interface FileSystemClassFactory
extends JavaClassReaderFactory, JavaSourceReaderFactory, JavaClassWriterFactory

Interface to a utility to simulate the behavior of javac in locating source files, compiled classes, and generating output


Method Summary
 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 interface org.tempuri.javac.JavaClassReaderFactory
getClassReader
 
Methods inherited from interface org.tempuri.javac.JavaSourceReaderFactory
getSourceReader
 
Methods inherited from interface org.tempuri.javac.JavaClassWriterFactory
getClassWriter
 

Method Detail

makeClassName

public java.lang.String makeClassName(java.lang.String fileName)
                               throws java.io.IOException
Convert a file name to its associated Java class name

Parameters:
fileName - name of file
Returns:
name of class
java.io.IOException

makeFileName

public java.lang.String makeFileName(java.lang.String className)
                              throws java.io.IOException
Convert a class name to its associated file name

Parameters:
className - name of class
Returns:
name of file
java.io.IOException

setBootClassPath

public void setBootClassPath(java.lang.String bcp)
 Set the boot class path to use in locating compiled classes.
 Equivalent to the "-bootclasspath" option of javac
 

Parameters:
bcp - string containing directory or jar file paths separated by the java.io.File.pathSeparator

setClassPath

public void setClassPath(java.lang.String cp)
 Set the class path to use in locating compiled classes.
 Equivalent to the "-classpath" option of javac
 

Parameters:
cp - string containing directory or jar file paths separated by the java.io.File.pathSeparator

setSourcePath

public void setSourcePath(java.lang.String sp)
 Set the source path to use in locating Java source files.
 Equivalent to the "-sourcepath" option of javac.
 


setOutputDir

public void setOutputDir(java.lang.String outputDir)
 Set the source path to use in locating Java source files.
 Equivalent to the "-d" option of javac.
 

Parameters:
outputDir - string containing the root directory for generated class files