forcemirrors 0.2.1+5 copy "forcemirrors: ^0.2.1+5" to clipboard
forcemirrors: ^0.2.1+5 copied to clipboard

Dart 1 only

A mirrors helper library

Dart Force Mirrors #

LOGO!

Part of the Dart Force Framework.

A mirrors helper library for the dart force framework

Walkthrough

This is how you can scrap the metadata info from an object.

MetaDataHelper<MetaData, MethodMirror> mirrorHelper = new MetaDataHelper<MetaData, MethodMirror>();
List<MetaDataValue<MetaData>> mirrorModels = mirrorHelper.from(new Anno());

The annotated class.

class Anno {

  @MetaData("test")
  void test() {}
  
}

MetaDataValue has the following fields:

Symbol memberName;
InstanceMirror instanceMirror;
T object;

Search for classes that implement or extend for example the class Anno.

ClassSearcher<Anno> searcher = new ClassSearcher<Anno>();
List<Anno> searchResult = searcher.scan();

Notes to Contributors #

Fork Dart Force Mirrors

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

If you are new to Git or GitHub, please read this guide first.

Dart Force

Realtime web framework for dart that uses forcemvc & forcemirrors source code

Twitter

Follow us on twitter https://twitter.com/usethedartforce

Google+

Follow us on google+

0
likes
5
pub points
0%
popularity

Publisher

unverified uploader

A mirrors helper library

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on forcemirrors