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.