title: JAXB: Generate list of annotations on class
body: <p>Given the following class:</p>
  
  <pre><code>@XmlRootElement(name="RootElement")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Root {
      @XmlElement("SubElement")
      public String subElement;
  }
  </code></pre>
  
  <p>I'd like to recover all the <code>javax.xml.bind.annotation</code> annotations at both the field and class levels at runtime.  I know I can do so using Java's reflection API.  Does JAXB itself provide a way to collect these annotations?</p>