CPInvocation Class Reference

List of all members.

Public Member Functions

(id) - initWithMethodSignature: [implementation]
(void) - setSelector: [implementation]
(SEL) - selector [implementation]
(void) - setTarget: [implementation]
(id) - target [implementation]
(void) - setArgument:atIndex: [implementation]
(id) - argumentAtIndex: [implementation]
(void) - setReturnValue: [implementation]
(id) - returnValue [implementation]
(void) - invoke [implementation]
(void) - invokeWithTarget: [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(id) + invocationWithMethodSignature: [implementation]


Detailed Description

A CPInvocation is an object representation of a message sent to an object.

Definition at line 30 of file CPInvocation.j.


Member Function Documentation

- (id) argumentAtIndex: (unsigned)  anIndex   [implementation]

Returns the argument at the specified index. Arguments 0 and 1 are self and _cmd respectively. Thus, method arguments start at 2.

Parameters:
anIndex the index of the argument to return
Exceptions:
CPInvalidArgumentException if anIndex is greater than or equal to the invocation's number of arguments.

Definition at line 117 of file CPInvocation.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Writes out the invocation's data to the provided coder.

Parameters:
aCoder the coder to which the data will be written

Definition at line 187 of file CPInvocation.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Initializes the invocation with data from a coder.

Parameters:
aCoder the coder from which to obtain initialization data
Returns:
the initialized invocation

Definition at line 170 of file CPInvocation.j.

- (id) initWithMethodSignature: (CPMethodSignature)  aMethodSignature   [implementation]

Initializes the invocation with a provided method signature

Parameters:
aMethodSignature the signature of the method to message
Returns:
the initialized invocation

Definition at line 53 of file CPInvocation.j.

+ (id) invocationWithMethodSignature: (CPMethodSignature)  aMethodSignature   [implementation]

Returns a new CPInvocation that represents a message to a method.

Parameters:
aMethodSignature the signature of the method to message
Returns:
the new invocation

Definition at line 43 of file CPInvocation.j.

- (void) invoke   [implementation]

Sends the encapsulated message to the stored target.

Definition at line 143 of file CPInvocation.j.

- (void) invokeWithTarget: (id)  aTarget   [implementation]

Sends the encapsulated message to the specified target.

Parameters:
the target to which the message will be sent

Definition at line 152 of file CPInvocation.j.

- (id) returnValue   [implementation]

Returns the invocation's return value

Definition at line 134 of file CPInvocation.j.

- (SEL) selector   [implementation]

Returns the invocation's selector

Definition at line 79 of file CPInvocation.j.

- (void) setArgument: (id)  anArgument
atIndex: (unsigned)  anIndex 
[implementation]

Sets a method argument for the invocation. Arguments 0 and 1 are self and _cmd.

Parameters:
anArgument the argument to add
anIndex the index of the argument in the method

Definition at line 106 of file CPInvocation.j.

- (void) setReturnValue: (id)  aReturnValue   [implementation]

Sets the invocation's return value

Parameters:
the invocation return value

Definition at line 126 of file CPInvocation.j.

- (void) setSelector: (SEL)  aSelector   [implementation]

Sets the invocation's selector.

Parameters:
the invocation selector

Definition at line 71 of file CPInvocation.j.

- (void) setTarget: (id)  aTarget   [implementation]

Sets the invocation's target

Parameters:
aTarget the invocation target

Definition at line 88 of file CPInvocation.j.

- (id) target   [implementation]

Returns the invocation's target

Definition at line 96 of file CPInvocation.j.


The documentation for this class was generated from the following file:

Generated on Thu Dec 11 01:55:50 2008 for Cappuccino by  doxygen 1.5.7.1