Class 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 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 file
        input - fall back location if path = null (expected to be a file in the directory to write to)
        Returns:
        The constructed File
      • sourceFileString

        public static String sourceFileString​(File file)
      • emit

        public void emit()
        Main Emitter method.