Only one annotation is showing

The class indeed has only one annotation. The other two belong to the class methods. To get to them you’d do something like:

Method getValue = Tree.class.getMethod("getValue"); //get the method
getValue.getAnnotations(); //get annotations, only ElementField in this case

The same for every other method.

Browse More Popular Posts

Leave a Comment