public final class StepConfig.Builder extends Object
StepConfig
.StepConfig.newBuilder()
Modifier and Type | Method and Description |
---|---|
StepConfig |
build()
Create a
step configuration from this builder. |
StepConfig.Builder |
count(int count)
Provide the step count.
|
StepConfig.Builder |
sourceElements(SourceElement... elements)
Provide a list of
SourceElement s that are enabled for the step. |
StepConfig.Builder |
suspendAnchors(SourceElement element,
SuspendAnchor... anchors)
Provide a list of
SuspendAnchor s for individual SourceElement s. |
public StepConfig.Builder sourceElements(SourceElement... elements)
SourceElement
s that are enabled for the step. It must be a
subset of SourceElement
s enabled in DebuggerSession
which the step is
prepared for. At least one source element needs to be provided and can only be invoked
once per builder. When not called, by default all source elements enabled in the debugger
session are also enabled for the step.elements
- a non-empty list of source elementspublic StepConfig.Builder suspendAnchors(SourceElement element, SuspendAnchor... anchors)
SuspendAnchor
s for individual SourceElement
s. By
default, following suspend anchors are applied:
SourceElement |
SuspendAnchor s |
---|---|
ROOT |
BEFORE , AFTER |
STATEMENT |
BEFORE |
EXPRESSION |
BEFORE , AFTER |
element
- the element to set the suspend anchor foranchors
- a list of suspend anchorspublic StepConfig.Builder count(int count)
IllegalArgumentException
- if count <= 0
public StepConfig build()
step configuration
from this builder.