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 FunctorCallCreate anIFunctorCallwithreceiveras the receiver and the indexed arguments.getArgs()The arguments currently associated with the call.The receiver for the behavior implemented.static FunctorCallCreate anIFunctorCallwithreceiveras the receiver and no arguments.voidAssign an argument list for the call.voidsetReceiver(Object receiver) Assign a new receiver.
-
Constructor Details
-
FunctorCall
-
-
Method Details
-
create
Create anIFunctorCallwithreceiveras 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 anIFunctorCallwithreceiveras the receiver and no arguments.- Parameters:
receiver- The receiver for the call.- Returns:
- The new
IFunctorCall
-
getArgs
Description copied from interface:IFunctorCallThe arguments currently associated with the call.- Specified by:
getArgsin interfaceIFunctorCall- Returns:
- The arguments currently associated with the call.
-
getReceiver
Description copied from interface:IFunctorCallThe receiver for the behavior implemented.- Specified by:
getReceiverin interfaceIFunctorCall- Returns:
- The receiver for the behavior implemented.
-
setArgs
Description copied from interface:IFunctorCallAssign an argument list for the call.This is for example useful when handling with declarations modifying the original functor call.
- Specified by:
setArgsin interfaceIFunctorCall
-
setReceiver
Description copied from interface:IFunctorCallAssign a new receiver.- Specified by:
setReceiverin interfaceIFunctorCall- Parameters:
receiver- The new receiver
-