Class OptionUtils
java.lang.Object
jflex.core.OptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnable all warnings.static voidenableWarning(String warning) Enable a warning type.static voidset_unused_warning(boolean unusedWarning) Warn on unused macros or not.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) static voidSuppress all warnings.static voidsuppressWarning(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 theErrorMessagesenum 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 theErrorMessagesenum 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:
-