public class Skeleton extends Object
PrintWriter
.Emitter
Constructor and Description |
---|
Skeleton(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(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.
|
public static String[] line
public Skeleton(PrintWriter out)
out
- the writer to write the skeleton-parts topublic void emitNext()
public static void makePrivate()
public static void readSkelFile(File skeletonFile)
skeletonFile
- the file to read (must be != null and readable)public static void readSkel(BufferedReader reader) throws IOException
reader
- the reader to read from (must be != null)IOException
- if an IO error occursGeneratorException
- if the number of skeleton sections does not matchpublic static String replace(String a, String b, String c)
a
- the String to be replacedb
- the replacementc
- the String in which to replace a by bpublic static void readDefault()
Copyright © 1998–2016. All rights reserved.