JFlex

Class Skeleton

public class Skeleton extends Object

This class stores the skeleton of an generated scanner. The skeleton consists of several parts that can be emitted to a file. Usually there belongs a portion of generated code (which is produced in class Emitter) to every two parts of skeleton code.

See Also:

Field Summary
static String[]line
The skeleton of a scanner
Constructor Summary
Skeleton(PrintWriter out)
Creates a new skeleton instance.
Method Summary
voidemitNext()
Emits the next part of the skeleton
static voidreadSkelFile(File skeletonFile)
Reads an external skeleton file for later use with this class.

Field Detail

line

public static String[] line
The skeleton of a scanner

Constructor Detail

Skeleton

public Skeleton(PrintWriter out)
Creates a new skeleton instance.

Parameters: out the writer to write the skeleton-parts to

Method Detail

emitNext

public void emitNext()
Emits the next part of the skeleton

readSkelFile

public static void readSkelFile(File skeletonFile)
Reads an external skeleton file for later use with this class.