Package jflex.generator
Class Emitter
- java.lang.Object
-
- jflex.generator.Emitter
-
public final class Emitter extends Object
This class manages the actual code generation, putting the scanner together, filling in skeleton sections etc.Table compression, String packing etc. is also done here.
- Version:
- JFlex 1.8.1
- Author:
- Gerwin Klein
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emit()
Main Emitter method.static File
normalize(String name, File input)
Constructs a file in Options.getDir() or in the same directory as another file.static String
sourceFileString(File file)
-
-
-
Method Detail
-
normalize
public static File normalize(String name, File input)
Constructs a file in Options.getDir() or in the same directory as another file. Makes a backup if the file already exists.- Parameters:
name
- the name (without path) of the fileinput
- fall back location ifpath = null
(expected to be a file in the directory to write to)- Returns:
- The constructed File
-
emit
public void emit()
Main Emitter method.
-
-