public abstract class AbstractLineProcessor<A extends Arguments<A>> extends Object implements LineProcessor
LineProcessor returned by the
execute method of commands constructed with a reference to the command plus
context and output passed to
Command.execute(ExecutionContext, LineProcessor).| Constructor and Description |
|---|
AbstractLineProcessor(Command<A> command,
ExecutionContext context,
LineProcessor output)
Constructor with command creating this processor, execution context and
output to write to.
|
| Modifier and Type | Method and Description |
|---|---|
protected A |
getArguments()
Returns the command arguments for the current variable context.
|
protected Command<A> |
getCommand()
Returns the command that was passed to the constructor of this line
processor, the command whose execute method usually returns this line
processor.
|
protected ExecutionContext |
getContext()
Returns the execution context that was passed to the constructor
|
protected LineProcessor |
getOutput()
Returns the output that was passed to the constructor of this line
processor, the object to write to when executing the command through the
this processor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, processLinepublic AbstractLineProcessor(Command<A> command, ExecutionContext context, LineProcessor output)
command - the command whose execute method usually returns this line
processorcontext - the execution context passed to the command's execute methodoutput - the output object to write to when executing the command
through this processorprotected Command<A> getCommand()
protected A getArguments()
getCommand().getArguments(getContext()).protected ExecutionContext getContext()
protected LineProcessor getOutput()
Copyright © 2025. All rights reserved.