| Package | Description |
|---|---|
| net.dpml.cli |
Commandline modeling and parsing utilities.
|
| net.dpml.cli.commandline |
Commandline implementation.
|
| net.dpml.cli.option |
Options implementation include command, group, switch and property abstractions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Option.canProcess(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
Option.canProcess(WriteableCommandLine commandLine,
java.lang.String argument)
Indicates whether this Option will be able to process the particular
argument.
|
void |
Option.defaults(WriteableCommandLine commandLine)
Adds defaults to a CommandLine.
|
void |
Argument.defaultValues(WriteableCommandLine commandLine,
Option option)
Adds defaults to a CommandLine.
|
void |
Option.process(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes String arguments into a CommandLine.
|
void |
Parent.processParent(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes the parent part of the Option.
|
void |
Argument.processValues(WriteableCommandLine commandLine,
java.util.ListIterator args,
Option option)
Processes the "README" style element of the argument.
|
void |
Option.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
Argument.validate(WriteableCommandLine commandLine,
Option option)
Performs any necessary validation on the values added to the
CommandLine.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WriteableCommandLineImpl
A WriteableCommandLine implementation allowing Options to write their
processed information to a CommandLine.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
OptionImpl.canProcess(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
SourceDestArgument.canProcess(WriteableCommandLine commandLine,
java.lang.String arg)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
ArgumentImpl.canProcess(WriteableCommandLine commandLine,
java.lang.String argument)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
ParentImpl.canProcess(WriteableCommandLine commandLine,
java.lang.String arg)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
DefaultOption.canProcess(WriteableCommandLine commandLine,
java.lang.String argument)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
PropertyOption.canProcess(WriteableCommandLine commandLine,
java.lang.String argument)
Indicates whether this Option will be able to process the particular
argument.
|
boolean |
GroupImpl.canProcess(WriteableCommandLine commandLine,
java.lang.String arg)
Indicates whether this Option will be able to process the particular
argument.
|
void |
OptionImpl.defaults(WriteableCommandLine commandLine)
Adds defaults to a CommandLine.
|
void |
Switch.defaults(WriteableCommandLine commandLine)
Adds defaults to a CommandLine.
|
void |
ArgumentImpl.defaults(WriteableCommandLine commandLine)
Adds defaults to a CommandLine.
|
void |
ParentImpl.defaults(WriteableCommandLine commandLine)
Adds defaults to a CommandLine.
|
void |
GroupImpl.defaults(WriteableCommandLine commandLine)
Process defaults.
|
void |
ArgumentImpl.defaultValues(WriteableCommandLine commandLine,
Option option)
Adds defaults to a CommandLine.
|
void |
ArgumentImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes String arguments into a CommandLine.
|
void |
ParentImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
PropertyOption.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
GroupImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
Switch.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes the parent part of the Option.
|
void |
DefaultOption.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Process the parent.
|
void |
Command.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Process the parent.
|
void |
ArgumentImpl.processValues(WriteableCommandLine commandLine,
java.util.ListIterator arguments,
Option option)
Processes the "README" style element of the argument.
|
void |
Switch.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
ArgumentImpl.validate(WriteableCommandLine commandLine)
Performs any necessary validation on the values added to the
CommandLine.
|
void |
ParentImpl.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
DefaultOption.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
PropertyOption.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
Command.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
GroupImpl.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
SourceDestArgument.validate(WriteableCommandLine commandLine,
Option option)
Checks that the supplied CommandLine is valid with respect to the
suppled option.
|
void |
ArgumentImpl.validate(WriteableCommandLine commandLine,
Option option)
Performs any necessary validation on the values added to the
CommandLine.
|