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
SourceElements that are enabled for the step. |
StepConfig.Builder |
suspendAnchors(SourceElement element,
SuspendAnchor... anchors)
Provide a list of
SuspendAnchors for individual SourceElements. |
public StepConfig.Builder sourceElements(SourceElement... elements)
SourceElements that are enabled for the step. It must be a
subset of SourceElements 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)
SuspendAnchors for individual SourceElements. By
default, following suspend anchors are applied:
SourceElement |
SuspendAnchors |
|---|---|
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 <= 0public StepConfig build()
step configuration from this builder.