Package jflex.gui

Class GeneratorThread

java.lang.Object
java.lang.Thread
jflex.gui.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.2
  • Field Details

    • running

      private static volatile boolean running
      there must be at most one instance of this Thread running
    • inputFile

      String inputFile
      input file setting from GUI
    • outputDir

      String outputDir
      output directory
    • parent

      final MainFrame parent
      main UI component, likes to be notified when generator finishes
  • Constructor Details

    • 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 Details

    • 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