Package jflex.gui

Class GeneratorThread

  • All Implemented Interfaces:
    Runnable

    public class GeneratorThread
    extends Thread
    Low priority thread for code generation (low priority that gui has time for screen updates)
    Version:
    JFlex 1.8.1
    Author:
    Gerwin Klein
    • Constructor Detail

      • GeneratorThread

        public GeneratorThread​(MainFrame parent,
                               String inputFile,
                               String outputDir)
        Create a new GeneratorThread, but do not run it yet.
        Parameters:
        parent - the frame, main UI component
        inputFile - input file from UI settings
        outputDir - output directory from UI settings
    • Method Detail

      • run

        public void run()
        Runs the generator thread. Only one instance of it can run at any time.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread