Package de.intarsys.tools.functor
Class FunctorCall
- java.lang.Object
-
- de.intarsys.tools.functor.FunctorCall
-
- All Implemented Interfaces:
IFunctorCall
public class FunctorCall extends java.lang.Object implements IFunctorCall
Generic implementation ofIFunctorCall.
-
-
Constructor Summary
Constructors Constructor Description FunctorCall(java.lang.Object receiver, IArgs args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctorCallcreate(java.lang.Object receiver, java.lang.Object... arguments)Create anIFunctorCallwithreceiveras the receiver and the indexed arguments.IArgsgetArgs()The arguments currently associated with the call.java.lang.ObjectgetReceiver()The receiver for the behavior implemented.static FunctorCallnoargs(java.lang.Object receiver)Create anIFunctorCallwithreceiveras the receiver and no arguments.voidsetArgs(IArgs args)Assign an argument list for the call.voidsetReceiver(java.lang.Object receiver)Assign a new receiver.
-
-
-
Constructor Detail
-
FunctorCall
public FunctorCall(java.lang.Object receiver, IArgs args)
-
-
Method Detail
-
create
public static FunctorCall create(java.lang.Object receiver, java.lang.Object... arguments)
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
public static FunctorCall noargs(java.lang.Object receiver)
Create anIFunctorCallwithreceiveras the receiver and no arguments.- Parameters:
receiver- The receiver for the call.- Returns:
- The new
IFunctorCall
-
getArgs
public IArgs 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
public java.lang.Object getReceiver()
Description copied from interface:IFunctorCallThe receiver for the behavior implemented.- Specified by:
getReceiverin interfaceIFunctorCall- Returns:
- The receiver for the behavior implemented.
-
setArgs
public void setArgs(IArgs args)
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
public void setReceiver(java.lang.Object receiver)
Description copied from interface:IFunctorCallAssign a new receiver.- Specified by:
setReceiverin interfaceIFunctorCall- Parameters:
receiver- The new receiver
-
-