title: How to get annotation's parameters from a class in jar file
body: <p>I want to get a class's (packaged in jar file) annotation parameters by java reflect.</p>
  
  <ol>
  <li><p>My annotation like this</p>
  
  <pre><code>@Documented
  @Retention(RUNTIME)
  @Target(TYPE)    
  public @interface TestPlugin {
      public String moduleName();
      public String plugVersion();
      public String minLeapVersion();    
  }
  </code></pre></li>
  <li><p>My class like this </p>
  
  <pre><code>@TestPlugin(moduleName="xxx", plugVersion="1.0.0", minLeapVersion="1.3.0")
  
  public class Plugin {
  
    ......
  
  }
  </code></pre></li>
  <li><p>My access code like this </p>
  
  <pre><code>Class&lt;?&gt; clazz = this.loadClass(mainClassName);  // myself classloader
  
  Annotation[] annos = clazz.getAnnotations();
  
  for (Annotation anno : annos) {
      Class&lt;? extends Annotation&gt; annoClass = anno.annotationType();
  
      /* Question is here
      This code can get right annotationType: @TestPlugin. 
      Debug windows show anno is $Proxy33. 
      But I can't find any method to get annotation membervalues even though I can find them in debug windows.
      How can I get annotation's parameters?
      */
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FaPoM.png" rel="nofollow noreferrer">Debug windows info</a></p></li>
  </ol>