EnumCase

@objcMembers
public final class EnumCase : NSObject, SourceryModel, AutoDescription, Annotated

Defines enum case

  • Enum case name

    Declaration

    Swift

    public let name: String
  • Enum case raw value, if any

    Declaration

    Swift

    public let rawValue: String?
  • Enum case associated values

    Declaration

    Swift

    public let associatedValues: [AssociatedValue]
  • Enum case annotations

    Declaration

    Swift

    public var annotations: Annotations
  • Whether enum case is indirect

    Declaration

    Swift

    public let indirect: Bool
  • Whether enum case has associated value

    Declaration

    Swift

    public var hasAssociatedValue: Bool { get }