Provides access to reflection data about symbols.

Used internally by Angular to power dependency injection and compilation.

Inheritance
  • Object
  • ReflectorReader
  • Reflector

Constructors

Reflector(PlatformReflectionCapabilities reflectionCapabilities)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
reflectionCapabilities PlatformReflectionCapabilities

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

annotations(typeOrFunc) → List

factory(Type type) → Function

getter(String name) GetterFn

importUri(Type type) → String

interfaces(Type type) → List

isReflectionEnabled() → bool

listUnusedKeys() → List

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

method(String name) MethodFn

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
parameters(typeOrFunc) → List<List>

propMetadata(typeOrFunc) → Map<String, List>

registerFunction(Function func, ReflectionInfo funcInfo) → void

registerGetters(Map<String, GetterFn> getters) → void

registerMethods(Map<String, MethodFn> methods) → void

registerSetters(Map<String, SetterFn> setters) → void

registerType(Type type, ReflectionInfo typeInfo) → void

setter(String name) SetterFn

toString() → String

Returns a string representation of this object.

inherited
trackUsage() → void

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