reflectable
基于代码生成的反射支持,使用'capabilities'指定要在哪些对象上支持哪些操作。这是 reflectable 的运行时部分。
Reflectable 是一个 Dart 包,允许程序员通过将反射代码专门化为仅使用静态技术的等效实现,从而消除某些动态反射的用法。为了确保生成的专用代码可以被生成且大小合理,对动态反射的使用进行了限制。
以下为英文项目原文快照,最新内容请访问 GitHub。
This repository provides the Dart packages reflectable and
reflectable_builder, along with a set of test cases and
examples in the repository test_reflectable.
Support for implementing a large subset of the features offered by 'dart:mirrors' without relying on 'dart:mirrors' itself. Provides a system based on capabilities to control the amount of reflection support.
Support for generating the code that the package reflectable uses to provide
the reflection support described above.
Used to test package reflectable. Also serves as a set of examples of how
reflectable can be used.