Interface SnippetOutcome.SuccessfulWithValue

All Superinterfaces:
SnippetOutcome, SnippetOutcome.HasSnippet, SnippetOutcome.Successful
Enclosing interface:
SnippetOutcome

public static sealed interface SnippetOutcome.SuccessfulWithValue extends SnippetOutcome.Successful
Indicates a successful outcome for which some value was returned, e.g., an evaluated expression or the invocation of a non-void method.
  • Method Details

    • returnValue

      Object returnValue()
      Get the value returned from the snippet's execution.
      Returns:
      snippet return value