public static MethodDelegate create(Object target, String methodName, Class iface) { Generator gen = new Generator(); gen.setTarget(target); gen.setMethodName(methodName); gen.setInterface(iface); return gen.create(); }
public void generateClass(ClassVisitor v) throws Exception { new FastClassEmitter(v, getClassName(), type); }
public static MulticastDelegate create(Class iface) { Generator gen = new Generator(); gen.setInterface(iface); return gen.create(); }
public static FastClass create(ClassLoader loader, Class type) { Generator gen = new Generator(); gen.setType(type); gen.setClassLoader(loader); return gen.create(); }
public static MethodDelegate createStatic(Class targetClass, String methodName, Class iface) { Generator gen = new Generator(); gen.setTargetClass(targetClass); gen.setMethodName(methodName); gen.setInterface(iface); return gen.create(); }
public static ConstructorDelegate create(Class targetClass, Class iface) { Generator gen = new Generator(); gen.setTargetClass(targetClass); gen.setInterface(iface); return gen.create(); }
public Object newInstance() throws InvocationTargetException { return newInstance(getIndex(Constants.EMPTY_CLASS_ARRAY), null); }
public Object newInstance(Object[] args) throws InvocationTargetException { return fc.newInstance(index, args); }
public ConstructorDelegate create() { setNamePrefix(targetClass.getName()); Object key = KEY_FACTORY.newInstance(iface.getName(), targetClass.getName()); return (ConstructorDelegate)super.create(key); }
public Object invoke(Object obj, Object[] args) throws InvocationTargetException { return fc.invoke(index, obj, args); }
public Class getDeclaringClass() { return fc.getJavaClass(); }
protected Object nextInstance(Object instance) { return ((MulticastDelegate)instance).newInstance(); } }
protected Object nextInstance(Object instance) { return ((MethodDelegate)instance).newInstance(target); }
public FastMethod getMethod(Method method) { return new FastMethod(this, method); }
FastMethod(FastClass fc, Method method) { super(fc, method, helper(fc, method)); }
public static FastClass create(ClassLoader loader, Class type) { Generator gen = new Generator(); gen.setType(type); gen.setClassLoader(loader); return gen.create(); }
public static ConstructorDelegate create(Class targetClass, Class iface) { Generator gen = new Generator(); gen.setTargetClass(targetClass); gen.setInterface(iface); return gen.create(); }
public Object newInstance(Class[] parameterTypes, Object[] args) throws InvocationTargetException { return newInstance(getIndex(parameterTypes), args); }
public Object newInstance() throws InvocationTargetException { return fc.newInstance(index, null); }