Package io.molr.mole.core.runnable.lang
Class OngoingContextualOptionProvidingBranch<A extends OngoingContextualOptionProvidingBranch<A>>
- java.lang.Object
-
- io.molr.mole.core.runnable.lang.OngoingNode<B>
-
- io.molr.mole.core.runnable.lang.GenericOngoingBranch<A>
-
- io.molr.mole.core.runnable.lang.OngoingContextualOptionProvidingBranch<A>
-
- Direct Known Subclasses:
OngoingContextualBranch
,OngoingRootBranch
,OngoingSimpleBranch
public class OngoingContextualOptionProvidingBranch<A extends OngoingContextualOptionProvidingBranch<A>> extends GenericOngoingBranch<A>
-
-
Constructor Summary
Constructors Constructor Description OngoingContextualOptionProvidingBranch(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Map<Placeholder<?>,Function<In,?>> mappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C,P1,P2>
OngoingContextualBranchWithNewContext<C>contextual(BiFunction<P1,P2,C> contextFactory, Placeholder<P1> p1, Placeholder<P2> p2)
<C> OngoingContextualBranchWithNewContext<C>
contextual(Function<In,C> contextFactory)
<C,P1>
OngoingContextualBranchWithNewContext<C>contextual(Function<P1,C> contextFactory, Placeholder<P1> p1)
<C> OngoingContextualBranchWithNewContext<C>
contextual(Supplier<C> contextFactory)
-
Methods inherited from class io.molr.mole.core.runnable.lang.GenericOngoingBranch
block, mode, parallel, parallel, sequential
-
Methods inherited from class io.molr.mole.core.runnable.lang.OngoingNode
blockAttributes, builder, getMappings, let, name, parent, perDefault, perDefaultDont
-
-
-
-
Constructor Detail
-
OngoingContextualOptionProvidingBranch
public OngoingContextualOptionProvidingBranch(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Map<Placeholder<?>,Function<In,?>> mappings)
-
-
Method Detail
-
contextual
public <C> OngoingContextualBranchWithNewContext<C> contextual(Supplier<C> contextFactory)
-
contextual
public <C> OngoingContextualBranchWithNewContext<C> contextual(Function<In,C> contextFactory)
-
contextual
public <C,P1> OngoingContextualBranchWithNewContext<C> contextual(Function<P1,C> contextFactory, Placeholder<P1> p1)
-
contextual
public <C,P1,P2> OngoingContextualBranchWithNewContext<C> contextual(BiFunction<P1,P2,C> contextFactory, Placeholder<P1> p1, Placeholder<P2> p2)
-
-