Package com.oracle.truffle.api.debug
Class SuspensionFilter.Builder
java.lang.Object
com.oracle.truffle.api.debug.SuspensionFilter.Builder
- Enclosing class:
SuspensionFilter
A builder for creating a suspension filter.
- Since:
- 0.26
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new suspension filter configured by the builder methods.ignoreLanguageContextInitialization
(boolean ignore) Set to ignore language initialization code.includeInternal
(boolean internal) Set to include or excludeinternal code
in the filter.sourceSectionAvailableOnly
(boolean availableOnly) Set to suspend on available source sections only.
-
Method Details
-
ignoreLanguageContextInitialization
Set to ignore language initialization code. The language initialization code is not ignored by default.- Parameters:
ignore
-true
to ignore execution of language context initialization code,false
not to ignore it.- Since:
- 0.26
-
includeInternal
Set to include or excludeinternal code
in the filter. Internal code is excluded by default.- Parameters:
internal
-true
to include execution of internal code,false
to exclude it.- Since:
- 0.29
-
sourceSectionAvailableOnly
Set to suspend on available source sections only. By default all locations with or without available source sections are suspended. If this flag is set totrue
thennull
and notavailable
source sections are not suspended.- Parameters:
availableOnly
-true
to include only non-null andavailable
SourceSection
,false
to include all.- Since:
- 24.1
-
sourceIs
Set aPredicate
that filters based on aSource
. The predicate must always return the same result for a source instance otherwise the behavior is undefined. The predicate should be able run on multiple threads at the same time.- Parameters:
filter
- a source section filter- Since:
- 0.29
-
build
Create a new suspension filter configured by the builder methods.- Since:
- 0.26
-