StaticReflector class
A Reflector implementation that performs simple Map lookups.
package:angel_container_generator
uses this to create reflectors from analysis metadata.
Constructors
-
StaticReflector({Map<
Symbol, String> names = const {}, Map<Type, ReflectedType> types = const {}, Map<Function, ReflectedFunction> functions = const {}, Map<Object, ReflectedInstance> instances = const {}}) -
const
Properties
-
functions
→ Map<
Function, ReflectedFunction> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instances
→ Map<
Object, ReflectedInstance> -
final
-
names
→ Map<
Symbol, String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Map<
Type, ReflectedType> -
final
Methods
-
getName(
Symbol symbol) → String? -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reflectClass(
Type clazz) → ReflectedClass? -
override
-
reflectFunction(
Function function) → ReflectedFunction? -
override
-
reflectFutureOf(
Type type) → ReflectedType -
inherited
-
reflectInstance(
Object object) → ReflectedInstance? -
override
-
reflectType(
Type type) → ReflectedType? -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited