|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.frontend.TargetFactory
public class TargetFactory
A TargetFactory
is responsible for opening output files.
Constructor Summary | |
---|---|
TargetFactory(java.io.File outDir,
java.lang.String outExt,
boolean so)
|
Method Summary | |
---|---|
CodeWriter |
outputCodeWriter(java.io.File f,
int width)
|
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 |
Constructor Detail |
---|
public TargetFactory(java.io.File outDir, java.lang.String outExt, boolean so)
Method Detail |
---|
public java.io.Writer outputWriter(java.lang.String packageName, java.lang.String className, Source source) throws java.io.IOException
java.io.IOException
public CodeWriter outputCodeWriter(java.io.File f, int width) throws java.io.IOException
java.io.IOException
public java.io.Writer outputWriter(java.io.File outputFile) throws java.io.IOException
java.io.IOException
public java.io.File outputFile(java.lang.String packageName, Source source)
public java.io.File outputFile(java.lang.String packageName, java.lang.String className, Source source)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |