public class StringWriterOutputManager extends Object implements OutputManager
OutputManager which can store source files as StringWriter buy source file name.| Constructor and Description |
|---|
StringWriterOutputManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all source files in this
OutputManager. |
Writer |
createOutput(String name)
Create a new output destination based on a name.
|
CharSequence |
getSource(String name)
Get a
CharSequence which represents the source file. |
Map<String,CharSequence> |
getSources()
Get a
Map of all source files. |
void |
setPackageName(String packageName)
Set the package name to be used for source files.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithOutputpublic Writer createOutput(String name)
Writer.close().createOutput in interface OutputManagername - of the given output.Writer to which the code generation should be output.public void setPackageName(String packageName)
packageName - to be used for source files.public CharSequence getSource(String name)
CharSequence which represents the source file.name - of the source file.CharSequence which represents the source file.public Map<String,CharSequence> getSources()
Map of all source files.Map of all source files.public void clear()
OutputManager.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.