Package org.jline.shell.impl
Class DefaultPipeline
java.lang.Object
org.jline.shell.impl.DefaultPipeline
- All Implemented Interfaces:
Pipeline
Default implementation of
Pipeline.
A pipeline is an ordered list of Pipeline.Stages connected by Pipeline.Operators.
Instances are immutable and created via Pipeline.of(String) or
PipelineParser.parse(String).
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.jline.shell.Pipeline
Pipeline.Operator, Pipeline.Stage -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPipeline(List<Pipeline.Stage> stages, String source, boolean background) Creates a new pipeline. -
Method Summary
-
Constructor Details
-
DefaultPipeline
Creates a new pipeline.- Parameters:
stages- the ordered stagessource- the original command linebackground- whether to execute in background
-
-
Method Details
-
stages
Description copied from interface:PipelineReturns the ordered list of stages in this pipeline. -
source
-
isBackground
public boolean isBackground()Description copied from interface:PipelineReturns whether this pipeline should execute in the background.- Specified by:
isBackgroundin interfacePipeline- Returns:
- true if background execution was requested
-
toString
-