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. |
org.unix4j.unix |
Provides implementations for commands inspired by well known unix commands.
|
org.unix4j.unix.cat |
Contains private classes used by the
cat command. |
org.unix4j.unix.cd |
Contains private classes used by the
cd command. |
org.unix4j.unix.cut |
Contains private classes used by the
cut command. |
org.unix4j.unix.echo |
Contains private classes used by the
echo command. |
org.unix4j.unix.find |
Contains private classes used by the
find command. |
org.unix4j.unix.from |
Contains private classes used by the
from command. |
org.unix4j.unix.grep |
Contains private classes used by the
grep command. |
org.unix4j.unix.head |
Contains private classes used by the
head command. |
org.unix4j.unix.ls |
Contains private classes used by the
ls command. |
org.unix4j.unix.sed |
Contains private classes used by the
sed command. |
org.unix4j.unix.sort |
Contains private classes used by the
sort command. |
org.unix4j.unix.tail |
Contains private classes used by the
tail command. |
org.unix4j.unix.uniq |
Contains private classes used by the
uniq command. |
org.unix4j.unix.wc |
Contains private classes used by the
wc command. |
org.unix4j.unix.xargs |
Contains private classes used by the
xargs command. |
Modifier and Type | Method and Description |
---|---|
Command<?> |
CommandBuilder.build()
Builds the composite command and returns it.
|
Command<?> |
DefaultCommandBuilder.build() |
Modifier and Type | Method and Description |
---|---|
CommandBuilder |
CommandBuilder.join(Command<?> command)
Adds the specified command to the chain of commands held by this builder.
|
CommandBuilder |
DefaultCommandBuilder.join(Command<?> command) |
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<?> |
AbstractCommand.join(Command<?> next) |
Command<?> |
NoOp.join(Command<?> next)
Returns the given
next command eliminating this NoOp
command in a join. |
Command<?> |
Command.join(Command<?> next)
Returns a new command representing the combination of
this
command with next . |
Command<?> |
JoinedCommand.join(Command<?> next) |
Modifier and Type | Method and Description |
---|---|
Command<?> |
AbstractCommand.join(Command<?> next) |
Command<?> |
NoOp.join(Command<?> next)
Returns the given
next command eliminating this NoOp
command in a join. |
Command<?> |
Command.join(Command<?> next)
Returns a new command representing the combination of
this
command with next . |
Command<?> |
JoinedCommand.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.
|
Modifier and Type | Method and Description |
---|---|
Unix4jCommandBuilder |
Unix4jCommandBuilder.join(Command<?> command) |
Unix4jCommandBuilder |
DefaultUnix4jCommandBuilder.join(Command<?> command) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
CatCommand
Implementation of the
cat command. |
Constructor and Description |
---|
CatProcessor(Command<CatArguments> command,
ExecutionContext context,
LineProcessor output) |
NumberLinesProcessor(Command<CatArguments> command,
ExecutionContext context,
LineProcessor output) |
SqueezeEmptyLinesProcessor(Command<CatArguments> command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
CdCommand
Implementation of the
cd command. |
Modifier and Type | Method and Description |
---|---|
Command<CdArguments> |
CdCommand.join(Command<?> next) |
Modifier and Type | Method and Description |
---|---|
Command<CdArguments> |
CdCommand.join(Command<?> next) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
CutCommand
Implementation of the
cut command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
EchoCommand
Implementation of the
echo command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
FindCommand
Implementation of the
find command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
FromCommand
Implementation of the pseudo
from command used for input
redirection. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
GrepCommand
Implementation of the
grep command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
HeadCommand
Implementation of the
head command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
LsCommand
Implementation of the
ls command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
SedCommand
Implementation of the
sed command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
SortCommand
Implementation of the
sort command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
TailCommand
Implementation of the
tail command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
UniqCommand
Implementation of the
uniq command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
WcCommand
Implementation of the
wc command. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
XargsCommand
Implementation of the
xargs command. |
Modifier and Type | Method and Description |
---|---|
protected Command<?> |
XargsCommand.getInvokedCommand() |
Command<?> |
XargsCommand.join(Command<?> next) |
Modifier and Type | Method and Description |
---|---|
Command<?> |
XargsCommand.join(Command<?> next) |
Constructor and Description |
---|
XargsCommand(XargsArguments arguments,
Command<?> invokedCommand) |
Copyright © 2024. All rights reserved.