Enum Class ParserFlags

java.lang.Object
java.lang.Enum<ParserFlags>
com.igormaznitsa.jbbp.plugin.common.converters.ParserFlags
All Implemented Interfaces:
Serializable, Comparable<ParserFlags>, Constable

public enum ParserFlags extends Enum<ParserFlags>
Allowed parser flags.
Since:
1.3.0
  • Enum Constant Details

    • SKIP_REMAINING_FIELDS_IF_EOF

      public static final ParserFlags SKIP_REMAINING_FIELDS_IF_EOF
      Do not throw exception if input stream ended unexpectedly and not all fields have been read.
  • Method Details

    • values

      public static ParserFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParserFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • makeFromSet

      public static int makeFromSet(@Nullable Set<ParserFlags> set)
    • getFlag

      public int getFlag()
      Get the flag value.
      Returns:
      the flag value as integer