Package jflex
Class Main
- java.lang.Object
-
- jflex.Main
-
public class Main extends java.lang.ObjectThis is the command-line interface.It is responsible for parsing the commandline, getting input files, starting up the GUI if necessary, etc. and invokes
LexGeneratoraccordingly.- Version:
- JFlex 1.9.1
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidgenerate(java.lang.String[] argv)generate.static voidmain(java.lang.String[] argv)Starts the generation process with the files inargvor pops up a window to choose a file, whenargvdoesn't have any file entries.private static java.util.List<java.io.File>parseOptions(java.lang.String[] argv)parseOptions.static voidprintSystemInfo()Print system information (e.g.private static voidprintUnicodePropertyValuesAndAliases(java.lang.String unicodeVersion)Prints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.private static voidprintUsage()Prints the cli usage on stdout.
-
-
-
Method Detail
-
parseOptions
private static java.util.List<java.io.File> parseOptions(java.lang.String[] argv) throws SilentExitparseOptions.- Parameters:
argv- an array ofStringobjects.- Returns:
- a
Listobject. - Throws:
SilentExit- if any.
-
printUnicodePropertyValuesAndAliases
private static void printUnicodePropertyValuesAndAliases(java.lang.String unicodeVersion) throws UnicodeProperties.UnsupportedUnicodeVersionExceptionPrints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.- Parameters:
unicodeVersion- The Unicode version to print property values and aliases for- Throws:
UnicodeProperties.UnsupportedUnicodeVersionException- if unicodeVersion is not supported
-
printUsage
private static void printUsage()
Prints the cli usage on stdout.
-
generate
public static void generate(java.lang.String[] argv) throws SilentExitgenerate.- Parameters:
argv- an array ofStringobjects.- Throws:
SilentExit- if any.
-
main
public static void main(java.lang.String[] argv)
Starts the generation process with the files inargvor pops up a window to choose a file, whenargvdoesn't have any file entries.- Parameters:
argv- the commandline.
-
printSystemInfo
public static void printSystemInfo()
Print system information (e.g. in case of unexpected exceptions)
-
-