MethodType

Class MethodType

All Implemented Interfaces:
Serializable
public final class MethodType
extends Object
implements Serializable

A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller. Method types must be properly matched between a method handle and all its callers, and the JVM's operations enforce this matching at, specifically during calls to MethodHandle.invokeExact and 登录查看完整内容