Interface Pipeline.Stage

All Known Implementing Classes:
DefaultPipeline.DefaultStage
Enclosing interface:
Pipeline

public static interface Pipeline.Stage
A single stage in a pipeline, consisting of a command line and the operator that follows it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the command line for this stage.
    default Path
    Returns the input source path, if this stage has an INPUT_REDIRECT operator.
    boolean
    Returns whether this is an append redirection (>>).
    Returns the operator that follows this stage, or null for the last stage.
    Returns the redirect target path, if this stage has a REDIRECT or APPEND operator.
  • Method Details

    • commandLine

      String commandLine()
      Returns the command line for this stage.
      Returns:
      the command line string
    • operator

      Pipeline.Operator operator()
      Returns the operator that follows this stage, or null for the last stage.
      Returns:
      the operator, or null
    • redirectTarget

      Path redirectTarget()
      Returns the redirect target path, if this stage has a REDIRECT or APPEND operator.
      Returns:
      the redirect path, or null
    • isAppend

      boolean isAppend()
      Returns whether this is an append redirection (>>).
      Returns:
      true if append
    • inputSource

      default Path inputSource()
      Returns the input source path, if this stage has an INPUT_REDIRECT operator.
      Returns:
      the input source path, or null