public class Skeleton
extends java.lang.Object
PrintWriter
.Emitter
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
line
The skeleton
|
Constructor and Description |
---|
Skeleton(java.io.PrintWriter out)
Creates a new skeleton (iterator) instance.
|
Modifier and Type | Method and Description |
---|---|
void |
emitNext()
Emits the next part of the skeleton
|
static void |
makePrivate()
Make the skeleton private.
|
static void |
readDefault()
(Re)load the default skeleton.
|
static void |
readSkel(java.io.BufferedReader reader)
Reads an external skeleton file from a BufferedReader.
|
static void |
readSkelFile(java.io.File skeletonFile)
Reads an external skeleton file for later use with this class.
|
static java.lang.String |
replace(java.lang.String a,
java.lang.String b,
java.lang.String c)
Replaces a with b in c.
|
public Skeleton(java.io.PrintWriter out)
out
- the writer to write the skeleton-parts topublic void emitNext()
public static void makePrivate()
public static void readSkelFile(java.io.File skeletonFile)
skeletonFile
- the file to read (must be != null and readable)public static void readSkel(java.io.BufferedReader reader) throws java.io.IOException
reader
- the reader to read from (must be != null)java.io.IOException
- if an IO error occursGeneratorException
- if the number of skeleton sections does not matchpublic static java.lang.String replace(java.lang.String a, java.lang.String b, java.lang.String c)
a
- the String to be replacedb
- the replacementc
- the String in which to replace a by bpublic static void readDefault()