How to read a Java class method annotation value with ASM
问题 How can I read read the value of a Java method annotation at runtime with ASM ? The Annotation has only a CLASS RetentionPolicy , so it's not possible to do that with Reflections. | Policy CLASS : Annotations are to be recorded in the class file by the compiler but need not be retained by the VM at run time Example : I want to extract the value Carly Rae Jepsen out of the artist field at runtime: public class SampleClass { @MyAnnotation(artist = "Carly Rae Jepsen") public void callMeMaybe(){}