目录

What are the use cases of ArkTS custom annotations?

When you use custom annotations, the annotation information is written into the generated Ark bytecode file during compilation. The ArkCompiler toolchain provides the capability of modifying the Ark bytecode during compilation.

With this capability, you can use the AbcKit library provided by the community to analyze and modify Ark bytecode files. libabckit can scan the annotation information in the bytecode and modify the bytecode based on the information. For details, see libabckit files and Router table provided by libabckit.

Reference

Customizing Ark Bytecode During Compilation