Enum Class VariantParseError

java.lang.Object
java.lang.Enum<VariantParseError>
org.gnome.glib.VariantParseError
All Implemented Interfaces:
Serializable, Comparable<VariantParseError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum VariantParseError extends Enum<VariantParseError> implements Enumeration
Error codes returned by parsing text-format GVariants.
  • Enum Constant Details

    • FAILED

      public static final VariantParseError FAILED
      generic error (unused)
    • BASIC_TYPE_EXPECTED

      public static final VariantParseError BASIC_TYPE_EXPECTED
      a non-basic GVariantType was given where a basic type was expected
    • CANNOT_INFER_TYPE

      public static final VariantParseError CANNOT_INFER_TYPE
      cannot infer the GVariantType
    • DEFINITE_TYPE_EXPECTED

      public static final VariantParseError DEFINITE_TYPE_EXPECTED
      an indefinite GVariantType was given where a definite type was expected
    • INPUT_NOT_AT_END

      public static final VariantParseError INPUT_NOT_AT_END
      extra data after parsing finished
    • INVALID_CHARACTER

      public static final VariantParseError INVALID_CHARACTER
      invalid character in number or unicode escape
    • INVALID_FORMAT_STRING

      public static final VariantParseError INVALID_FORMAT_STRING
      not a valid GVariant format string
    • INVALID_OBJECT_PATH

      public static final VariantParseError INVALID_OBJECT_PATH
      not a valid object path
    • INVALID_SIGNATURE

      public static final VariantParseError INVALID_SIGNATURE
      not a valid type signature
    • INVALID_TYPE_STRING

      public static final VariantParseError INVALID_TYPE_STRING
      not a valid GVariant type string
    • NO_COMMON_TYPE

      public static final VariantParseError NO_COMMON_TYPE
      could not find a common type for array entries
    • NUMBER_OUT_OF_RANGE

      public static final VariantParseError NUMBER_OUT_OF_RANGE
      the numerical value is out of range of the given type
    • NUMBER_TOO_BIG

      public static final VariantParseError NUMBER_TOO_BIG
      the numerical value is out of range for any type
    • TYPE_ERROR

      public static final VariantParseError TYPE_ERROR
      cannot parse as variant of the specified type
    • UNEXPECTED_TOKEN

      public static final VariantParseError UNEXPECTED_TOKEN
      an unexpected token was encountered
    • UNKNOWN_KEYWORD

      public static final VariantParseError UNKNOWN_KEYWORD
      an unknown keyword was encountered
    • UNTERMINATED_STRING_CONSTANT

      public static final VariantParseError UNTERMINATED_STRING_CONSTANT
      unterminated string constant
    • VALUE_EXPECTED

      public static final VariantParseError VALUE_EXPECTED
      no value given
    • RECURSION

      public static final VariantParseError RECURSION
      variant was too deeply nested; GVariant is only guaranteed to handle nesting up to 64 levels (Since: 2.64)
  • Method Details

    • values

      public static VariantParseError[] 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 VariantParseError 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
    • of

      public static VariantParseError of(int value)
      Create a new VariantParseError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static VariantParseError of(MemorySegment address)
      Create a new VariantParseError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address