Class LexGenerator


  • public class LexGenerator
    extends java.lang.Object
    This is the generator of JFlex, controlling the scanner generation process.
    Version:
    JFlex 1.8.2
    • Constructor Summary

      Constructors 
      Constructor Description
      LexGenerator​(java.io.File inputFile)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.Object checkNotNull​(java.lang.Object object, java.lang.String msg)  
      private static void checkState​(boolean state, java.lang.String msg)  
      java.lang.String generate()
      Generates a scanner for the specified input file.
      int minimizedDfaStatesCount()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inputFile

        private final java.io.File inputFile
      • dfa

        private DFA dfa
      • totalTime

        private final Timer totalTime
    • Constructor Detail

      • LexGenerator

        public LexGenerator​(java.io.File inputFile)
    • Method Detail

      • generate

        public java.lang.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 java.lang.Object checkNotNull​(java.lang.Object object,
                                                     java.lang.String msg)
      • checkState

        private static void checkState​(boolean state,
                                       java.lang.String msg)