Enum Class ContextDescriptorKind

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

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

    • Module

      public static final ContextDescriptorKind Module
      This context descriptor represents a module
    • Extension

      public static final ContextDescriptorKind Extension
      This context descriptor represents an extension
    • Anonymous

      public static final ContextDescriptorKind Anonymous
      This context descriptor represents an anonymous possibly-generic context such as a function body
    • Protocol

      public static final ContextDescriptorKind Protocol
      This context descriptor represents a protocol context
    • OpaqueType

      public static final ContextDescriptorKind OpaqueType
      This context descriptor represents an opaque type alias
    • Class

      public static final ContextDescriptorKind Class
      This context descriptor represents a class
    • Struct

      public static final ContextDescriptorKind Struct
      This context descriptor represents a struct
    • Enum

      public static final ContextDescriptorKind Enum
      This context descriptor represents an enum
  • Method Details

    • values

      public static ContextDescriptorKind[] 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 ContextDescriptorKind 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 ContextDescriptorKind valueOf(int value)
      Returns the ContextDescriptorKind with the given kind value, or null if it does not exist.
      Parameters:
      value - The kind value to get the value of
      Returns:
      the ContextDescriptorKind 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: