public static final class ResultVerifier.SnippetRun extends Object
Modifier and Type | Method and Description |
---|---|
static ResultVerifier.SnippetRun |
create(Snippet snippet,
List<? extends Value> parameters,
PolyglotException exception)
Creates a new
ResultVerifier.SnippetRun for failed execution. |
static ResultVerifier.SnippetRun |
create(Snippet snippet,
List<? extends Value> parameters,
Value result)
Creates a new
ResultVerifier.SnippetRun for successful execution. |
PolyglotException |
getException()
Returns the
PolyglotException thrown during snippet execution. |
List<? extends Value> |
getParameters()
Returns the actual parameters of a snippet execution.
|
Value |
getResult()
Returns the result of a snippet execution.
|
public List<? extends Value> getParameters()
public Value getResult()
public PolyglotException getException()
PolyglotException
thrown during snippet execution. If the snippet
execution throws an IllegalArgumentException
, this exception is first converted
to a PolyglotException
, and the resulting PolyglotException
is provided
by this method.PolyglotException
thrown during the execution or null in case of
successful execution.public static ResultVerifier.SnippetRun create(Snippet snippet, List<? extends Value> parameters, Value result)
ResultVerifier.SnippetRun
for successful execution.snippet
- the executed Snippet
parameters
- the actual parameters of snippet executionresult
- the result of snippet executionResultVerifier.SnippetRun
public static ResultVerifier.SnippetRun create(Snippet snippet, List<? extends Value> parameters, PolyglotException exception)
ResultVerifier.SnippetRun
for failed execution.snippet
- the executed Snippet
parameters
- the actual parameters of snippet executionexception
- the PolyglotException
thrown during snippet executionResultVerifier.SnippetRun