Enum Class ValuePropertyFlags

java.lang.Object
java.lang.Enum<ValuePropertyFlags>
org.webkitgtk.jsc.ValuePropertyFlags
All Implemented Interfaces:
Serializable, Comparable<ValuePropertyFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum ValuePropertyFlags extends Enum<ValuePropertyFlags> implements Enumeration
Flags used when defining properties with jsc_value_object_define_property_data() and jsc_value_object_define_property_accessor().
  • Enum Constant Details

    • CONFIGURABLE

      public static final ValuePropertyFlags CONFIGURABLE
      the type of the property descriptor may be changed and the property may be deleted from the corresponding object.
    • ENUMERABLE

      public static final ValuePropertyFlags ENUMERABLE
      the property shows up during enumeration of the properties on the corresponding object.
    • WRITABLE

      public static final ValuePropertyFlags WRITABLE
      the value associated with the property may be changed with an assignment operator. This doesn't have any effect when passed to jsc_value_object_define_property_accessor().
  • Method Details

    • values

      public static ValuePropertyFlags[] 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 ValuePropertyFlags 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
    • getValue

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

      public static Set<ValuePropertyFlags> of(int flags)
      Create a new EnumSet<ValuePropertyFlags> for the provided bitfield
      Parameters:
      flags - the ValuePropertyFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<ValuePropertyFlags> of(MemorySegment address)
      Create a new EnumSet<ValuePropertyFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address