A- the type parameter defining the arguments and options of the command
public abstract class AbstractCommand<A extends Arguments<A>> extends Object implements Command<A>
|Constructor and Description|
Constructor with command name, type and arguments.
|Modifier and Type||Method and Description|
Returns the implementation specific command arguments and options for the given execution context.
Returns the name of this command, usually a lower-case string such as "grep" or "ls".
Returns a new command representing the combination of
Returns a string representation of the command instance including the argument and option values defined for the command.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public A getArguments(ExecutionContext context)
VariableContextreturned by the given
contextobject. No variables are resolved if
Command<A extends Arguments<A>>
context- the execution context with access to variables and value converters, or null if no variables should be resolved
next. The returned command executes
thiscommand first and usually joins the output to the
Note that some commands may use a slightly different interpretation of
"joining a command". The
xargs command for instance uses its
joined command as target command; the values collected by
on its input stream are passed to the target command as arguments instead
of as input.
Copyright © 2022. All rights reserved.