I am new to annotation processor, I wonder if it is possible to get the the return value of a method marked with annotations during annotation processing. For example, I have annotation
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Parameters {}
and I have a class marked with this annotation:
@Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
{ 0, 0, 0 }, { 1, 1, 2 }
});
}
is it possible I get new Object[][] { { 0, 0, 0 }, { 1, 1, 2 } } using annotation processing tool(apt)?