builder library

Library for reflection_factory's builder.

Classes

BasicFieldReflection<O, T>
A class field reflection.
ClassReflection<O>
Base for Class reflection.
ConstructorReflection<O>
ElementReflection<O>
Base for element reflection.
ElementResolver<T>
A simple element of type T resolver.
EnumReflection<O>
Base for Enum reflection.
FieldReflection<O, T>
A class field reflection.
FunctionReflection<O, R>
Base class for methods.
MethodInvocation<T>
Represents a method invocation parameters.
MethodReflection<O, R>
A class method reflection.
ParameterReflection
A parameter reflection, used method arguments or class fields.
Reflection<O>
Base for reflection.
ReflectionFactory
Class with all registered reflections (ClassReflection).
StaticFieldReflection<O, T>
A class static-field reflection. Extends FieldReflection.
StaticFunctionReflection<O, R>
Base class for static methods and constructors.
StaticMethodReflection<O, R>
A class static-method reflection.
TypeReflection<T>
Dart Type reflection.

Functions

reflectionFactory([BuilderOptions options = BuilderOptions.empty]) → ReflectionBuilder

Typedefs

ConstructorReflectionAccessor = Function Function()
FieldGetter<T> = T Function()
FieldNameResolver = String? Function(String field, Map<String, Object?> map)
FieldReflectionGetterAccessor<O, T> = FieldGetter<T> Function(O? obj)
FieldReflectionSetterAccessor<O, T> = FieldSetter<T> Function(O? obj)
FieldSetter<T> = void Function(T v)
FieldValueResolver = Object? Function(String field, Object? value, TypeReflection type)
MethodReflectionAccessor<O> = Function Function(O? obj)
OnConstructorInvocationError = void Function(ConstructorReflection constructor, MethodInvocation methodInvocation, Map<String, dynamic> map, Object? error)
ParameterProvider = Object? Function(ParameterReflection parameter, int? parameterIndex)
StaticFieldReflectionGetterAccessor<T> = FieldGetter<T> Function()
StaticFieldReflectionSetterAccessor<T> = FieldSetter<T> Function()
StaticMethodReflectionAccessor = Function Function()

Exceptions / Errors

UnresolvedParameterError
Error thrown when MethodInvocation can't be defined due to an unresolved parameter value.