It sounds like a simple question, but I cannot manage to make it work in Android.
What Ive got is a simple annotated field:
@MyAnnotation
public static final String TEXT = getText();
private static final String getText(){
return "TEXT";
}
I made an annotation processer to process @MyAnnotation, but I found out that it is not possible to read value of field using annotation processor. I have also tried reflection, but reflection is only available at runtime ..
I need that field value for code generation based on it.
It is possible to read value of field using annotation processing ? If not is there any way to achieve this ?