Access annotated fields

Viewed 18713

I made a custom Annotation for my project which will be used only with fields, that is

@MyAnnotation int myVariable

I have another class which will be in charge of performing some actions according to the variables values.The project has an undetermined number of classes with annotations included. How can I access them using my annotations processor in order to access the values?

I can check the annotated variables going though each class, but not modifying the value since is not an object.

any suggestion on how to do it?

Thanks in advance!! :)

1 Answers
Related