Package jflex.core
Class OptionUtils
java.lang.Object
jflex.core.OptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Enable all warnings.static void
enableWarning
(String warning) Enable a warning type.static void
set_unused_warning
(boolean unusedWarning) Warn on unused macros or not.static void
Sets all options back to default values.static void
Set output directorystatic void
Set output directorystatic void
setEncoding
(String encodingName) Sets encoding for input files, and check availability of encoding on this JVM.static void
setSkeleton
(File skel) static void
Suppress all warnings.static void
suppressWarning
(String warning) Suppress a warning type.
-
Constructor Details
-
OptionUtils
private OptionUtils()
-
-
Method Details
-
setEncoding
Sets encoding for input files, and check availability of encoding on this JVM. -
setDefaultOptions
public static void setDefaultOptions()Sets all options back to default values. -
set_unused_warning
public static void set_unused_warning(boolean unusedWarning) Warn on unused macros or not.- Parameters:
unusedWarning
- whether unused macros should be warned about.
-
setSkeleton
-
setDir
Set output directory- Parameters:
d
- the directory to write output files to
-
setDir
Set output directory- Parameters:
dirName
- the name of the directory to write output files to
-
enableWarning
Enable a warning type.- Parameters:
warning
- the warning to enable, must match one of theErrorMessages
enum values.- Throws:
GeneratorException
- if the warning is not known or not configurable.- See Also:
-
suppressWarning
Suppress a warning type.- Parameters:
warning
- the warning to suppress, must match one of theErrorMessages
enum values.- Throws:
GeneratorException
- if the warning is not known or not configurable.- See Also:
-
enableAllWarnings
public static void enableAllWarnings()Enable all warnings.- See Also:
-
suppressAllWarnings
public static void suppressAllWarnings()Suppress all warnings.- See Also:
-