Name
MessageProbe -- A class that allows the user to call a given message on any candidate that is an instance of, or inherits from, a given class.
Description
This is a specialized subclass of the abstract class Probe. It completes the specification of a probe that refers to a message element of an object.
Methods
Phase: Creating
-
setProbedSelector: (SEL)
aSel The setProbedSelector: method sets the message to be probed given the selector.
+
create: (id <Zone>)
aZone setProbedSelector: (SEL)
aSel Convenience factory method for common case.
Phase: Setting
-
setHideResult: (BOOL)
val The setHideResult: method is used to set the visibility of the result field. When set to 1, the user is indicating that the result field in a graphical representation of the message probe should not be shown.
Phase: Using
- (BOOL)
isResultId The isResultId method returns 1 if the return value of the message is of type object, and returns 0 otherwise.
- (BOOL)
isArgumentId: (int)
which The isArgumentId: method returns 1 if a given argument of the message is of type object, and returns 0 otherwise.
- (const char *)
getProbedMessage The getProbedMessage method returns the string matching the identifier of the message being probed.
- (val_t)
getArg: (int)
which The getArg: method returns the argument type for a given index.
- (const char *)
getArgName: (int)
which The getArgName: method returns a string representation of the argument key with the given index.
- (BOOL)
getHideResult The getHideResult method returns 1 if the result field is "hidden".
-
setArg: (int)
which ToString: (const char *)
what The setArg:ToString: method sets the nth argument of the message. The argument must be provided in string form.
- (val_t)
dynamicCallOn: target The dynamicCallOn: method generates a dynamic message call on the target object.
- (double)
doubleDynamicCallOn: target The doubleDynamicCallOn: method generates a dynamic message call on the target object. This method assumes the user knows the type to be numeric and would like a direct translation into type double.
- (long)
longDynamicCallOn: target The longDynamicCallOn: method generates a dynamic message call on the target object. This method assumes the user knows the return type to be numeric and would like a direct translation into type logn.
- (const char *)
stringDynamicCallOn: target The stringDynamicCallOn: method generates a dynamic message call on the target object. This method assumes the user knows the return type to be const char *.
-
objectDynamicCallOn: target The objectDynamicCallOn: method generates a dynamic message call on the target object. This method assumes the user knows the return type to be id.