Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ReflectionUtils

Index

Methods

Static getJsonPropertyMetadata

  • Returns the JsonProperty metadata of the specified property, or undefined if they are not present.

    static
    memberof

    ReflectionUtils

    Parameters

    • target: any

      the target object on which the metadata is defined

    • propertyKey: string

      the property key for the target

    Returns JsonPropertyMetadata | undefined

    the metadata value for the metadata key if found; otherwise, undefined.

Static getType

  • getType(target: any, propertyKey: string): any
  • This method returns the type of the specified object as injected by the compiler at design-time.

    static
    memberof

    ReflectionUtils

    Parameters

    • target: any

      the target object

    • propertyKey: string

      the property key for the target

    Returns any

    the injected type

Static getTypeHash

  • getTypeHash(target: any): string
  • This method generate a "readable hash" of the specified object. This hash is used as a key to save type adapters in the cache and to compare TypeToken. Eg. City -> City [String] -> Array:(String) [Number, Number, Boolean] -> Array:(Number+Number+Boolean) [String, [Number, User], [User]] -> Array:(String+Array:(Number+User))+Array:(User)))

    This format is very helpful for debugging purposes.

    static
    memberof

    ReflectionUtils

    Parameters

    • target: any

      the target object

    Returns string

    the generated hash of the target

Static getTypeName

  • getTypeName(target: any): string
  • This method returns the type name of the specified object. A little hack, because some browsers do not support constructor.name (guess who?).

    static
    memberof

    ReflectionUtils

    Parameters

    • target: any

      the target object

    Returns string

    the type name

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc