Reflector

export class Reflector

exported from angular2/core defined in angular2/src/core/reflection/reflector.ts (line 22)

Provides access to reflection data about symbols. Used internally by Angular to power dependency injection and compilation.

Constructor

constructor(reflectionCapabilities: PlatformReflectionCapabilities)

Not Yet Documented

Members

reflectionCapabilities : PlatformReflectionCapabilities

Not Yet Documented

isReflectionEnabled() : boolean

Not Yet Documented

trackUsage() : void

Causes this reflector to track keys used to access ReflectionInfo objects.

listUnusedKeys() : any[]

Lists types for which reflection information was not requested since trackUsage was called. This list could later be audited as potential dead code.

registerFunction(func: Function, funcInfo: ReflectionInfo) : void

Not Yet Documented

registerType(type: Type, typeInfo: ReflectionInfo) : void

Not Yet Documented

registerGetters(getters: {[key: string]: GetterFn}) : void

Not Yet Documented

registerSetters(setters: {[key: string]: SetterFn}) : void

Not Yet Documented

registerMethods(methods: {[key: string]: MethodFn}) : void

Not Yet Documented

factory(type: Type) : Function

Not Yet Documented

parameters(typeOrFunc: /*Type*/ any) : any[]

Not Yet Documented

annotations(typeOrFunc: /*Type*/ any) : any[]

Not Yet Documented

propMetadata(typeOrFunc: /*Type*/ any) : {[key: string]: any[]}

Not Yet Documented

interfaces(type: Type) : any[]

Not Yet Documented

getter(name: string) : GetterFn

Not Yet Documented

setter(name: string) : SetterFn

Not Yet Documented

method(name: string) : MethodFn

Not Yet Documented

importUri(type: Type) : string

Not Yet Documented