public class NoOp extends AbstractCommand<NoOp.Args>
join(Command)method returns the joined command only, that is, this
nopcommand is eliminated.
|Modifier and Type||Class and Description|
Arguments for NoOp.
|Modifier and Type||Field and Description|
The singleton instance.
The "nop" command name.
|Modifier and Type||Method and Description|
Executes this command and returns a
Returns the given
getArguments, getName, toString
public static final String NAME
public Command<?> join(Command<?> next)
nextcommand eliminating this
NoOpcommand in a join.
public LineProcessor execute(ExecutionContext context, LineProcessor output)
LineProcessorobject. Calling this method initiates the command execution, but the real processing of the command takes place when lines are passed to the returned
LineProcessorobject. The command execution is terminated by calling
The command writes its output to the specified
Depending on the command implementation, the output is written when lines
are passed to the
LineProcessor returned by this method, or when
the execution terminates with the
context- context object providing access to the current directory, environment variables and other information useful for the command during its execution
output- the output to write to
Copyright © 2022. All rights reserved.