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