EmptyReflector class

A Reflector implementation that performs no actual reflection, instead returning empty objects on every invocation.

Use this in contexts where you know you won't need any reflective capabilities.

Inheritance

Constructors

EmptyReflector()
const

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getName(Symbol symbol) → String
override
reflectClass(Type clazz) ReflectedClass
override
reflectFunction(Function function) ReflectedFunction
override
reflectInstance(Object object) ReflectedInstance
override
reflectType(Type type) ReflectedType
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reflectFutureOf(Type type) ReflectedType
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

symbolRegex → RegExp
A RegExp that can be used to extract the name of a symbol without reflection.
final