@Deprecated public static JavaCallable matchingCallableArityOne(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0) { final int signatureCode = argsHashCode(arg0); JavaCallable method = (JavaCallable) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0); if (method != null) cache.put(signatureCode, method); } return method; }
@Deprecated public static JavaCallable matchingCallableArityTwo(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1) { final int signatureCode = argsHashCode(arg0, arg1); JavaCallable method = (JavaCallable) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1); if (method != null) cache.put(signatureCode, method); } return method; }
@Deprecated public static JavaCallable matchingCallableArityThree(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { final int signatureCode = argsHashCode(arg0, arg1, arg2); JavaCallable method = (JavaCallable) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2); if (method != null) cache.put(signatureCode, method); } return method; }
@SuppressWarnings("unchecked") @Deprecated public static ParameterTypes matchingCallableArityN(Ruby runtime, Map cache, ParameterTypes[] methods, IRubyObject[] args) { final int signatureCode = argsHashCode(args); ParameterTypes method = (ParameterTypes) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, args); if (method != null) cache.put(signatureCode, method); } return method; }
@SuppressWarnings("unchecked") @Deprecated public static JavaCallable matchingCallableArityN(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject[] args) { final int signatureCode = argsHashCode(args); JavaCallable method = (JavaCallable) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, args); if (method != null) cache.put(signatureCode, method); } return method; }
public static JavaCallable matchingCallableArityN(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject[] args, int argsLength) { int signatureCode = argsHashCode(args); JavaCallable method = (JavaCallable)cache.get(signatureCode); if (method == null) { method = (JavaCallable)findMatchingCallableForArgs(runtime, cache, signatureCode, methods, args); } return method; }
public static JavaCallable matchingCallableArityOne(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0) { int signatureCode = argsHashCode(arg0); JavaCallable method = (JavaCallable)cache.get(signatureCode); if (method == null) { method = (JavaCallable)findMatchingCallableForArgs(runtime, cache, signatureCode, methods, arg0); } return method; }
public static JavaCallable matchingCallableArityFour(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) { int signatureCode = argsHashCode(arg0, arg1, arg2, arg3); JavaCallable method = (JavaCallable)cache.get(signatureCode); if (method == null) { method = (JavaCallable)findMatchingCallableForArgs(runtime, cache, signatureCode, methods, arg0, arg1, arg2, arg3); } return method; }
@Deprecated public static JavaCallable matchingCallableArityFour(Ruby runtime, Map cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) { final int signatureCode = argsHashCode(arg0, arg1, arg2, arg3); JavaCallable method = (JavaCallable) cache.get(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2, arg3); if (method != null) cache.put(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityFour(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) { final int signatureCode = argsHashCode(arg0, arg1, arg2, arg3); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2, arg3); if (method != null) invoker.putSignature(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityOne(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0) { final int signatureCode = argsHashCode(arg0); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0); if (method != null) invoker.putSignature(signatureCode, method); } return method; }
public static <T extends ParameterTypes> T matchingCallableArityN(Ruby runtime, CallableCache<T> cache, T[] methods, IRubyObject[] args) { final int signatureCode = argsHashCode(args); T method = cache.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, args); if (method != null) cache.putSignature(signatureCode, method); } return method; }
public static <T extends ParameterTypes> T matchingCallableArityTwo(Ruby runtime, CallableCache<T> cache, T[] methods, IRubyObject arg0, IRubyObject arg1) { final int signatureCode = argsHashCode(arg0, arg1); T method = cache.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1); if (method != null) cache.putSignature(signatureCode, method); } return method; }
public static <T extends ParameterTypes> T matchingCallableArityThree(Ruby runtime, CallableCache<T> cache, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { final int signatureCode = argsHashCode(arg0, arg1, arg2); T method = cache.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2); if (method != null) cache.putSignature(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityN(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject[] args) { final int signatureCode = argsHashCode(args); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, args); if (method != null) invoker.putSignature(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityThree(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { final int signatureCode = argsHashCode(arg0, arg1, arg2); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2); if (method != null) invoker.putSignature(signatureCode, method); } return method; }
public static <T extends ParameterTypes> T matchingCallableArityOne(Ruby runtime, CallableCache<T> cache, T[] methods, IRubyObject arg0) { final int signatureCode = argsHashCode(arg0); T method = cache.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0); if (method != null) cache.putSignature(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityOne(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0) { final int signatureCode = argsHashCode(arg0); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0); if (method != null) invoker.putSignature(signatureCode, method); } return method; }
public static <T extends ParameterTypes> T matchingCallableArityFour(Ruby runtime, CallableCache<T> cache, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) { final int signatureCode = argsHashCode(arg0, arg1, arg2, arg3); T method = cache.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1, arg2, arg3); if (method != null) cache.putSignature(signatureCode, method); } return method; }
public static <T extends JavaCallable> T matchingCallableArityTwo(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1) { final int signatureCode = argsHashCode(arg0, arg1); T method = invoker.getSignature(signatureCode); if (method == null) { method = findMatchingCallableForArgs(runtime, methods, arg0, arg1); if (method != null) invoker.putSignature(signatureCode, method); } return method; }