olua.lib
Class Invocation

olua.lib.Object
└─ olua.lib.Invocation

I represent a method called on an object.

Instances of me are automatically created and passed into olua.lib.Object>>forwardInvocation: by the runtime when an unrecognised selector is encountered. Instances of me can also be created manually and used to dynamically construct method calls, although it's usually just as easy to use traditional Lua syntax.


Method Summary
- arguments
Returns the list of arguments of my method.
- selector
Returns the selector of my method.
- setArguments: newargs
Changes the list of arguments of my method.
- setSelector: newselector
Changes my selector.
- setTarget: newtarget
Changes my target to the specified object.
- target
Returns the object I'm currently targeted to.
Method Detail

- arguments

Returns the list of arguments of my method.

Returns:
the mutable list of arguments

- invoke

Calls my method and returns the result.

Returns:
the result of the method

- invokeWithTarget: target

Calls my method on the specified object.

Note that my current target is ignored in favour of the specified one.

Parameters:
target - the object to call the method on
Returns:
the result of the method

- selector

Returns the selector of my method.

Returns:
the mangled selector

- setArguments: newargs

Changes the list of arguments of my method.

Parameters:
newarguments - the new list of arguments

- setSelector: newselector

Changes my selector.

Parameters:
newselector - the new mangled selector

- setTarget: newtarget

Changes my target to the specified object.

Parameters:
newtarget - the new target

- target

Returns the object I'm currently targeted to.

Returns:
the target