dimanche 29 mars 2020

Is it possible to check at runtime whether or not a TYPE_USE annotation is present on an interface within a implements declaration?

Consider the following:

class A implements @X B, C, @X D {}

Is it possible to retrieve at runtime whether or not the implements declaration contains @X on each of the implementing interfaces?

So in the above example, for B the answer is yes, for C no and for D yes.

If it is, how would I achieve this?





Aucun commentaire:

Enregistrer un commentaire