public class FunctorCall extends java.lang.Object implements IFunctorCall
IFunctorCall
.Constructor and Description |
---|
FunctorCall(java.lang.Object receiver,
IArgs args) |
Modifier and Type | Method and Description |
---|---|
static FunctorCall |
create(java.lang.Object receiver,
java.lang.Object... arguments)
Create an
IFunctorCall with receiver as the receiver
and the indexed arguments. |
IArgs |
getArgs()
The arguments currently associated with the call.
|
java.lang.Object |
getReceiver()
The receiver for the behavior implemented.
|
static FunctorCall |
noargs(java.lang.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(java.lang.Object receiver)
Assign a new receiver.
|
public FunctorCall(java.lang.Object receiver, IArgs args)
public static FunctorCall create(java.lang.Object receiver, java.lang.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.IFunctorCall
public static FunctorCall noargs(java.lang.Object receiver)
IFunctorCall
with receiver
as the receiver
and no arguments.receiver
- The receiver for the call.IFunctorCall
public IArgs getArgs()
IFunctorCall
getArgs
in interface IFunctorCall
public java.lang.Object getReceiver()
IFunctorCall
getReceiver
in interface IFunctorCall
public void setArgs(IArgs args)
IFunctorCall
This is for example useful when handling with declarations modifying the original functor call.
setArgs
in interface IFunctorCall
public void setReceiver(java.lang.Object receiver)
IFunctorCall
setReceiver
in interface IFunctorCall
receiver
- The new receiver