jltools.frontend
Class TargetFactory
java.lang.Object
|
+--jltools.frontend.TargetFactory
- public class TargetFactory
- extends java.lang.Object
A TargetFactory
is responsible for opening output files.
Constructor Summary |
TargetFactory(java.io.File outDir,
java.lang.String outExt,
java.lang.String srcExt,
boolean so)
|
Method Summary |
java.io.File |
outputFile(java.lang.String packageName,
Source source)
Return a file object for the output of the source file in the given package. |
java.io.File |
outputFile(java.lang.String packageName,
java.lang.String className,
Source source)
Return a file object for the output of the class in the given package. |
java.io.Writer |
outputWriter(java.io.File outputFile)
Open a writer to the output file. |
java.io.Writer |
outputWriter(java.lang.String packageName,
java.lang.String className,
Source source)
Open a writer to the output file for the class in the given package. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TargetFactory
public TargetFactory(java.io.File outDir,
java.lang.String outExt,
java.lang.String srcExt,
boolean so)
outputWriter
public java.io.Writer outputWriter(java.lang.String packageName,
java.lang.String className,
Source source)
throws java.io.IOException
- Open a writer to the output file for the class in the given package.
outputWriter
public java.io.Writer outputWriter(java.io.File outputFile)
throws java.io.IOException
- Open a writer to the output file.
outputFile
public java.io.File outputFile(java.lang.String packageName,
Source source)
- Return a file object for the output of the source file in the given package.
outputFile
public java.io.File outputFile(java.lang.String packageName,
java.lang.String className,
Source source)
- Return a file object for the output of the class in the given package.