Class TargetGenericRequirementsDescriptor

java.lang.Object
ghidra.app.util.bin.format.swift.SwiftTypeMetadataStructure
ghidra.app.util.bin.format.swift.types.TargetGenericRequirementsDescriptor
All Implemented Interfaces:
StructConverter

public class TargetGenericRequirementsDescriptor extends SwiftTypeMetadataStructure
  • Constructor Details

  • Method Details

    • getFlags

      public GenericRequirementFlags getFlags()
      Returns the flags.
      Returns:
      the flags
    • getParam

      public int getParam()
      Returns the type that's constrained, described as a mangled name.
      Returns:
      the type that's constrained, described as a mangled name
    • getThing

      public int getThing()
      Returns the thing (same-type, class, protocol, conformance) the param is constrained to.
      Returns:
      the thing (same-type, class, protocol, conformance) the param is constrained to
    • getLayout

      public GenericRequirementLayoutKind getLayout()
      Returns the layout if the requirement has Layout kind; otherwise, null.
      Returns:
      the layout if the requirement has Layout kind; otherwise, null
    • getGenericParamIndex

      public int getGenericParamIndex()
      Returns the index of the generic parameter whose set of invertible protocols has disabled checks.

      Only valid if the requirement has GenericRequirementKind.IntertedProtocol kind

      Returns:
      the index of the generic parameter whose set of invertible protocols has disabled checks
    • getProtocols

      public int getProtocols()
      Returns the set of invertible protocols whose check is disabled.

      Only valid if the requirement has GenericRequirementKind.IntertedProtocol kind

      Returns:
      the set of invertible protocols whose check is disabled
    • getStructureName

      public String getStructureName()
      Description copied from class: SwiftTypeMetadataStructure
      Returns the name of the SwiftTypeMetadataStructure.
      Specified by:
      getStructureName in class SwiftTypeMetadataStructure
      Returns:
      the name of the SwiftTypeMetadataStructure
    • getDescription

      public String getDescription()
      Description copied from class: SwiftTypeMetadataStructure
      Returns a short description of the SwiftTypeMetadataStructure.
      Specified by:
      getDescription in class SwiftTypeMetadataStructure
      Returns:
      a short description of the SwiftTypeMetadataStructure
    • 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.

      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: