Package org.jline.shell
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 TypeMethodDescriptionReturns the command line for this stage.default PathReturns the input source path, if this stage has an INPUT_REDIRECT operator.booleanisAppend()Returns whether this is an append redirection (>>).operator()Returns the operator that follows this stage, ornullfor the last stage.Returns the redirect target path, if this stage has a REDIRECT or APPEND operator.
-
Method Details
-
commandLine
-
operator
Pipeline.Operator operator()Returns the operator that follows this stage, ornullfor 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
Returns the input source path, if this stage has an INPUT_REDIRECT operator.- Returns:
- the input source path, or null
-