Lines Matching defs:asType
108 * {@link LinkerServices#asType(MethodHandle, MethodType)}. It manages the known {@link GuardingTypeConverterFactory}
149 return IDENTITY_CONVERSION.asType(MethodType.methodType(targetType, sourceType));
187 * {@link #asType(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType)} has applied all custom
191 * {@link java.lang.invoke.MethodHandle#asType(java.lang.invoke.MethodType)}.
194 * ordinary {@code MethodHandles.asType}. In this case, a language runtime can install its own custom
196 * {@link MethodTypeConversionStrategy#asType(java.lang.invoke.MethodHandle, java.lang.invoke.MethodType)}
218 * Similar to {@link MethodHandle#asType(MethodType)} except it also hooks in method handles produced by
223 * conversions, it will invoke {@link MethodTypeConversionStrategy#asType(MethodHandle, MethodType)} first
226 * {@link MethodHandle#asType(MethodType)} for any remaining conversions.
230 * @return a method handle that is a suitable combination of {@link MethodHandle#asType(MethodType)},
231 * {@link MethodTypeConversionStrategy#asType(MethodHandle, MethodType)}, and
235 MethodHandle asType(final MethodHandle handle, final MethodType fromType) {
277 autoConversionStrategy != null ? autoConversionStrategy.asType(newHandle, fromType) : newHandle;
279 // Do a final asType for any conversions that remain.
280 return autoConvertedHandle.asType(fromType);
399 final MethodHandle identity = IDENTITY_CONVERSION.asType(type);