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.