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 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 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 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 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 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 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 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 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; }