export class 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)
constructor(reflectionCapabilities: PlatformReflectionCapabilities)
Not Yet Documented
Members
reflectionCapabilities : PlatformReflectionCapabilities
reflectionCapabilities : PlatformReflectionCapabilities
Not Yet Documented
isReflectionEnabled() : boolean
isReflectionEnabled() : boolean
Not Yet Documented
trackUsage() : void
trackUsage() : void
Causes this
reflector to track keys used to access
ReflectionInfo
objects.
listUnusedKeys() : any[]
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
registerFunction(func: Function, funcInfo: ReflectionInfo) : void
Not Yet Documented
registerType(type: Type, typeInfo: ReflectionInfo) : void
registerType(type: Type, typeInfo: ReflectionInfo) : void
Not Yet Documented
registerGetters(getters: {[key: string]: GetterFn}) : void
registerGetters(getters: {[key: string]: GetterFn}) : void
Not Yet Documented
registerSetters(setters: {[key: string]: SetterFn}) : void
registerSetters(setters: {[key: string]: SetterFn}) : void
Not Yet Documented
registerMethods(methods: {[key: string]: MethodFn}) : void
registerMethods(methods: {[key: string]: MethodFn}) : void
Not Yet Documented
factory(type: Type) : Function
factory(type: Type) : Function
Not Yet Documented
parameters(typeOrFunc: /*Type*/ any) : any[]
parameters(typeOrFunc: /*Type*/ any) : any[]
Not Yet Documented
annotations(typeOrFunc: /*Type*/ any) : any[]
annotations(typeOrFunc: /*Type*/ any) : any[]
Not Yet Documented
propMetadata(typeOrFunc: /*Type*/ any) : {[key: string]: any[]}
propMetadata(typeOrFunc: /*Type*/ any) : {[key: string]: any[]}
Not Yet Documented
interfaces(type: Type) : any[]
interfaces(type: Type) : any[]
Not Yet Documented
getter(name: string) : GetterFn
getter(name: string) : GetterFn
Not Yet Documented
setter(name: string) : SetterFn
setter(name: string) : SetterFn
Not Yet Documented
method(name: string) : MethodFn
method(name: string) : MethodFn
Not Yet Documented
importUri(type: Type) : string
importUri(type: Type) : string
Not Yet Documented