public interface LoopNodeConfigFactory
Modifier and Type | Method and Description |
---|---|
AlwaysLoopNodeConfig |
createAlwaysConfig()
Creates a loop always (infinitely) configuration.
|
CounterLoopNodeConfig |
createCounterConfig(int loopCount,
ErrorHandler<Integer> errorHandler)
Creates a loop counter configuration.
|
ExpressionLoopNodeConfig |
createExpressionConfig(Expression expression,
boolean evaluateContinuously)
Create a loop expression configuration.
|
AlwaysLoopNodeConfig createAlwaysConfig()
CounterLoopNodeConfig createCounterConfig(int loopCount, ErrorHandler<Integer> errorHandler)
loopCount
- the number of iterations through the loop node.errorHandler
- error handler for handling validation. If using ErrorHandler.AUTO_CORRECT
this will clamp the value to the nearest valid loop count value.ExpressionLoopNodeConfig createExpressionConfig(Expression expression, boolean evaluateContinuously)
expression
- the expression whose evaluation must be true to continue looping, not null
.evaluateContinuously
- if true
the expression will be evaluated continuously during the looping (i.e. the
loop can be interrupted anytime during its execution), otherwise false
and the expression
will be evaluated once per loop iteration.Copyright © 2021. All rights reserved.