Package jflex.core

Class OptionUtils

java.lang.Object
jflex.core.OptionUtils

public class OptionUtils extends Object
  • Constructor Details

    • OptionUtils

      private OptionUtils()
  • Method Details

    • setEncoding

      public static void setEncoding(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(File skel)
    • setDir

      public static void setDir(File d)
      Set output directory
      Parameters:
      d - the directory to write output files to
    • setDir

      public static void setDir(String dirName)
      Set output directory
      Parameters:
      dirName - the name of the directory to write output files to
    • enableWarning

      public static void enableWarning(String warning)
      Enable a warning type.
      Parameters:
      warning - the warning to enable, must match one of the ErrorMessages enum values.
      Throws:
      GeneratorException - if the warning is not known or not configurable.
      See Also:
    • suppressWarning

      public static void suppressWarning(String warning)
      Suppress a warning type.
      Parameters:
      warning - the warning to suppress, must match one of the ErrorMessages 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: