public final class Breakpoint.Builder extends Object
breakpoint.Breakpoint.newBuilder(Source),
Breakpoint.newBuilder(URI),
Breakpoint.newBuilder(SourceSection)| Modifier and Type | Method and Description |
|---|---|
Breakpoint |
build() |
Breakpoint.Builder |
columnIs(int column)
Specifies the breakpoint's column number.
|
Breakpoint.Builder |
ignoreCount(int ignoreCount)
Specifies the number of times a breakpoint is ignored until it hits (i.e.
|
Breakpoint.Builder |
lineIs(int line)
Specifies the breakpoint's line number.
|
Breakpoint.Builder |
oneShot()
Specifies that the breakpoint will disable
itself after suspending execution, i.e.
|
Breakpoint.Builder |
resolveListener(Breakpoint.ResolveListener resolveListener)
Set a resolve listener.
|
Breakpoint.Builder |
rootInstance(DebugValue rootInstance)
Specifies the breakpoint's root instance.
|
Breakpoint.Builder |
sourceElements(SourceElement... sourceElements)
Specifies which source elements will this breakpoint adhere to.
|
Breakpoint.Builder |
suspendAnchor(SuspendAnchor anchor)
Specify the breakpoint suspension anchor within the guest language source location.
|
public Breakpoint.Builder lineIs(int line)
Breakpoint.newBuilder(SourceSection).line - 1-based line numberIllegalStateException - if line < 1public Breakpoint.Builder suspendAnchor(SuspendAnchor anchor)
before the source location.anchor - the breakpoint suspension anchorpublic Breakpoint.Builder columnIs(int column)
Breakpoint.newBuilder(SourceSection). A line needs to be specified before a
column can be set.column - 1-based column numberIllegalStateException - if column < 1public Breakpoint.Builder resolveListener(Breakpoint.ResolveListener resolveListener)
line and
column.public Breakpoint.Builder ignoreCount(int ignoreCount)
Breakpoint.setIgnoreCount(int)public Breakpoint.Builder oneShot()
Disabled one-shot breakpoints can be re-enabled.
public Breakpoint.Builder sourceElements(SourceElement... sourceElements)
SourceElement.STATEMENT elements. Can only be invoked once
per builder.sourceElements - a non-empty list of source elementspublic Breakpoint.Builder rootInstance(DebugValue rootInstance)
DebugScope.getRootInstance() matches to the provided one.rootInstance - value of the root instance in which the breakpoint is to be hit.public Breakpoint build()
SOURCE_LOCATION kind.