Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

Properties

decorates: Set<T> = ...

metadata collection 元数据集合

instanceMembers: Map<string | symbol, MethodMirror<any, any> | PropertyMirror<any>> = ...

Instance members 实例成员集合

parameters: Map<number, ParameterMirror<any>> = ...

构造函数参数 此处的parameters.size数量是构造函数使用了ParameterMirror.createDecorator创建的装饰的成员数量, 要获取所有参数的数量,请使用方法 [new ClassMirror].getDesignParamTypes.

parent: null | ClassMirror<any> = null

父ClassMirror

staticMembers: Map<string | symbol, MethodMirror<any, any> | PropertyMirror<any>> = ...

Static members 静态成员稽核

target: Object

target Mirror映射的目标

Methods

  • getAllMirrors<T>(type: undefined | ClassConstructor<T>, isStatic?: boolean): T[]
  • getDesignParamTypes<T>(): T[]
  • getMethod(propertyKey: PropertyKey): undefined | MethodMirror<any, any>
  • getMirror<T>(mirrorKey: string | symbol, isStatic?: boolean): undefined | T
  • getProperty(propertyKey: PropertyKey): undefined | PropertyMirror<any>
  • getStaticMethod(propertyKey: PropertyKey): undefined | MethodMirror<any, any>
  • getStaticMethods(): Map<PropertyKey, MethodMirror<any, any>>
  • removeMirror(mirrorKey: string | symbol, isStatic?: boolean): void
  • 移除一个Mirror, 不含父类(基类)中的实例成员 Remove mirror

    Parameters

    • mirrorKey: string | symbol
    • isStatic: boolean = false

    Returns void

  • setMirror<T>(mirrorKey: string | symbol, mirror: T, isStatic?: boolean): void
  • 添加 mirror,只在当前类中添加

    Type parameters

    Parameters

    • mirrorKey: string | symbol
    • mirror: T

      DeclarationMirror

    • isStatic: boolean = false

      是否为静态成员 使用该方法可以添加一个Mirror 可以是 MethodMirror 也可以是 PropertyMirror, ParameterMirror不应添加至此处,ParameterMirror属于。 MethodMirror管理.

    Returns void

  • isStaticMember<T>(target: T): boolean