protected List < LightweightTypeReference > getParamTypeReferences ( JvmExecutable jvmExecutable , boolean wrapFromPrimitives , boolean wrapToPrimitives ) { assert ( wrapFromPrimitives && ! wrapToPrimitives ) || ( wrapToPrimitives && ! wrapFromPrimitives ) ; final List < LightweightTypeReference > types = newArrayList ( ) ; for ( final JvmFormalParameter parameter : jvmExecutable . getParameters ( ) ) { LightweightTypeReference typeReference = toLightweightTypeReference ( parameter . getParameterType ( ) ) ; if ( wrapFromPrimitives ) { typeReference = typeReference . getWrapperTypeIfPrimitive ( ) ; } else if ( wrapToPrimitives ) { typeReference = typeReference . getPrimitiveIfWrapperType ( ) ; } types . add ( typeReference ) ; } return types ; }
Retrieve the types of the formal parameters of the given JVM executable object .