Enum Class GenericRequirementLayoutKind

java.lang.Object
java.lang.Enum<GenericRequirementLayoutKind>
ghidra.app.util.bin.format.swift.types.GenericRequirementLayoutKind
All Implemented Interfaces:
StructConverter, Serializable, Comparable<GenericRequirementLayoutKind>, Constable

public enum GenericRequirementLayoutKind extends Enum<GenericRequirementLayoutKind> implements StructConverter
Swift GenericRequirementLayoutKind values
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static GenericRequirementLayoutKind[] 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 GenericRequirementLayoutKind 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()
      Returns the kind value.
      Returns:
      the kind value
    • valueOf

      public static GenericRequirementLayoutKind valueOf(int value)
      Returns the GenericRequirementLayoutKind with the given kind value, or null if it does not exist.
      Parameters:
      value - The kind value to get the value of
      Returns:
      the GenericRequirementLayoutKind with the given kind value, or null if it does not exist
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

       class A {
           int foo;
           double bar;
       }
       

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException - if an IO-related error occurs
      See Also: