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

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.String commandLine()
      Returns the command line for this stage.
      default java.nio.file.Path inputSource()
      Returns the input source path, if this stage has an INPUT_REDIRECT operator.
      boolean isAppend()
      Returns whether this is an append redirection (>>).
      Pipeline.Operator operator()
      Returns the operator that follows this stage, or null for the last stage.
      java.nio.file.Path redirectTarget()
      Returns the redirect target path, if this stage has a REDIRECT or APPEND operator.
    • Method Detail

      • commandLine

        java.lang.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

        java.nio.file.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 java.nio.file.Path inputSource()
        Returns the input source path, if this stage has an INPUT_REDIRECT operator.
        Returns:
        the input source path, or null