JFlex
public class Skeleton extends Object
PrintWriter
.
Field Summary | |
---|---|
static String[] | line The skeleton |
Constructor Summary | |
---|---|
Skeleton(PrintWriter out)
Creates a new skeleton (iterator) instance.
|
Method Summary | |
---|---|
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(BufferedReader reader)
Reads an external skeleton file from a BufferedReader.
|
static void | readSkelFile(File skeletonFile)
Reads an external skeleton file for later use with this class.
|
static String | replace(String a, String b, String c)
Replaces a with b in c.
|
Parameters: out the writer to write the skeleton-parts to
Parameters: reader the reader to read from (must be != null)
Throws: IOException if an IO error occurs GeneratorException if the number of skeleton sections does not match
Parameters: skeletonFile the file to read (must be != null and readable)
Parameters: a the String to be replaced b the replacement c the String in which to replace a by b
Returns: a String object with a replaced by b in c