JFlex
Class Skeleton

java.lang.Object
  extended byJFlex.Skeleton

public class Skeleton
extends java.lang.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:
Emitter

Field Summary
static java.lang.String[] line
          The skeleton of a scanner
 
Constructor Summary
Skeleton(java.io.PrintWriter out)
          Creates a new skeleton instance.
 
Method Summary
 void emitNext()
          Emits the next part of the skeleton
static void readSkelFile(java.io.File skeletonFile)
          Reads an external skeleton file for later use with this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

line

public static java.lang.String[] line
The skeleton of a scanner

Constructor Detail

Skeleton

public Skeleton(java.io.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(java.io.File skeletonFile)
Reads an external skeleton file for later use with this class.