Add a method to get the attributes of the annotation.