Package jflex.option
Class Options
java.lang.Object
jflex.option.Options
Collects all global JFlex options.
Can be set from command line parser, ant task, gui, etc.
- Version:
- JFlex 1.9.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic File
output directorystatic boolean
If true, jflex will write graphviz .dot files for generated automatastatic boolean
If true, you will be flooded with information (e.g.static Charset
The encoding to use for input and output files.static boolean
strict JLex compatibilitystatic boolean
If true, dot (.) metachar matches [^\n] instead of [^\r\n ]|"\r\n"static boolean
don't write backup files if this is truestatic boolean
don't run minimization algorithm if this is truestatic boolean
If true, progress dots will be printedprivate static File
The root source directory.private static final Set
<ErrorMessages> Warnings that should not be printed.static boolean
If true, jflex will print time statistics about the generation processstatic boolean
If false, only error/warning output will be generated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
enable
(ErrorMessages msg) Configure the given warning message to be enabled.static File
getDir()
Get the output directory.static File
Returns the root directory that contains source code.static boolean
Returns true if the given warning message is suppressed (should not be printed and counted).static void
Reset the root source directory to the Java working directory.static void
setRootDirectory
(File rootDir) Set the root source directory.static void
suppress
(ErrorMessages msg) Configure the given warning message to be suppressed.
-
Field Details
-
suppressedWarnings
Warnings that should not be printed. -
directory
output directory -
rootDirectory
The root source directory.In a maven project, this is the directory that contains
src
andtarget
. -
jlex
public static boolean jlexstrict JLex compatibility -
no_minimize
public static boolean no_minimizedon't run minimization algorithm if this is true -
no_backup
public static boolean no_backupdon't write backup files if this is true -
verbose
public static boolean verboseIf false, only error/warning output will be generated -
progress
public static boolean progressIf true, progress dots will be printed -
time
public static boolean timeIf true, jflex will print time statistics about the generation process -
dot
public static boolean dotIf true, jflex will write graphviz .dot files for generated automata -
dump
public static boolean dumpIf true, you will be flooded with information (e.g. dfa tables). -
legacy_dot
public static boolean legacy_dotIf true, dot (.) metachar matches [^\n] instead of [^\r\n ]|"\r\n" -
encoding
The encoding to use for input and output files.
-
-
Constructor Details
-
Options
private Options()Prevent instantiation of static-only calss
-
-
Method Details
-
getDir
Get the output directory.- Returns:
- the output directory as java.io.File
-
getRootDirectory
Returns the root directory that contains source code. This is the java working (from system propertyuser.dir
) by default. -
setRootDirectory
Set the root source directory.- Parameters:
rootDir
- the root source directory.
-
resetRootDirectory
public static void resetRootDirectory()Reset the root source directory to the Java working directory. -
isSuppressed
Returns true if the given warning message is suppressed (should not be printed and counted).- Parameters:
msg
- the error/warning message to check- Returns:
- true iff the warning is suppressed
-
suppress
Configure the given warning message to be suppressed.- Parameters:
msg
- the warning message to suppress.
-
enable
Configure the given warning message to be enabled.- Parameters:
msg
- the warning message to enable.
-