I have a class with custom annotation for one of class field:
public class Test {
@CustomAnnotation
private String name;
...
}
I just want to know if it possible to get Class<Test>
by this annotation? Can't find any suitable api..
public Class<?> getOuterClass(CustomAnnotation annotation) {
...
}
@CustomAnnotation
is declared as @Retention(RetentionPolicy.RUNTIME)
Aucun commentaire:
Enregistrer un commentaire