Class FunctorCall

java.lang.Object
de.intarsys.tools.functor.FunctorCall
All Implemented Interfaces:
IFunctorCall

public class FunctorCall extends Object implements IFunctorCall
Generic implementation of IFunctorCall.
  • Constructor Details

    • FunctorCall

      public FunctorCall(Object receiver, IArgs args)
  • Method Details

    • create

      public static FunctorCall create(Object receiver, Object... arguments)
      Create an IFunctorCall with receiver as 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(Object receiver)
      Create an IFunctorCall with receiver as the receiver and no arguments.
      Parameters:
      receiver - The receiver for the call.
      Returns:
      The new IFunctorCall
    • getArgs

      public IArgs getArgs()
      Description copied from interface: IFunctorCall
      The arguments currently associated with the call.
      Specified by:
      getArgs in interface IFunctorCall
      Returns:
      The arguments currently associated with the call.
    • getReceiver

      public Object getReceiver()
      Description copied from interface: IFunctorCall
      The receiver for the behavior implemented.
      Specified by:
      getReceiver in interface IFunctorCall
      Returns:
      The receiver for the behavior implemented.
    • setArgs

      public void setArgs(IArgs args)
      Description copied from interface: IFunctorCall
      Assign an argument list for the call.

      This is for example useful when handling with declarations modifying the original functor call.

      Specified by:
      setArgs in interface IFunctorCall
    • setReceiver

      public void setReceiver(Object receiver)
      Description copied from interface: IFunctorCall
      Assign a new receiver.
      Specified by:
      setReceiver in interface IFunctorCall
      Parameters:
      receiver - The new receiver