| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| public static interface | CallableSelector.
java callable type T extends ParameterTypes>A cache of "callables" based on method signature hash. |
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. | |
| private static final CallableSelector. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static int | |
| private static int | |
| private static boolean | |
| private static boolean | |
| private static <T extends ParameterTypes> T | |
| private static <T extends ParameterTypes> List | |
| private static <T extends ParameterTypes> T | |
| private static <T extends ParameterTypes> T | findMatchingCallableForArgsFallback(final Ruby runtime, final T[] methods, final IRubyObject... args)
|
| private static Class | |
| private static int | |
| private static int | |
| public static <T extends ParameterTypes> T | matchingCallableArityFour(Ruby runtime, CallableSelector.
|
| public static <T extends JavaCallable> T | matchingCallableArityFour(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
|
| public static JavaCallable | matchingCallableArityFour(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
Deprecated
|
| public static <T extends ParameterTypes> T | matchingCallableArityN(Ruby runtime, CallableSelector.
|
| public static <T extends JavaCallable> T | |
| public static ParameterTypes | matchingCallableArityN(Ruby runtime, Map<K, V> cache, ParameterTypes[] methods, IRubyObject[] args)
Deprecated
|
| public static JavaCallable | matchingCallableArityN(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject[] args)
Deprecated
|
| public static <T extends ParameterTypes> T | matchingCallableArityOne(Ruby runtime, CallableSelector.
|
| public static <T extends JavaCallable> T | |
| public static JavaCallable | matchingCallableArityOne(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0)
Deprecated
|
| public static <T extends ParameterTypes> T | matchingCallableArityThree(Ruby runtime, CallableSelector.
|
| public static <T extends JavaCallable> T | matchingCallableArityThree(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| public static JavaCallable | matchingCallableArityThree(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
Deprecated
|
| public static <T extends ParameterTypes> T | matchingCallableArityTwo(Ruby runtime, CallableSelector.
|
| public static <T extends JavaCallable> T | matchingCallableArityTwo(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1)
|
| public static JavaCallable | matchingCallableArityTwo(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1)
Deprecated
|
| public static <T extends JavaCallable> T | |
| private static Boolean | |
| public static < the callable type T extends ParameterTypes> IntHashMap | Returns: cache usable withCallableSelector
Deprecated
Internal helper to allocate a callable map to cache argument method matches. |
| private static boolean | Returns: Whether the argument can be directly converted to the target primitive typeThe target type type, final IRubyObject The argument to convert arg)This method checks whether an argument can be *directly* converted into the target primitive, i.e. without changing from integral to floating-point. |
| private static int |
| ASSIGNABLE | back to summary |
|---|---|
| private static final CallableSelector. | |
| AssignableAndPrimitivable | back to summary |
|---|---|
| private static final CallableSelector. | |
| AssignableAndPrimitivableWithVarargs | back to summary |
|---|---|
| private static final CallableSelector. | |
| AssignableOrDuckable | back to summary |
|---|---|
| private static final CallableSelector. | |
| DUCKABLE | back to summary |
|---|---|
| private static final CallableSelector. | |
| Exact | back to summary |
|---|---|
| private static final CallableSelector. | |
| EXACT | back to summary |
|---|---|
| private static final CallableSelector. | |
| PRIMITIVABLE | back to summary |
|---|---|
| private static final CallableSelector. | |
| CallableSelector | back to summary |
|---|---|
| private CallableSelector() | |
| argsHashCode | back to summary |
|---|---|
| private static int argsHashCode(IRubyObject a0) | |
| argsHashCode | back to summary |
|---|---|
| private static int argsHashCode(IRubyObject a0, IRubyObject a1) | |
| argsHashCode | back to summary |
|---|---|
| private static int argsHashCode(IRubyObject a0, IRubyObject a1, IRubyObject a2) | |
| argsHashCode | back to summary |
|---|---|
| private static int argsHashCode(IRubyObject a0, IRubyObject a1, IRubyObject a2, IRubyObject a3) | |
| argsHashCode | back to summary |
|---|---|
| private static int argsHashCode(final IRubyObject[] args) | |
| assignable | back to summary |
|---|---|
| private static boolean assignable(Class<?> type, final IRubyObject arg) | |
| assignableAndPrimitivable | back to summary |
|---|---|
| private static boolean assignableAndPrimitivable(ParameterTypes paramTypes, IRubyObject... args) | |
| assignableAndPrimitivableWithVarargs | back to summary |
|---|---|
| private static boolean assignableAndPrimitivableWithVarargs(ParameterTypes paramTypes, IRubyObject... args) | |
| assignableOrDuckable | back to summary |
|---|---|
| private static boolean assignableOrDuckable(ParameterTypes paramTypes, IRubyObject... args) | |
| calcExactnessScore | back to summary |
|---|---|
| private static int calcExactnessScore(final ParameterTypes callable, final IRubyObject[] args) | |
| calcTypePreference | back to summary |
|---|---|
| private static int calcTypePreference(Class<?> type, final IRubyObject arg) | |
| duckable | back to summary |
|---|---|
| private static boolean duckable(final Class<?> type, final IRubyObject arg) | |
| exactMatch | back to summary |
|---|---|
| private static boolean exactMatch(ParameterTypes paramTypes, IRubyObject... args) | |
| findCallable | back to summary |
|---|---|
| private static <T extends ParameterTypes> T findCallable(T[] callables, CallableSelector. | |
| findCallableCandidates | back to summary |
|---|---|
private static <T extends ParameterTypes> List
| |
| findMatchingCallableForArgs | back to summary |
|---|---|
| private static <T extends ParameterTypes> T findMatchingCallableForArgs(final Ruby runtime, final T[] methods, final IRubyObject... args) | |
| findMatchingCallableForArgsFallback | back to summary |
|---|---|
| private static <T extends ParameterTypes> T findMatchingCallableForArgsFallback(final Ruby runtime, final T[] methods, final IRubyObject... args) | |
| getJavaClass | back to summary |
|---|---|
| private static Class | |
| javaClassHashCode | back to summary |
|---|---|
| private static int javaClassHashCode(final IRubyObject arg) | |
| javaClassOrProcHashCode | back to summary |
|---|---|
| private static int javaClassOrProcHashCode(final IRubyObject arg) | |
| matchingCallableArityFour | back to summary |
|---|---|
| public static <T extends ParameterTypes> T matchingCallableArityFour(Ruby runtime, CallableSelector. | |
| matchingCallableArityFour | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityFour(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) | |
| matchingCallableArityFour | back to summary |
|---|---|
| public static JavaCallable matchingCallableArityFour(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
Deprecated
| |
| matchingCallableArityN | back to summary |
|---|---|
| public static <T extends ParameterTypes> T matchingCallableArityN(Ruby runtime, CallableSelector. | |
| matchingCallableArityN | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityN(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject[] args) | |
| matchingCallableArityN | back to summary |
|---|---|
| public static ParameterTypes matchingCallableArityN(Ruby runtime, Map<K, V> cache, ParameterTypes[] methods, IRubyObject[] args)
Deprecated
| |
| matchingCallableArityN | back to summary |
|---|---|
| public static JavaCallable matchingCallableArityN(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject[] args)
Deprecated
| |
| matchingCallableArityOne | back to summary |
|---|---|
| public static <T extends ParameterTypes> T matchingCallableArityOne(Ruby runtime, CallableSelector. | |
| matchingCallableArityOne | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityOne(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0) | |
| matchingCallableArityOne | back to summary |
|---|---|
| public static JavaCallable matchingCallableArityOne(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0)
Deprecated
| |
| matchingCallableArityThree | back to summary |
|---|---|
| public static <T extends ParameterTypes> T matchingCallableArityThree(Ruby runtime, CallableSelector. | |
| matchingCallableArityThree | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityThree(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) | |
| matchingCallableArityThree | back to summary |
|---|---|
| public static JavaCallable matchingCallableArityThree(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
Deprecated
| |
| matchingCallableArityTwo | back to summary |
|---|---|
| public static <T extends ParameterTypes> T matchingCallableArityTwo(Ruby runtime, CallableSelector. | |
| matchingCallableArityTwo | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityTwo(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods, IRubyObject arg0, IRubyObject arg1) | |
| matchingCallableArityTwo | back to summary |
|---|---|
| public static JavaCallable matchingCallableArityTwo(Ruby runtime, Map<K, V> cache, JavaCallable[] methods, IRubyObject arg0, IRubyObject arg1)
Deprecated
| |
| matchingCallableArityZero | back to summary |
|---|---|
| public static <T extends JavaCallable> T matchingCallableArityZero(Ruby runtime, RubyToJavaInvoker<T> invoker, T[] methods) | |
| moreSpecificTypes | back to summary |
|---|---|
| private static Boolean moreSpecificTypes(final Class<T>[] msTypes, final Class<T>[] cTypes, final boolean lastArgProc) | |
| newCallableCache | back to summary |
|---|---|
| public static <T extends ParameterTypes> IntHashMap Deprecated
Internal helper to allocate a callable map to cache argument method matches.
| |
| primitivable | back to summary |
|---|---|
| private static boolean primitivable(final Class<?> type, final IRubyObject arg) This method checks whether an argument can be *directly* converted into the target primitive, i.e. without changing from integral to floating-point.
| |
| procArityValue | back to summary |
|---|---|
| private static int procArityValue(final IRubyObject proc) | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| accept | back to summary |
|---|---|
| public boolean accept(ParameterTypes types, IRubyObject[] args) | |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public void |
| getSignature | back to summary |
|---|---|
| public T getSignature(int signatureCode) | |
| putSignature | back to summary |
|---|---|
| public void putSignature(int signatureCode, T callable) | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| match | back to summary |
|---|---|
| public boolean match(final Class<?> type, final IRubyObject arg) | |