| Package | Description |
|---|---|
| org.unix4j.builder |
Defines interfaces and implementations used to create a command or a chain of
joined commands.
|
| org.unix4j.command |
Declares the basic command interface and contains related classes used by
most command implementations.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
Command<?> |
DefaultCommandBuilder.build() |
Command<?> |
CommandBuilder.build()
Builds the composite command and returns it.
|
| Modifier and Type | Method and Description |
|---|---|
CommandBuilder |
DefaultCommandBuilder.join(Command<?> command) |
CommandBuilder |
CommandBuilder.join(Command<?> command)
Adds the specified command to the chain of commands held by this builder.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommand<A extends Arguments<A>>
Abstract base class suitable for most command implementations.
|
class |
JoinedCommand<A extends Arguments<A>>
A composite command joining two commands.
|
class |
NoOp
A command that performs no operation.
|
| Modifier and Type | Method and Description |
|---|---|
Command<A> |
JoinedCommand.getFirst()
Returns the first command of this joined command
|
Command<?> |
JoinedCommand.getSecond()
Returns the second command of this joined command
|
Command<?> |
NoOp.join(Command<?> next)
Returns the given
next command eliminating this NoOp
command in a join. |
Command<?> |
JoinedCommand.join(Command<?> next) |
Command<?> |
Command.join(Command<?> next)
Returns a new command representing the combination of
this
command with next. |
Command<?> |
AbstractCommand.join(Command<?> next) |
| Modifier and Type | Method and Description |
|---|---|
Command<?> |
NoOp.join(Command<?> next)
Returns the given
next command eliminating this NoOp
command in a join. |
Command<?> |
JoinedCommand.join(Command<?> next) |
Command<?> |
Command.join(Command<?> next)
Returns a new command representing the combination of
this
command with next. |
Command<?> |
AbstractCommand.join(Command<?> next) |
static <A extends Arguments<A>> |
JoinedCommand.join(Command<A> first,
Command<?> second) |
static <A extends Arguments<A>> |
JoinedCommand.join(Command<A> first,
Command<?> second) |
| Constructor and Description |
|---|
JoinedCommand(Command<A> first,
Command<?> second)
Constructor with first and second command in the join.
|
JoinedCommand(Command<A> first,
Command<?> second)
Constructor with first and second command in the join.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdHocCommand
Implementation of an ad-hoc command based on a
LineOperation. |
| Modifier and Type | Method and Description |
|---|---|
protected Command<A> |
AbstractLineProcessor.getCommand()
Returns the command that was passed to the constructor of this line
processor, the command whose execute method usually returns this line
processor.
|
| Constructor and Description |
|---|
AbstractLineProcessor(Command<A> command,
ExecutionContext context,
LineProcessor output)
Constructor with command creating this processor, execution context and
output to write to.
|
Copyright © 2016. All Rights Reserved.