Package io.molr.mole.core.runnable
Class RunnableLeafsMission.Builder
- java.lang.Object
-
- io.molr.mole.core.runnable.RunnableLeafsMission.Builder
-
- Enclosing class:
- RunnableLeafsMission
public static class RunnableLeafsMission.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlockLetValues(Block block, Map<Placeholder<?>,Function<In,?>> letValues)
void
addContextConfiguration(Block block, ContextConfiguration contextConfiguration)
void
blockTextFormat(Block block, List<Placeholder<?>> placeholders)
RunnableLeafsMission
build(MissionParameterDescription parameterDescription)
Block
childBranchNode(Block parent, BlockNameConfiguration name, BranchMode branchMode, Set<BlockAttribute> blockAttributes)
void
contextFactory(Block block, Placeholder<?> contextPlaceholder, Function<In,?> newContextFactory)
<T> void
forEachBlock(Block block, Placeholder<? extends Collection<T>> collectionPlaceholder, Placeholder<T> itemPlaceholder)
<T,U>
voidforEachBlock(Block block, Placeholder<? extends Collection<T>> collectionPlaceholder, Placeholder<T> itemPlaceholder, Placeholder<U> transformedItemPlaceholder, Function<In,U> function)
void
forEachConfig(Block block, ForEachConfiguration<?,?> config)
Block
latest()
Retrieves the latest created block.Block
leafChild(Block parent, BlockNameConfiguration childName, BiConsumer<In,Out> runnable, Set<BlockAttribute> blockAttributes)
Block
root()
Block
rootBranchNode(BlockNameConfiguration rootName, BranchMode branchMode, Set<BlockAttribute> blockAttributes)
-
-
-
Method Detail
-
rootBranchNode
public Block rootBranchNode(BlockNameConfiguration rootName, BranchMode branchMode, Set<BlockAttribute> blockAttributes)
-
childBranchNode
public Block childBranchNode(Block parent, BlockNameConfiguration name, BranchMode branchMode, Set<BlockAttribute> blockAttributes)
-
leafChild
public Block leafChild(Block parent, BlockNameConfiguration childName, BiConsumer<In,Out> runnable, Set<BlockAttribute> blockAttributes)
-
root
public Block root()
-
build
public RunnableLeafsMission build(MissionParameterDescription parameterDescription)
-
contextFactory
public void contextFactory(Block block, Placeholder<?> contextPlaceholder, Function<In,?> newContextFactory)
-
latest
public Block latest()
Retrieves the latest created block. This is intended mainly for testing.- Returns:
- the most recently created (added) block.
-
forEachBlock
public <T> void forEachBlock(Block block, Placeholder<? extends Collection<T>> collectionPlaceholder, Placeholder<T> itemPlaceholder)
-
forEachBlock
public <T,U> void forEachBlock(Block block, Placeholder<? extends Collection<T>> collectionPlaceholder, Placeholder<T> itemPlaceholder, Placeholder<U> transformedItemPlaceholder, Function<In,U> function)
-
blockTextFormat
public void blockTextFormat(Block block, List<Placeholder<?>> placeholders)
-
forEachConfig
public void forEachConfig(Block block, ForEachConfiguration<?,?> config)
-
addContextConfiguration
public void addContextConfiguration(Block block, ContextConfiguration contextConfiguration)
-
addBlockLetValues
public void addBlockLetValues(Block block, Map<Placeholder<?>,Function<In,?>> letValues)
-
-