Back to Sourcery

Types

docs/Classes/Types.html

2.3.02.8 KB
Original Source

Types

@objcMembers
public final class Types : NSObject, SourceryModel, Diffable
extension Types: NSCoding

Collection of scanned types for accessing in templates

`

                typealiases
                `

All known typealiases

Declaration

Swift

public let typealiases: [Typealias]

`

                diffAgainst(_:)
                `

Declaration

Swift

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

`

                all
                `

All known types, excluding protocols or protocol compositions.

Declaration

Swift

public lazy internal(set) var all: [Type] { get set }

`

                protocols
                `

All known protocols

Declaration

Swift

public lazy internal(set) var protocols: [Protocol] { get set }

`

                protocolCompositions
                `

All known protocol compositions

Declaration

Swift

public lazy internal(set) var protocolCompositions: [ProtocolComposition] { get set }

`

                classes
                `

All known classes

Declaration

Swift

public lazy internal(set) var classes: [Class] { get set }

`

                structs
                `

All known structs

Declaration

Swift

public lazy internal(set) var structs: [Struct] { get set }

`

                enums
                `

All known enums

Declaration

Swift

public lazy internal(set) var enums: [Enum] { get set }

`

                extensions
                `

All known extensions

Declaration

Swift

public lazy internal(set) var extensions: [Type] { get set }

`

                based
                `

Types based on any other type, grouped by its name, even if they are not known. types.based.MyType returns list of types based on MyType

Declaration

Swift

public lazy internal(set) var based: TypesCollection { get set }

`

                inheriting
                `

Classes inheriting from any known class, grouped by its name. types.inheriting.MyClass returns list of types inheriting from MyClass

Declaration

Swift

public lazy internal(set) var inheriting: TypesCollection { get set }

`

                implementing
                `

Types implementing known protocol, grouped by its name. types.implementing.MyProtocol returns list of types implementing MyProtocol

Declaration

Swift

public lazy internal(set) var implementing: TypesCollection { get set }

Copyright © 2016-2021 Pixle. All rights reserved.

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