public abstract class AbstractDefinedFunctor extends AbstractTypedFunctor implements DefinedFunctor
| Constructor and Description |
|---|
AbstractDefinedFunctor(TypedFunctor inner)
Sole Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ArgumentStack stack)
This method performs an invocation of this function object.
|
TypedFunctor |
inner()
This method retrieves the functor that is wrapped by this object.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitparameterTypes, returnTypepublic AbstractDefinedFunctor(TypedFunctor inner)
inner - is the inner() functor.NullPointerException.public final TypedFunctor inner()
inner in interface DefinedFunctorpublic final void apply(ArgumentStack stack) throws java.lang.Throwable
Programmers should not call this method directly. Instead, for convenience, call this method indirectly via (F::apply List).
Calling Convention from top to bottom (n >= 0):
The argument stack will be cleared and then the result will be pushed onto it. If the functor does not return a value, then the stack will remain empty.
apply in interface DefinedFunctorapply in interface Functorstack - is a stack containing the arguments being passed to this functor.java.lang.Throwable - in order to propagate exceptions thrown by the functor.public final java.lang.String toString()
toString in class java.lang.Object