Class DefaultPipeline

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultPipeline​(java.util.List<Pipeline.Stage> stages, java.lang.String source, boolean background)
      Creates a new pipeline.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isBackground()
      Returns whether this pipeline should execute in the background.
      java.lang.String source()
      Returns the original command line string that was parsed to create this pipeline.
      java.util.List<Pipeline.Stage> stages()
      Returns the ordered list of stages in this pipeline.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DefaultPipeline

        public DefaultPipeline​(java.util.List<Pipeline.Stage> stages,
                               java.lang.String source,
                               boolean background)
        Creates a new pipeline.
        Parameters:
        stages - the ordered stages
        source - the original command line
        background - whether to execute in background
    • Method Detail

      • stages

        public java.util.List<Pipeline.Stage> stages()
        Description copied from interface: Pipeline
        Returns the ordered list of stages in this pipeline.
        Specified by:
        stages in interface Pipeline
        Returns:
        the stages
      • source

        public java.lang.String source()
        Description copied from interface: Pipeline
        Returns the original command line string that was parsed to create this pipeline.
        Specified by:
        source in interface Pipeline
        Returns:
        the source command line
      • isBackground

        public boolean isBackground()
        Description copied from interface: Pipeline
        Returns whether this pipeline should execute in the background.
        Specified by:
        isBackground in interface Pipeline
        Returns:
        true if background execution was requested
      • toString

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