Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Annotation Processor: Sidecar Generator (#76)
* wip: Generate Sidecar classes * wip: Use Sidecar instances for init * chore: Add some TODOs * fix(processor): Correctly handle @params in sidecar generator * feat(processor): Subcontroller init in sidecar * feat(processor): Destroy sidecars * fix(framework): Remember missing sidecars as null in map * feat(processor): Generate Sidecar render * test(framework): Change some member visibilities * feat(processor): Handle @ParamsMap field in Sidecar * feat(processor): Handle @param fields with WritableValue * refactor(processor): Better helper fields in FxClassGenerator * refactor(processor): Add FxClassGenerator.streamMethods * feat(processor): Call inherited methods * feat(processor): Sidecar getResources and getTitle * fix(processor): Properly convert string literals * fix(processor): Better sidecar code for WritableValues * test(framework): Add test for "@ParamsMap final" field * test(framework): Use annotation processor * fix(processor): Handle relative view paths * test(framework): Remove NonExtendingComponent * docs: Explain Annotation Processor in Readme * refactor(framework): Move reflection code into ReflectionSidecar * docs(framework): Some documentation * fix(framework): Handle missing resource bundle and pre-load title * refactor(framework): Pre-load @resource field * refactor(framework): Pre-load @subcomponent fields * refactor(framework): Pre-load init, render and destroy methods * refactor(processor): Rename generate methods * fix(processor): Remove printStackTrace * chore(processor): Remove TODO line * fix(ludo): Method visibility * fix(processor): Consider inherited fields for generated methods * feat(framework): Only support non-private methods and fields * docs: Update ERROR_CODES.md * fix: Address own review comments * refactor(framework): Cache all annotated fields and methods in ReflectionSidecar * fix(framework): A warning * docs: Update ERROR_CODES.md --------- Co-authored-by: LeStegii <paulmertens63@gmail.com> Co-authored-by: LeStegii <LeStegii@users.noreply.github.com> Co-authored-by: Clashsoft <Clashsoft@users.noreply.github.com>
- Loading branch information