built_mirrors_core library

Classes

Annotation
Class used to make annotations listed on ClassMirror
ClassMirror
reflects a Dart language class.
DeclarationMirror
reflects attributes declared in a Dart program.
FunctionMirror
reflects functions declared in a Dart program.
Mirror
Base class for mirrors
Reflectable
Annotation needed to generate ClassMirror for every class
SerializedName
Annotation class to describe properties of a class member.

Constants

reflectable → const Reflectable
Annotation needed to generate ClassMirror for every class
const Reflectable()

Properties

classMirrors → Map<Type, ClassMirror>
returns the map of Type-ClassMirror
read-only
functionMirrors → Map<Function, FunctionMirror>
returns the map of Function-FunctionMirror combination
read-only
getClassMirrorFromGenericInstance GetClassMirrorFromGenericInstance
read / write

Functions

initClassMirrors(Map<Type, ClassMirror> classMirrors) → void
adds to a map containing a Map with Type as keys and ClassMirrors as values
initFunctionMirrors(Map<Function, FunctionMirror> classMirrors) → void
adds to a map containing a Map<Function, FunctionMirror> as values
reflect(dynamic instance) ClassMirror
Returns the ClassMirror corresponding to the runtime type of the instance
reflectFunction(Function function) FunctionMirror
Returns the FunctionMirror corresponding to the function
reflectType(Type type) ClassMirror
Returns the ClassMirror corresponding to the type

Typedefs

FunctionCall([List positionalParams, Map<String, dynamic> namedParams ]) → dynamic
GetClassMirrorFromGenericInstance(dynamic instance) ClassMirror