Package jflex
Class Options
java.lang.Object
jflex.Options
Collects all global JFlex options. Can be set from command line parser, ant task, gui, etc.
- Version:
- JFlex 1.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanIf true, additional verbose debug information is produced.private static 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 printedstatic booleanIf true, jflex will print time statistics about the generation processstatic booleanWhether to warn about unused macros.static booleanIf false, only error/warning output will be generated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilegetDir()getDir.static voidSets all options back to default values.static voidSet output directorystatic voidSet output directorystatic voidsetEncoding(String encodingName) Sets encoding for input files, and check availability of encoding on this JVM.static voidsetSkeleton(File skel) setSkeleton.
-
Field Details
-
DEBUG
public static final boolean DEBUGIf true, additional verbose debug information is produced. This is a compile time option.- See Also:
-
directory
output directory -
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 -
unused_warning
public static boolean unused_warningWhether to warn about unused macros. -
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
public Options()
-
-
Method Details
-
getDir
getDir.- Returns:
- a
Fileobject.
-
setDir
Set output directory- Parameters:
dirName- the name of the directory to write output files to
-
setDir
Set output directory- Parameters:
d- the directory to write output files to
-
setEncoding
Sets encoding for input files, and check availability of encoding on this JVM. -
setDefaults
public static void setDefaults()Sets all options back to default values. -
setSkeleton
setSkeleton.- Parameters:
skel- aFileobject.
-