Enum Setting

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Setting>

    public enum Setting
    extends java.lang.Enum<Setting>
    An enumeration of possible program configuration settings, usually read from the command line.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEBUG
      If set, the program will run in the debug mode (printing the tree after each transformation).
      DECODER_DIRECTORY
      An output directory of the generated instruction decoder file.
      DECODER_NAME
      The package + class name of the generated instruction decoder.
      DECODER_PACKAGE
      The generated decoder will be a member of this package.
      DECODER_TEMPLATE
      The external decoder template to use (instead of the internal, default template).
      DISASSEMBLER_DIRECTORY
      An output directory of the generated disassembler file.
      DISASSEMBLER_NAME
      The package + class name of the generated disassembler.
      DISASSEMBLER_PACKAGE
      The generated disassembler will be a member of this package.
      DISASSEMBLER_TEMPLATE
      The external disassembler template to use (instead of the internal, default template).
      IGNORE_UNUSED_RULES
      Ignore unused rules.
      SPECIFICATION
      A specification file.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Setting valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Setting[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SPECIFICATION

        public static final Setting SPECIFICATION
        A specification file.
      • DECODER_NAME

        public static final Setting DECODER_NAME
        The package + class name of the generated instruction decoder.
      • DISASSEMBLER_NAME

        public static final Setting DISASSEMBLER_NAME
        The package + class name of the generated disassembler.
      • DISASSEMBLER_DIRECTORY

        public static final Setting DISASSEMBLER_DIRECTORY
        An output directory of the generated disassembler file.
      • DISASSEMBLER_PACKAGE

        public static final Setting DISASSEMBLER_PACKAGE
        The generated disassembler will be a member of this package.
      • DISASSEMBLER_TEMPLATE

        public static final Setting DISASSEMBLER_TEMPLATE
        The external disassembler template to use (instead of the internal, default template).
      • DEBUG

        public static final Setting DEBUG
        If set, the program will run in the debug mode (printing the tree after each transformation).
      • DECODER_DIRECTORY

        public static final Setting DECODER_DIRECTORY
        An output directory of the generated instruction decoder file.
      • DECODER_PACKAGE

        public static final Setting DECODER_PACKAGE
        The generated decoder will be a member of this package.
      • DECODER_TEMPLATE

        public static final Setting DECODER_TEMPLATE
        The external decoder template to use (instead of the internal, default template).
      • IGNORE_UNUSED_RULES

        public static final Setting IGNORE_UNUSED_RULES
        Ignore unused rules. If enabled, detection of unused rules will be turned off.
    • Method Detail

      • values

        public static Setting[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Setting c : Setting.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Setting valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null