@angular/core
Version:
Angular - the core framework
36 lines (35 loc) • 1.49 kB
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Type } from '../type';
import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
import { GetterFn, MethodFn, SetterFn } from './types';
export { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
export { GetterFn, MethodFn, SetterFn } from './types';
/**
* Provides access to reflection data about symbols. Used internally by Angular
* to power dependency injection and compilation.
*/
export declare class Reflector {
reflectionCapabilities: PlatformReflectionCapabilities;
constructor(reflectionCapabilities: PlatformReflectionCapabilities);
updateCapabilities(caps: PlatformReflectionCapabilities): void;
factory(type: Type<any>): Function;
parameters(typeOrFunc: Type<any>): any[][];
annotations(typeOrFunc: Type<any>): any[];
propMetadata(typeOrFunc: Type<any>): {
[key: string]: any[];
};
hasLifecycleHook(type: any, lcProperty: string): boolean;
getter(name: string): GetterFn;
setter(name: string): SetterFn;
method(name: string): MethodFn;
importUri(type: any): string;
resourceUri(type: any): string;
resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
resolveEnum(identifier: any, name: string): any;
}