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 Fileoutput directorystatic booleanIf true, jflex will write graphviz .dot files for generated automatastatic booleanIf true, you will be flooded with information (e.g.static CharsetThe encoding to use for input and output files.static booleanstrict JLex compatibilitystatic booleanIf true, dot (.) metachar matches [^\n] instead of [^\r\n ]|"\r\n"static booleandon't write backup files if this is truestatic booleandon't run minimization algorithm if this is truestatic booleanIf true, progress dots will be printedprivate static FileThe root source directory.private static final Set<ErrorMessages> Warnings that should not be printed.static booleanIf true, jflex will print time statistics about the generation processstatic booleanIf false, only error/warning output will be generated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenable(ErrorMessages msg) Configure the given warning message to be enabled.static FilegetDir()Get the output directory.static FileReturns the root directory that contains source code.static booleanReturns true if the given warning message is suppressed (should not be printed and counted).static voidReset the root source directory to the Java working directory.static voidsetRootDirectory(File rootDir) Set the root source directory.static voidsuppress(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
srcandtarget. -
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.
-