Class SuspensionFilter.Builder

java.lang.Object
com.oracle.truffle.api.debug.SuspensionFilter.Builder
Enclosing class:
SuspensionFilter

public final class SuspensionFilter.Builder extends Object
A builder for creating a suspension filter.
Since:
0.26
  • Method Details

    • ignoreLanguageContextInitialization

      public SuspensionFilter.Builder ignoreLanguageContextInitialization(boolean ignore)
      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

      public SuspensionFilter.Builder includeInternal(boolean internal)
      Set to include or exclude internal 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

      public SuspensionFilter.Builder sourceSectionAvailableOnly(boolean availableOnly)
      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 to true then null and not available source sections are not suspended.
      Parameters:
      availableOnly - true to include only non-null and available SourceSection, false to include all.
      Since:
      24.1
    • sourceIs

      public SuspensionFilter.Builder sourceIs(Predicate<Source> filter)
      Set a Predicate that filters based on a Source. 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

      public SuspensionFilter build()
      Create a new suspension filter configured by the builder methods.
      Since:
      0.26