| Package | Description |
|---|---|
| org.unix4j.command |
Declares the basic command interface and contains related classes used by
most command implementations.
|
| org.unix4j.context |
Contains interfaces and classes defining the
ExecutionContext passed to the
execute
method of commands. |
| org.unix4j.operation |
Contains the
LineOperation
interface and the AdHocCommand
implementation facilitating the creation of ad-hoc commands. |
| org.unix4j.processor |
Defines
LineProcessor and
InputProcessor, two interfaces
used for line-by-line input processing, and provides some basic
implementations for both interfaces. |
| org.unix4j.variable |
Defines interfaces and classes to facilitate variables that can be used as
command arguments.
|
| Modifier and Type | Method and Description |
|---|---|
LineProcessor |
NoOp.execute(ExecutionContext context,
LineProcessor output) |
LineProcessor |
JoinedCommand.execute(ExecutionContext context,
LineProcessor output)
Executes this joined command redirecting the output of the first command
such that it becomes the input of the second command.
|
LineProcessor |
Command.execute(ExecutionContext context,
LineProcessor output)
Executes this command and returns a
LineProcessor object. |
A |
JoinedCommand.getArguments(ExecutionContext context) |
A |
Command.getArguments(ExecutionContext context)
Returns the implementation specific command arguments and options for the
given execution context.
|
A |
AbstractCommand.getArguments(ExecutionContext context) |
NoOp.Args |
NoOp.Args.getForContext(ExecutionContext context) |
A |
Arguments.getForContext(ExecutionContext context)
Returns an arguments object for the given execution context with resolved
variables if necessary and possible.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultExecutionContext
Default execution context implementation with setters for some values and
meaningful defaults for instance taken from system properties.
|
class |
DerivedExecutionContext
A derived execution context allows overriding of some values while forwarding
other getter calls to an original delegate context.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionContext |
ExecutionContextFactory.createExecutionContext()
Creates and returns a new execution context instance.
|
| Constructor and Description |
|---|
DerivedExecutionContext(ExecutionContext delegate)
Constructor for new derived execution context with the specified delegate
context.
|
| Modifier and Type | Method and Description |
|---|---|
LineProcessor |
AdHocCommand.execute(ExecutionContext context,
LineProcessor output) |
AdHocCommand.Args |
AdHocCommand.Args.getForContext(ExecutionContext context) |
void |
LineOperation.operate(ExecutionContext context,
Line input,
LineProcessor output)
Performs an operation for the given input line.
|
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionContext |
AbstractLineProcessor.getContext()
Returns the execution context that was passed to the constructor
|
| 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 |
|---|---|
abstract Object |
ExecutionContextVariableResolver.Variable.getValue(ExecutionContext executionContext) |
| Constructor and Description |
|---|
ExecutionContextVariableResolver(ExecutionContext executionContext)
Constructor with execution context.
|
Copyright © 2016. All Rights Reserved.