spring-framework / org.springframework.asm / TypeReference / newTypeArgumentReference

newTypeArgumentReference

open static fun newTypeArgumentReference(sort: Int, argIndex: Int): TypeReference

Returns a reference to the type of a type argument in a constructor or method call or reference.

Parameters

sort - CAST, CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT, METHOD_INVOCATION_TYPE_ARGUMENT, CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT, or METHOD_REFERENCE_TYPE_ARGUMENT.

argIndex - the type argument index.

Return
a reference to the type of the given type argument.