public class FunctorCall extends Object implements IFunctorCall
IFunctorCall.| Constructor and Description |
|---|
FunctorCall(Object receiver,
IArgs args) |
| Modifier and Type | Method and Description |
|---|---|
static FunctorCall |
create(Object receiver,
Object... arguments)
Create an
IFunctorCall with receiver as the receiver
and the indexed arguments. |
IArgs |
getArgs()
The arguments currently associated with the call.
|
Object |
getReceiver()
The receiver for the behavior implemented.
|
static FunctorCall |
noargs(Object receiver)
Create an
IFunctorCall with receiver as the receiver
and no arguments. |
void |
setArgs(IArgs args)
Assign an argument list for the call.
|
void |
setReceiver(Object receiver)
Assign a new receiver.
|
public static FunctorCall create(Object receiver, Object... arguments)
IFunctorCall with receiver as the receiver
and the indexed arguments.receiver - The receiver for the call.arguments - The indexed arguments for the call.IFunctorCallpublic static FunctorCall noargs(Object receiver)
IFunctorCall with receiver as the receiver
and no arguments.receiver - The receiver for the call.IFunctorCallpublic IArgs getArgs()
IFunctorCallgetArgs in interface IFunctorCallpublic Object getReceiver()
IFunctorCallgetReceiver in interface IFunctorCallpublic void setArgs(IArgs args)
IFunctorCallThis is for example useful when handling with declarations modifying the original functor call.
setArgs in interface IFunctorCallpublic void setReceiver(Object receiver)
IFunctorCallsetReceiver in interface IFunctorCallreceiver - The new receiverCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.