public static class Node.SkipResult extends Object
context
should be skipped.Modifier and Type | Method and Description |
---|---|
static Node.SkipResult |
doNotSkip()
Factory for creating do not skip results.
|
Optional<String> |
getReason()
Get the reason why 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 why the context should be skippedSkipResult
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()