Package de.intarsys.tools.functor
Class FunctorCall
java.lang.Object
de.intarsys.tools.functor.FunctorCall
- All Implemented Interfaces:
IFunctorCall
Generic implementation of
IFunctorCall
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctorCall
Create anIFunctorCall
withreceiver
as the receiver and the indexed arguments.getArgs()
The arguments currently associated with the call.The receiver for the behavior implemented.static FunctorCall
Create anIFunctorCall
withreceiver
as the receiver and no arguments.void
Assign an argument list for the call.void
setReceiver
(Object receiver) Assign a new receiver.
-
Constructor Details
-
FunctorCall
-
-
Method Details
-
create
Create anIFunctorCall
withreceiver
as the receiver and the indexed arguments.- Parameters:
receiver
- The receiver for the call.arguments
- The indexed arguments for the call.- Returns:
- The new
IFunctorCall
-
noargs
Create anIFunctorCall
withreceiver
as the receiver and no arguments.- Parameters:
receiver
- The receiver for the call.- Returns:
- The new
IFunctorCall
-
getArgs
Description copied from interface:IFunctorCall
The arguments currently associated with the call.- Specified by:
getArgs
in interfaceIFunctorCall
- Returns:
- The arguments currently associated with the call.
-
getReceiver
Description copied from interface:IFunctorCall
The receiver for the behavior implemented.- Specified by:
getReceiver
in interfaceIFunctorCall
- Returns:
- The receiver for the behavior implemented.
-
setArgs
Description copied from interface:IFunctorCall
Assign an argument list for the call.This is for example useful when handling with declarations modifying the original functor call.
- Specified by:
setArgs
in interfaceIFunctorCall
-
setReceiver
Description copied from interface:IFunctorCall
Assign a new receiver.- Specified by:
setReceiver
in interfaceIFunctorCall
- Parameters:
receiver
- The new receiver
-