Package org.jline.shell
Enum Class Pipeline.Operator
- All Implemented Interfaces:
Serializable,Comparable<Pipeline.Operator>,Constable
- Enclosing interface:
Pipeline
Operators that connect commands in a pipeline.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLogical AND: execute next command only if previous succeeded (&&)Append redirection: append output to file (>>)Combined redirection: redirect both stdout and stderr to file (&>)Flip pipe: appends output as argument to next command (|;)Here-document: provide stdin inline (<<)Input redirection: read stdin from file (<)Logical OR: execute next command only if previous failed (||)Standard pipe: sends output of left command to right command (|)Output redirection: write output to file (>)Sequence: execute next command unconditionally (;)Stderr redirection: redirect stderr to file (2>) -
Method Summary
Modifier and TypeMethodDescriptionstatic Pipeline.OperatorfromSymbol(String symbol) Returns the operator matching the given symbol, ornullif none matches.symbol()Returns the string symbol for this operator.static Pipeline.OperatorReturns the enum constant of this class with the specified name.static Pipeline.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIPE
Standard pipe: sends output of left command to right command (|) -
FLIP
Flip pipe: appends output as argument to next command (|;) -
AND
Logical AND: execute next command only if previous succeeded (&&) -
OR
Logical OR: execute next command only if previous failed (||) -
REDIRECT
Output redirection: write output to file (>) -
APPEND
Append redirection: append output to file (>>) -
INPUT_REDIRECT
Input redirection: read stdin from file (<) -
HEREDOC
Here-document: provide stdin inline (<<) -
STDERR_REDIRECT
Stderr redirection: redirect stderr to file (2>) -
COMBINED_REDIRECT
Combined redirection: redirect both stdout and stderr to file (&>) -
SEQUENCE
Sequence: execute next command unconditionally (;)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
symbol
-
fromSymbol
Returns the operator matching the given symbol, ornullif none matches.- Parameters:
symbol- the symbol to look up- Returns:
- the matching operator, or null
-