Elide GraalVM25.6.0-elide.4
All types
Versions and modules

InlineSnippet.Builder

Javaclassin org.graalvm.polyglot.tcksince 0.32

public static final class InlineSnippet.Builder
Inheritance
  1. Object
  2. Builder
Enclosing type
InlineSnippet

The builder of an InlineSnippet.

Methods3

InlineSnippet.Builder locationPredicate(Predicate<SourceSection>)

locationPredicate

since 0.32
public InlineSnippet.Builder locationPredicate(Predicate<SourceSection> locationPredicate)

Sets a testing predicate for locations at which the source is executed. By default, the source is executed at all instrumentable statement and call locations in the script.

Parameters

locationPredicatePredicate<SourceSection>
No description.

Returns

InlineSnippet.Builder
the predicate that returns true for SourceSections where source is to be executed
InlineSnippet.Builder resultVerifier(ResultVerifier)

resultVerifier

since 0.32
public InlineSnippet.Builder resultVerifier(ResultVerifier resultVerifier)

Sets a custom verifier of a result of the inline source execution.

Parameters

resultVerifierResultVerifier
the custom ResultVerifier
InlineSnippet build()

build

since 0.32
public InlineSnippet build()

Creates a new InlineSnippet configured by this Builder.

Inherited members