Class Node.SkipResult

    • Method Detail

      • skip

        public static Node.SkipResult skip​(String reason)
        Factory for creating skipped results.

        A context that is skipped will be not be executed.

        Parameters:
        reason - the reason that the context should be skipped, may be null
        Returns:
        a skipped SkipResult with the given reason
      • doNotSkip

        public static Node.SkipResult doNotSkip()
        Factory for creating do not skip results.

        A context that is not skipped will be executed as normal.

        Returns:
        a do not skip SkipResult
      • isSkipped

        public boolean isSkipped()
        Whether execution of the context should be skipped.
        Returns:
        true if the execution should be skipped
      • getReason

        public Optional<String> getReason()
        Get the reason that execution of the context should be skipped, if available.