Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

googlearchive/quiver_mirrors

Repository files navigation

DEPRECATED

See https://pub.dev/packages/quiver instead!

Quiver Mirrors

Utilities for working with mirrors.

Build Status Coverage Status

Documentation

API Docs

getTypeName returns the name of a Type instance.

implements and classImplements determine if an instance or ClassMirror, respectively, implement the interface represented by a Type instance. They implement the behavior of is for mirrors, except for generics.

getMemberMirror searches though a ClassMirror and its class hierarchy for a member. This makes up for the fact that ClassMirror.members doesn't contain members from interfaces or superclasses.

Method wraps an InstanceMirror and Symbol to create a callable that invokes a method on the instance. It in effect closurizes a method reflectively.