Package jflex.core
Class OptionUtils
- java.lang.Object
-
- jflex.core.OptionUtils
-
public class OptionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateOptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidenableAllWarnings()Enable all warnings.static voidenableWarning(java.lang.String warning)Enable a warning type.static voidset_unused_warning(boolean unusedWarning)Warn on unused macros or not.static voidsetDefaultOptions()Sets all options back to default values.static voidsetDir(java.io.File d)Set output directorystatic voidsetDir(java.lang.String dirName)Set output directorystatic voidsetEncoding(java.lang.String encodingName)Sets encoding for input files, and check availability of encoding on this JVM.static voidsetSkeleton(java.io.File skel)static voidsuppressAllWarnings()Suppress all warnings.static voidsuppressWarning(java.lang.String warning)Suppress a warning type.
-
-
-
Method Detail
-
setEncoding
public static void setEncoding(java.lang.String encodingName)
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
public static void setSkeleton(java.io.File skel)
-
setDir
public static void setDir(java.io.File d)
Set output directory- Parameters:
d- the directory to write output files to
-
setDir
public static void setDir(java.lang.String dirName)
Set output directory- Parameters:
dirName- the name of the directory to write output files to
-
enableWarning
public static void enableWarning(java.lang.String warning)
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:
ErrorMessages
-
suppressWarning
public static void suppressWarning(java.lang.String warning)
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:
ErrorMessages
-
enableAllWarnings
public static void enableAllWarnings()
Enable all warnings.- See Also:
ErrorMessages
-
suppressAllWarnings
public static void suppressAllWarnings()
Suppress all warnings.- See Also:
ErrorMessages
-
-