fanyapeng / javadude

Automatically exported from code.google.com/p/javadude
0 stars 0 forks source link

Add method invoker #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
public class Thing {
       // @Invoker("MethodInvoker")
       private interface Methods {
               void foo();
               void fee();
       }
       private enum MethodInvoker {
               foo { @Override public void invoke(Methods m) { m.foo();
} },
               fee { @Override public void invoke(Methods m) { m.fee();
} };
               public abstract void invoke(Methods m);
       }
}

Original issue reported on code.google.com by scott%ja...@gtempaccount.com on 14 Aug 2008 at 3:36