public final class Instructions extends Object
Instruction
instances.Modifier and Type | Method and Description |
---|---|
static <C,E extends InstructionExecutor<? super C>> |
execute(InstructionChain instructionChain,
Iterable<E> executors,
C context)
Uses the given
InstructionExecutor s to execute the Instruction s found in the
given InstructionChain . |
public static <C,E extends InstructionExecutor<? super C>> void execute(InstructionChain instructionChain, Iterable<E> executors, C context)
InstructionExecutor
s to execute the Instruction
s found in the
given InstructionChain
.C
- Context: type of object which provides the additional information for executionE
- Executor: type of InstructionExecutor
to be used for executioninstructionChain
- holds the Instruction
s to be executed. If this parameter is
null
or an empty chain, nothing happens.executors
- instances of InstructionExecutor
which, together, provide the execution
logic. Must not be null
.context
- additional objects which the InstructionExecutor
s may need for executionIllegalArgumentException
- if no executors are providedCopyright © 2024 levigo holding gmbh. All rights reserved.