APIdia Launch Partner
Top Description Methods
jdk.dynalink.linker

public Interface MethodTypeConversionStrategy

Annotations
@FunctionalInterface
Imports
java.lang.invoke.MethodHandle, .MethodType, jdk.dynalink.DynamicLinkerFactory

Interface for objects representing a strategy for converting a method handle to a new type. Typical usage is for customizing a language runtime's handling of method invocation conversions.
Since
9

Method Summary

Modifier and TypeMethod and Description
public MethodHandle

Returns:

target converted to the new type.
asType
(final MethodHandle
target method handle
target
,
final MethodType
new type
newType
)

Converts a method handle to a new type.

Method Detail

asTypeback to summary
public MethodHandle asType(final MethodHandle target, final MethodType newType)

Converts a method handle to a new type.

Parameters
target:MethodHandle

target method handle

newType:MethodType

new type

Returns:MethodHandle

target converted to the new type.