|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.functor.FunctorCall
public class FunctorCall
Generic implementation of IFunctorCall
.
Constructor Summary | |
---|---|
FunctorCall(java.lang.Object receiver,
IArgs args)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctorCall(java.lang.Object receiver, IArgs args)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |