Back to Sourcery

AssociatedValue

docs/Classes/AssociatedValue.html

2.3.03.5 KB
Original Source

AssociatedValue

@objcMembers
public final class AssociatedValue : NSObject, SourceryModel, AutoDescription, Typed, Annotated, Diffable
extension AssociatedValue: NSCoding

Defines enum case associated value

`

                localName
                `

Associated value local name. This is a name to be used to construct enum case value

Declaration

Swift

public let localName: String?

`

                externalName
                `

Associated value external name. This is a name to be used to access value in value-bindig

Declaration

Swift

public let externalName: String?

`

                typeName
                `

Associated value type name

Declaration

Swift

public let typeName: TypeName

`

                type
                `

Associated value type, if known

Declaration

Swift

public var type: Type?

`

                defaultValue
                `

Associated value default value

Declaration

Swift

public let defaultValue: String?

`

                annotations
                `

Annotations, that were created with // sourcery: annotation1, other = “annotation value”, alterantive = 2

Declaration

Swift

public var annotations: Annotations

`

                diffAgainst(_:)
                `

Declaration

Swift

public func diffAgainst(_ object: Any?) -> DiffableResult

`

                isOptional
                `

Whether type is optional. Shorthand for typeName.isOptional

Declaration

Swift

public var isOptional: Bool { get }

`

                isImplicitlyUnwrappedOptional
                `

Whether type is implicitly unwrapped optional. Shorthand for typeName.isImplicitlyUnwrappedOptional

Declaration

Swift

public var isImplicitlyUnwrappedOptional: Bool { get }

`

                unwrappedTypeName
                `

Type name without attributes and optional type information. Shorthand for typeName.unwrappedTypeName

Declaration

Swift

public var unwrappedTypeName: String { get }

`

                actualTypeName
                `

Actual type name if declaration uses typealias, otherwise just a typeName. Shorthand for typeName.actualTypeName

Declaration

Swift

public var actualTypeName: TypeName? { get }

`

                isTuple
                `

Whether type is a tuple. Shorthand for typeName.isTuple

Declaration

Swift

public var isTuple: Bool { get }

`

                isClosure
                `

Whether type is a closure. Shorthand for typeName.isClosure

Declaration

Swift

public var isClosure: Bool { get }

`

                isArray
                `

Whether type is an array. Shorthand for typeName.isArray

Declaration

Swift

public var isArray: Bool { get }

`

                isSet
                `

Whether type is a set. Shorthand for typeName.isSet

Declaration

Swift

public var isSet: Bool { get }

`

                isDictionary
                `

Whether type is a dictionary. Shorthand for typeName.isDictionary

Declaration

Swift

public var isDictionary: Bool { get }

Copyright © 2016-2021 Pixle. All rights reserved.

Generated by jazzy ♪♫ v0.14.0, a Realm project.