Function 関数

protocol_getMethodDescription

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

Declaration 宣言

struct objc_method_description protocol_getMethodDescription(Protocol *proto, SEL aSel, BOOL isRequiredMethod, BOOL isInstanceMethod);

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 プロトコルを扱う