interfaces, collectMethods(superClass, interfaces, names), selfType);
interfaces, collectMethods(superClass, interfaces, names), selfType);
public JavaProxyClass newProxyClass(final Ruby runtime, ClassDefiningClassLoader loader, String targetClassName, Class superClass, Class[] interfaces, Set<String> names) throws InvocationTargetException { if (targetClassName == null) { targetClassName = targetClassName(superClass); } validateArgs(runtime, targetClassName, superClass); Type selfType = Type.getType('L' + toInternalClassName(targetClassName) + ';'); Map<MethodKey, MethodData> methods = collectMethods(superClass, interfaces, names); return generate(loader, targetClassName, superClass, interfaces, methods, selfType); }
public JavaProxyClass newProxyClass(final Ruby runtime, ClassDefiningClassLoader loader, String targetClassName, Class superClass, Class[] interfaces, Set<String> names) throws InvocationTargetException { if (targetClassName == null) { targetClassName = targetClassName(superClass); } validateArgs(runtime, targetClassName, superClass); Type selfType = Type.getType('L' + toInternalClassName(targetClassName) + ';'); Map<MethodKey, MethodData> methods = collectMethods(superClass, interfaces, names); return generate(loader, targetClassName, superClass, interfaces, methods, selfType); }