title: How to run all methods with a given annotation?
body: <p>This is what I want to happen:</p>
  
  <pre><code>public class MainClass {
      public static void main(String args[]) { 
          run @mod(); // run all methods annotated with @mod annotation
      }
  }
  </code></pre>
  
  <p>The <strong>annotation</strong> declaration:</p>
  
  <pre><code>@Target(ElementType.METHOD)
  @Retention(RetentionPolicy.RUNTIME)
  public @interface mod {
     String name() default "";
  }
  </code></pre>
  
  <p>The <strong>methods</strong> to be called:</p>
  
  <pre><code>public class Good {
      @mod (name = "me1")
      public void calledcs(){
          System.out.println("called");
      }
  
      @mod (name = "me2")
      public void calledcs2(){
          System.out.println("called");
      }
  }
  </code></pre>
  
  <p>or is there another way to achieve the same thing?</p>