WrappedClass

class WrappedClass : Modifiable

Wraps class type of Sourcery

  • Declaration

    Swift

    var annotation: Annotation?
  • Undocumented

    Declaration

    Swift

    internal init(
        inheritedTypes: [String],
        localName: String,
        genericAnnotation: String,
        isGeneric: Bool,
        variables: [WrappedVariable],
        methods: [WrappedMethod]
    )
  • Undocumented

    Declaration

    Swift

    convenience init(from: SourceryRuntime.Class)
  • protocols implemented

    Declaration

    Swift

    var inheritedTypes: [String]
  • name of class

    Declaration

    Swift

    var localName: String
  • annotation if class is generic

    Declaration

    Swift

    var genericAnnotation: String
  • true if class is generic

    Declaration

    Swift

    var isGeneric: Bool
  • variables of class

    Declaration

    Swift

    var variables: [WrappedVariable]
  • methods of class

    Declaration

    Swift

    var methods: [WrappedMethod]
  • contains additional imports besides Foundation if necessary

    Declaration

    Swift

    var specialImports: Set<String>
  • initializer string

    Declaration

    Swift

    lazy var initializer: () -> String { get set }
  • from() string for facade type conversion

    Declaration

    Swift

    lazy var facadeFrom: () -> String { get set }
  • to() string for facade type conversion

    Declaration

    Swift

    lazy var facadeTo: () -> String { get set }
  • id

    Modifiable protocol

    Declaration

    Swift

    var id: String { get }
  • Declaration

    Swift

    var modified: Bool
  • true if class contains a replaced property

    Declaration

    Swift

    var replacedProperty: Bool
  • list of enums inside this class

    Declaration

    Swift

    var nestedEnums: [WrappedEnum]?
  • Declaration

    Swift

    func modify(change: Change)
  • handle added a model

    Declaration

    Swift

    internal func handleAddedProperty(_ addChange: AddChange)

    Parameters

    addChange

    AddChange affecting this model

  • handle deleting a property

    Declaration

    Swift

    internal func handleDeletedProperty(_ delChange: DeleteChange)

    Parameters

    delChange

    DeleteChange affecting a property of this model

  • handle deleting a model

    Declaration

    Swift

    internal func handleDeletedChange(_ delChange: DeleteChange)

    Parameters

    delChange

    DeleteChange affecting this model

  • handle deleting an ofType model

    Declaration

    Swift

    internal func handleDeletedOfType(_ delChange: DeleteChange)

    Parameters

    delChange

    DeleteChange affecting this model

  • handle replacing a property

    Declaration

    Swift

    internal func handleReplacedProperty(_ replaceChange: ReplaceChange)

    Parameters

    replaceChange

    ReplaceChange affecting a property of this model

  • handle renaming a property

    Declaration

    Swift

    internal func handleRenameProperty(_ renameChange: RenameChange)

    Parameters

    renameChange

    RenameChange affecting a property of this model

  • handle renaming a model

    Declaration

    Swift

    internal func handleRenameChange(_ renameChange: RenameChange)

    Parameters

    renameChange

    RenameChange affecting this model

  • handle replacing a model

    Declaration

    Swift

    internal func handleReplacedChange(_ replaceChange: ReplaceChange)

    Parameters

    replaceChange

    ReplaceChange affecting this model