Class DefaultPipeline.DefaultStage

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultStage​(java.lang.String commandLine, Pipeline.Operator operator, java.nio.file.Path redirectTarget, boolean append)
      Creates a new stage.
      DefaultStage​(java.lang.String commandLine, Pipeline.Operator operator, java.nio.file.Path redirectTarget, boolean append, java.nio.file.Path inputSource)
      Creates a new stage with input source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String commandLine()
      Returns the command line for this stage.
      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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultStage

        public DefaultStage​(java.lang.String commandLine,
                            Pipeline.Operator operator,
                            java.nio.file.Path redirectTarget,
                            boolean append)
        Creates a new stage.
        Parameters:
        commandLine - the command line for this stage
        operator - the operator following this stage (null for last stage)
        redirectTarget - the redirect file (for REDIRECT/APPEND operators)
        append - whether to append (for APPEND operator)
      • DefaultStage

        public DefaultStage​(java.lang.String commandLine,
                            Pipeline.Operator operator,
                            java.nio.file.Path redirectTarget,
                            boolean append,
                            java.nio.file.Path inputSource)
        Creates a new stage with input source.
        Parameters:
        commandLine - the command line for this stage
        operator - the operator following this stage (null for last stage)
        redirectTarget - the redirect file (for REDIRECT/APPEND/STDERR_REDIRECT/COMBINED_REDIRECT operators)
        append - whether to append (for APPEND operator)
        inputSource - the input source file (for INPUT_REDIRECT operator)
    • Method Detail

      • commandLine

        public java.lang.String commandLine()
        Description copied from interface: Pipeline.Stage
        Returns the command line for this stage.
        Specified by:
        commandLine in interface Pipeline.Stage
        Returns:
        the command line string
      • redirectTarget

        public java.nio.file.Path redirectTarget()
        Description copied from interface: Pipeline.Stage
        Returns the redirect target path, if this stage has a REDIRECT or APPEND operator.
        Specified by:
        redirectTarget in interface Pipeline.Stage
        Returns:
        the redirect path, or null
      • isAppend

        public boolean isAppend()
        Description copied from interface: Pipeline.Stage
        Returns whether this is an append redirection (>>).
        Specified by:
        isAppend in interface Pipeline.Stage
        Returns:
        true if append
      • inputSource

        public java.nio.file.Path inputSource()
        Description copied from interface: Pipeline.Stage
        Returns the input source path, if this stage has an INPUT_REDIRECT operator.
        Specified by:
        inputSource in interface Pipeline.Stage
        Returns:
        the input source path, or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object