Function 関数

protocol_getMethodDescription(_:_:_:_:)

Returns a method description structure for a specified method of a given protocol. 与えられたプロトコルのある指定されたメソッドに対するメソッド記述構造体を返します。

Declaration 宣言

func protocol_getMethodDescription(_ proto: 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}.

See Also 参照

Working with Protocols プロトコルを扱う