Function

protocol_getMethodDescription(_:_:_:_:)

Returns a method description structure for a specified method of a given protocol.

Declaration

func protocol_getMethodDescription(_ p: Protocol!, _ aSel: Selector!, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool) -> objc_method_description

Parameters

p

A protocol.

aSel

A selector

isRequiredMethod

A Boolean value that indicates whether aSel is a required method.

isInstanceMethod

A Boolean value that indicates whether aSel is an instance method.

Return Value

An objc_method_description structure that describes the method specified by aSel, isRequiredMethod, and isInstanceMethod for the protocol p.

If the protocol does not contain the specified method, returns an objc_method_description structure with the value {NULL, NULL}.