SwiftclassJetCore

class JetCore.BaseObjectGraph

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 55

  1. funcstatic build(withName: String) -> JetCore.AsyncObjectGraphBuilder
  2. varstatic var current: Self { get }
  3. deinitdeinit
  4. fieldlet dependencies: JetCore.DependencyDictionary+0x10
  5. fieldvar name: String+0x18
  6. func_dependencyPersonality<A>(of: A.Type) -> JetCore.Dependency._Personality?
  7. func_downcast<A where A: JetCore.BaseObjectGraph>(to: A.Type) -> A
  8. func_hasDependency<A>(A.Type) -> Bool
  9. func_inject<A where A: JetCore.Injectable>(A.Type) -> A
  10. func_inject<A where A: JetCore.Injectable, A: Sendable>(A.Type) async throws -> A
  11. func_inject<A where A: Sendable>(A.Type) async throws -> A
  12. func_inject<A>(A.Type) -> A
  13. func_injectIfAvailable<A where A: Sendable>(A.Type) async throws -> A?
  14. func_injectIfAvailable<A>(A.Type) -> A?
  15. func_withDependenciesResolved<A where A: Sequence, A.Element == Any.Type>(A) async throws -> Self
  16. funcadding(allDependenciesOf: JetCore.BaseObjectGraph) -> Self
  17. funcadding<A where A: Sequence, A.Element == JetCore.Dependency>(allDependencies: A) -> Self
  18. funcadding(dependency: JetCore.Dependency) -> Self
  19. funcadding(uniqueDependenciesOf: JetCore.BaseObjectGraph) -> Self
  20. funcdependencies<A>(compatibleWith: A.Type) -> [A]
  21. funcerrorDescription<A>(forNoMemberSatisfying: A.Type) -> String
  22. funcinject<A where A: JetCore.Injectable>(A.Type) -> A
  23. funcinject<A where A: JetCore.Injectable, A: Sendable>(A.Type) async throws -> A
  24. funcinject<A where A: Sendable>(A.Type) async throws -> A
  25. funcinject<A>(A.Type) -> A
  26. funcinject<A where A: JetCore.AsyncOnlyAsDependency, A: JetCore.Injectable>(A.Type) -> A
  27. funcinject<A where A: JetCore.AsyncOnlyAsDependency>(A.Type) -> A
  28. funcinjectAsyncThrowing<A where A: JetCore.AsyncThrowingDependency, A: Sendable>(A.Type) async throws -> A
  29. funcinjectIfAvailable<A where A: Sendable>(A.Type) async throws -> A?
  30. funcinjectIfAvailable<A>(A.Type) -> A?
  31. funcinjectIfAvailable<A where A: JetCore.AsyncOnlyAsDependency>(A.Type) -> A?
  32. funcinjectIfAvailableAsyncThrowing<A where A: JetCore.AsyncThrowingDependency, A: Sendable>(A.Type) async throws -> A?
  33. funcinjectIfAvailableSync<A where A: JetCore.SyncDependency>(A.Type) -> A?
  34. funcinjectIfAvailableSync<A where A: JetCore.SyncDependency, A: Sendable>(A.Type) -> A?
  35. funcinjectIfAvailableSyncThrowing<A where A: JetCore.SyncThrowingDependency>(A.Type) throws -> A?
  36. funcinjectIfAvailableSyncThrowing<A where A: JetCore.SyncThrowingDependency, A: Sendable>(A.Type) throws -> A?
  37. funcinjectSync<A where A: JetCore.SyncDependency>(A.Type) -> A
  38. funcinjectSync<A where A: JetCore.SyncDependency, A: Sendable>(A.Type) -> A
  39. funcinjectSyncThrowing<A where A: JetCore.SyncThrowingDependency>(A.Type) throws -> A
  40. funcinjectSyncThrowing<A where A: JetCore.SyncThrowingDependency, A: Sendable>(A.Type) throws -> A
  41. funcnoMemberFound<A>(toSatisfy: A.Type) -> Never
  42. funcoptional<A>(A.Type) -> A?
  43. funcperformAsCurrent<A>(() throws -> A) throws -> A
  44. funcperformAsCurrent<A>(() async throws -> A) async throws -> A
  45. funcrequired<A>(A.Type) -> A
  46. funcsubtracting<A where A: Sequence, A.Element == Any.Type>(dependenciesFor: A) -> Self
  47. funcsubtracting(dependencyFor: Any.Type) -> Self
  48. funcsubtracting<A where A: Sequence, A.Element == Any.Type>(allDependenciesExcept: A) -> Self
  49. initJetCore.BaseObjectGraph.__allocating_init(name: String, dependencies: JetCore.DependencyDictionary) -> JetCore.BaseObjectGraph
  50. initJetCore.BaseObjectGraph.__allocating_init(name: String, _: JetCore.Dependency...) -> JetCore.BaseObjectGraph
  51. initJetCore.BaseObjectGraph.__allocating_init(JetCore.BaseObjectGraph) -> JetCore.BaseObjectGraph
  52. varfinal var _withAllDependenciesResolved: Self { get }
  53. varvar availableCandidates: [JetCore.OpaqueMetatype] { get }
  54. varfinal var buildUpon: JetCore.AsyncObjectGraphBuilder { get }
  55. varvar description: String { get }
class BaseObjectGraph {
    let dependencies: JetCore.DependencyDictionary
    var name: Swift.String

    init(name: Swift.String, dependencies: JetCore.DependencyDictionary)
    func performAsCurrent<A>(_: () throws -> A) throws -> A
    func performAsCurrent<A>(_: () async throws -> A) async throws -> A
    var availableCandidates: [JetCore.OpaqueMetatype] {
        get
    }
    func adding(allDependenciesOf: JetCore.BaseObjectGraph) -> Self
    func adding<A>(allDependencies: A) -> Self where A: Swift.Sequence, A.Element == JetCore.Dependency
    func adding(dependency: JetCore.Dependency) -> Self
    func adding(uniqueDependenciesOf: JetCore.BaseObjectGraph) -> Self
    func subtracting<A>(dependenciesFor: A) -> Self where A: Swift.Sequence, A.Element == any Any.Type
    func subtracting(dependencyFor: any Any.Type) -> Self
    func subtracting<A>(allDependenciesExcept: A) -> Self where A: Swift.Sequence, A.Element == any Any.Type
    func errorDescription<A>(forNoMemberSatisfying: A.Type) -> Swift.String
    func noMemberFound<A>(toSatisfy: A.Type) -> Swift.Never
    var description: Swift.String {
        get
    }

    init(name: Swift.String, _: JetCore.Dependency...)
    init(_: JetCore.BaseObjectGraph)

    final var _withAllDependenciesResolved: Self {
        get
    }
    final var buildUpon: any JetCore.AsyncObjectGraphBuilder {
        get
    }

    final func injectSync<A>(_: A.Type) -> A where A: JetCore.SyncDependency
    final func injectSync<A>(_: A.Type) -> A where A: JetCore.SyncDependency, A: Swift.Sendable
    final func dependencies<A>(compatibleWith: A.Type) -> [A]
    final func _hasDependency<A>(_: A.Type) -> Swift.Bool
    final func injectIfAvailable<A>(_: A.Type) -> A? where A: JetCore.AsyncOnlyAsDependency
    final func _injectIfAvailable<A>(_: A.Type) async throws -> A? where A: Swift.Sendable
    final func _injectIfAvailable<A>(_: A.Type) -> A?
    final func injectSyncThrowing<A>(_: A.Type) throws -> A where A: JetCore.SyncThrowingDependency
    final func injectSyncThrowing<A>(_: A.Type) throws -> A where A: JetCore.SyncThrowingDependency, A: Swift.Sendable
    final func injectAsyncThrowing<A>(_: A.Type) async throws -> A where A: JetCore.AsyncThrowingDependency, A: Swift.Sendable
    final func injectIfAvailableSync<A>(_: A.Type) -> A? where A: JetCore.SyncDependency
    final func injectIfAvailableSync<A>(_: A.Type) -> A? where A: JetCore.SyncDependency, A: Swift.Sendable
    final func _dependencyPersonality<A>(of: A.Type) -> JetCore.Dependency._Personality?
    final func _withDependenciesResolved<A>(_: A) async throws -> Self where A: Swift.Sequence, A.Element == any Any.Type
    final func injectIfAvailableSyncThrowing<A>(_: A.Type) throws -> A? where A: JetCore.SyncThrowingDependency
    final func injectIfAvailableSyncThrowing<A>(_: A.Type) throws -> A? where A: JetCore.SyncThrowingDependency, A: Swift.Sendable
    final func injectIfAvailableAsyncThrowing<A>(_: A.Type) async throws -> A? where A: JetCore.AsyncThrowingDependency, A: Swift.Sendable
    final func inject<A>(_: A.Type) -> A where A: JetCore.AsyncOnlyAsDependency, A: JetCore.Injectable
    final func inject<A>(_: A.Type) -> A where A: JetCore.AsyncOnlyAsDependency
    final func _inject<A>(_: A.Type) -> A where A: JetCore.Injectable
    final func _inject<A>(_: A.Type) async throws -> A where A: JetCore.Injectable, A: Swift.Sendable
    final func _inject<A>(_: A.Type) async throws -> A where A: Swift.Sendable
    final func _inject<A>(_: A.Type) -> A
    final func optional<A>(_: A.Type) -> A?
    final func required<A>(_: A.Type) -> A
    final func _downcast<A>(to: A.Type) -> A where A: JetCore.BaseObjectGraph

    static var current: Self {
        get
    }

    static func build(withName: Swift.String) -> any JetCore.AsyncObjectGraphBuilder

    deinit
}