Package jflex

Class Main


  • public class Main
    extends java.lang.Object
    This is the command-line interface.

    It is responsible for parsing the commandline, getting input files, starting up the GUI if necessary, etc. and invokes LexGenerator accordingly.

    Version:
    JFlex 1.8.2
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void generate​(java.lang.String[] argv)
      generate.
      static void main​(java.lang.String[] argv)
      Starts the generation process with the files in argv or pops up a window to choose a file, when argv doesn't have any file entries.
      private static java.util.List<java.io.File> parseOptions​(java.lang.String[] argv)
      parseOptions.
      static void printSystemInfo()
      Print system information (e.g.
      private static void printUnicodePropertyValuesAndAliases​(java.lang.String unicodeVersion)
      Prints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.
      private static void printUsage()
      Prints the cli usage on stdout.
      • Methods inherited from class java.lang.Object

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

      • Main

        private Main()
    • Method Detail

      • parseOptions

        private static java.util.List<java.io.File> parseOptions​(java.lang.String[] argv)
                                                          throws SilentExit
        parseOptions.
        Parameters:
        argv - an array of String objects.
        Returns:
        a List object.
        Throws:
        SilentExit - if any.
      • printUsage

        private static void printUsage()
        Prints the cli usage on stdout.
      • generate

        public static void generate​(java.lang.String[] argv)
                             throws SilentExit
        generate.
        Parameters:
        argv - an array of String objects.
        Throws:
        SilentExit - if any.
      • main

        public static void main​(java.lang.String[] argv)
        Starts the generation process with the files in argv or pops up a window to choose a file, when argv doesn't have any file entries.
        Parameters:
        argv - the commandline.
      • printSystemInfo

        public static void printSystemInfo()
        Print system information (e.g. in case of unexpected exceptions)