public static MethodHandle of ( MethodDescription . InDefinedShape methodDescription ) { return new MethodHandle ( HandleType . of ( methodDescription ) , methodDescription . getDeclaringType ( ) . asErasure ( ) , methodDescription . getInternalName ( ) , methodDescription . getReturnType ( ) . asErasure ( ) , methodDescription . getParameters ( ) . asTypeList ( ) . asErasures ( ) ) ; }
Creates a method handle representation of the given method .