cf.addNoOpMethod(new MethodSignature(void.class, "run", null, null));
cf.addNoOpMethod(new MethodSignature(int.class, "getInt", null, null));
cf.addNoOpMethod(new MethodSignature(double.class, "getDouble", null, null));
Class clazz = cf.createClass();
Runnable instance = (Runnable) clazz.newInstance();
instance.run();