public static class Node.SkipResult extends Object
context
should be skipped.Modifier and Type | Method | Description |
---|---|---|
static Node.SkipResult |
doNotSkip() |
Factory for creating do not skip results.
|
Optional<String> |
getReason() |
Get the reason that execution of the context should be skipped,
if available.
|
boolean |
isSkipped() |
Whether execution of the context should be skipped.
|
static Node.SkipResult |
skip(String reason) |
Factory for creating skipped results.
|
String |
toString() |
public static Node.SkipResult skip(String reason)
A context that is skipped will be not be executed.
reason
- the reason that the context should be skipped,
may be null
SkipResult
with the given reasonpublic static Node.SkipResult doNotSkip()
A context that is not skipped will be executed as normal.
SkipResult
public boolean isSkipped()
true
if the execution should be skippedpublic Optional<String> getReason()
Copyright © 2019. All rights reserved.