-
- All Known Implementing Classes:
DefaultPipeline.DefaultStage
- Enclosing interface:
- Pipeline
public static interface Pipeline.StageA 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.StringcommandLine()Returns the command line for this stage.default java.nio.file.PathinputSource()Returns the input source path, if this stage has an INPUT_REDIRECT operator.booleanisAppend()Returns whether this is an append redirection (>>).Pipeline.Operatoroperator()Returns the operator that follows this stage, ornullfor the last stage.java.nio.file.PathredirectTarget()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, ornullfor 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
-
-