Class LexGenerator

java.lang.Object
jflex.generator.LexGenerator

public class LexGenerator extends Object
This is the generator of JFlex, controlling the scanner generation process.
Version:
JFlex 1.8.2
  • Field Details

    • inputFile

      private final File inputFile
    • dfa

      private DFA dfa
    • totalTime

      private final Timer totalTime
  • Constructor Details

    • LexGenerator

      public LexGenerator(File inputFile)
  • Method Details

    • generate

      public String generate()
      Generates a scanner for the specified input file.
      Returns:
      the file name of the generated Java sources.
    • minimizedDfaStatesCount

      public int minimizedDfaStatesCount()
    • checkNotNull

      private static Object checkNotNull(Object object, String msg)
    • checkState

      private static void checkState(boolean state, String msg)