Package | Description |
---|---|
org.refcodes.console |
Getting started:
Consider you have a tool called "foo-bar" to be invoked with the below
allowed argument combinations (syntax):
foo-bar [{ -a | -d }] -f <file>
"foo-bar" can be invoked either with an optional "-a" or with an optional
"-d" switch, but not both of them at the same time, and a file
"-f <file>" must be provided, else the passed arguments are rejected as
not being valid.
|
org.refcodes.console.impls |
Implementations:
The
impls package contains implementations of the types defined
by this artifact. |
Modifier and Type | Method and Description |
---|---|
Condition |
ArgsParser.getRootCondition()
The root condition is the starting point node of a
Syntaxable
hierarchy to be traversed when determining the syntax for command line
arguments or when evaluating the command line arguments. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCondition
The
AbstractCondition is an abstract implementation of an
Condition providing the boiler plate when implementing the
Condition interface. |
class |
AndConditionImpl
An
AndConditionImpl represents a list of Syntaxable instances
of which all are be parsed successfully when the Syntaxable s'
Syntaxable.parseArgs(String[]) methods are invoked. |
class |
OptionalImpl |
class |
OrConditionImpl
An
OrConditionImpl represents a list of Syntaxable instances
of which at least one must be parsed successfully when the Syntaxable
s' Syntaxable.parseArgs(String[]) methods are invoked. |
class |
XorConditionImpl
An
XorConditionImpl represents a list of Syntaxable instances
of which only one is allowed to be parsed successfully when the
Syntaxable s' Syntaxable.parseArgs(String[]) methods are
invoked. |
Modifier and Type | Method and Description |
---|---|
Condition |
ArgsParserImpl.getRootCondition() |
Constructor and Description |
---|
ArgsParserImpl(Condition aRootCondition)
Constructs the
ArgsParser instance with the given root
Condition and the default SyntaxNotation.REFCODES . |
Copyright © 2015. All rights reserved.