I'm currently writing an annotation processor in which I want it to scan the available methods in classes that their parameters are annotated as NonNull
and generate some code inside that methods.
During my search, I didn't find any kind of specification regarding my problem. What steps do I follow at this stage?
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
for (Element annotatedElement : roundEnv.getElementsAnnotatedWith(NonNull.class)) {
}
return true;
}