public static JavaCallable getMatchingCallable(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes) { if ( methodName.length() == 6 && "<init>".equals(methodName) ) { return JavaConstructor.getMatchingConstructor(runtime, javaClass, argumentTypes); } // FIXME: do we really want 'declared' methods? includes private/protected, and does _not_ // include superclass methods return JavaMethod.getMatchingDeclaredMethod(runtime, javaClass, methodName, argumentTypes); }
public static JavaCallable getMatchingCallable(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes) { if ("<init>".equals(methodName)) { return JavaConstructor.getMatchingConstructor(runtime, javaClass, argumentTypes); } else { // FIXME: do we really want 'declared' methods? includes private/protected, and does _not_ // include superclass methods return JavaMethod.getMatchingDeclaredMethod(runtime, javaClass, methodName, argumentTypes); } }
public static JavaCallable getMatchingCallable(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes) { if ("<init>".equals(methodName)) { return JavaConstructor.getMatchingConstructor(runtime, javaClass, argumentTypes); } else { // FIXME: do we really want 'declared' methods? includes private/protected, and does _not_ // include superclass methods return JavaMethod.getMatchingDeclaredMethod(runtime, javaClass, methodName, argumentTypes); } }
public static JavaCallable getMatchingCallable(Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes) { if ( methodName.length() == 6 && "<init>".equals(methodName) ) { return JavaConstructor.getMatchingConstructor(runtime, javaClass, argumentTypes); } // FIXME: do we really want 'declared' methods? includes private/protected, and does _not_ // include superclass methods return JavaMethod.getMatchingDeclaredMethod(runtime, javaClass, methodName, argumentTypes); }