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 |
---|---|
default List<? extends Operand<?>> |
ArgsParser.evalArgs(List<String> aArgs)
Same as
ArgsParser.evalArgs(String[]) with the difference that the elements
representing the arguments are passed as a list instead of an array. |
List<? extends Operand<?>> |
ArgsParser.evalArgs(String[] aArgs)
Evaluates the provided command line arguments and determines the
according values by evaluating the root
Condition . |
List<? extends Operand<?>> |
Syntaxable.parseArgs(String[] aArgs)
Parses the provided command line arguments and determines the according
values by evaluating this
Syntaxable instance or, in case of
being a node in the syntax tree (such as a Condition , traversing
the child Syntaxable instances' Syntaxable.parseArgs(String[])
methods. |
Modifier and Type | Method and Description |
---|---|
List<? extends Operand<?>> |
ArgsParserImpl.evalArgs(String[] aArgs) |
List<Operand<Boolean>> |
SwitchImpl.parseArgs(String[] aArgs) |
List<? extends Operand<?>> |
XorConditionImpl.parseArgs(String[] aArgs) |
List<Operand<T>> |
AbstractOperand.parseArgs(String[] aArgs) |
List<? extends Operand<?>> |
AndConditionImpl.parseArgs(String[] aArgs) |
List<? extends Operand<?>> |
OrConditionImpl.parseArgs(String[] aArgs) |
List<Operand<T>> |
AbstractOption.parseArgs(String[] aArgs) |
List<? extends Operand<?>> |
OptionalConditionImpl.parseArgs(String[] aArgs) |
Copyright © 2017. All rights reserved.