Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

About adding, modifying and deleting annotations.

Open Fanyhsiao opened this issue 3 years ago • 1 comments

About adding, modifying and deleting annotations

I found that Recaf has no feature about modifying annotations. Why not add it?

Fanyhsiao avatar Feb 09 '22 01:02 Fanyhsiao

This is something that will be supported in the 3X release. It's been added to the bytecode parser grammer: https://github.com/Col-E/Recaf/blob/dev3/recaf-assembler/src/main/antlr/me/coley/recaf/assemble/parser/Bytecode.g4#L139

The assembler supports editing fields and methods, editing class level definitions is all that remains in order to fully support annotation editing in 3X. It shouldn't be too hard to tweak the grammar to also support class definitions, most of the work will probably be in UI integrations. But it will be something that will get done.

You can check the progress of 3X with releases here: https://github.com/Col-E/recaf-3x-issues

Col-E avatar Feb 09 '22 03:02 Col-E