Search code examples
javajava-bytecode-asm

ASM checking for usage of a class or package


Using ASM how can I know whether the compiled code in jar is using specific packages or classes rather than checking for a specific method in a class


Solution

  • You can create visitors which record all the packages or classes which are used. (Or only check specific ones) There are examples of how to create visitors on the ObjectWeb ASM web site.

    Do you have a specific question?