| Modifier and Type | Field and Description |
|---|---|
| private final String | prolog
prolog comment |
| Access | Constructor and Description |
|---|---|
| public | PrologCodeWriter(CodeWriter
This CodeWriter will be used to actually create a storage for files.
PrologCodeWriter simply decorates this underlying CodeWriter by
adding prolog comments. core, String Strings that will be added as comments.
This string may contain newlines to produce multi-line comments.
'//' will be inserted at the beginning of each line to make it
a valid Java comment, so the caller can just pass strings like
"abc\ndef" prolog)
|
| Modifier and Type | Method and Description |
|---|---|
| public Writer | openSource(JPackage pkg, String fileName)
Overrides com. Called by CodeModel to store the specified file. |
| prolog | back to summary |
|---|---|
| private final String prolog prolog comment | |
| PrologCodeWriter | back to summary |
|---|---|
public PrologCodeWriter(CodeWriter core, String prolog)
| |
| openSource | back to summary |
|---|---|
| public Writer openSource(JPackage pkg, String fileName) throws IOException Overrides com. Doc from com. Called by CodeModel to store the specified file. The callee must allocate a storage to store the specified file. The returned stream will be closed before the next file is stored. So the callee can assume that only one OutputStream is active at any given time.
| |