|
|||||||||
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 | |
---|---|
java.io.File |
getOutputDirectory()
Return the output directory |
java.lang.String |
headerNameForFileName(java.lang.String filename)
Returns a filename to represent a .h file, given the name of a .cpp file that represents the "main class" |
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.File getOutputDirectory()
public java.io.Writer outputWriter(java.lang.String packageName, java.lang.String className, Source source) 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)
public java.lang.String headerNameForFileName(java.lang.String filename)
filename
- -- the input cpp file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |