Uses of Interface
org.refcodes.cli.Condition
-
Uses of Condition in org.refcodes.cli
Modifier and TypeClassDescriptionclass
TheAbstractCondition
is an abstract implementation of theCondition
interface providing the boiler plate when implementing theCondition
interface as done by theAbstractCondition
's sub-classes.class
TheAllCondition
enforces that the encapsulatedConstituent
consumes all arguments passed via invoking itsConstituent.parseArgs(String[], CliContext)
, else aSuperfluousArgsException
is thrown.class
AnAndCondition
contains (represents) a list ofCondition
(Constituent
) instances (nested by theAndCondition
) of which all are to be parsed successfully as of invoking theConstituent.parseArgs(String[], String[], CliContext)
methods.class
Any of the nestedCondition
conditions may match for theAnyCondition
to match, e.g. all of the nested conditions are optional.class
TheCasesCondition
is anXorCondition
making sure that all possible cases inside theXorCondition
must(!)class
AnOrCondition
represents a list ofCondition
(Constituent
) instances of which at least one must be parsed successfully when theConstituent
s'Constituent.parseArgs(String[], String[], CliContext)
methods are invoked.class
AnXorCondition
represents a list ofCondition
(Constituent
) instances of which only one is allowed to be parsed successfully when theConstituent.parseArgs(String[], String[], CliContext)
methods are invoked.Modifier and TypeMethodDescriptionstatic Condition
CliSugar.all
(Constituent aArg) static Condition
CliSugar.and
(Constituent... aArgs) static Condition
CliSugar.any
(Constituent... aArgs) static Condition
CliSugar.cases
(Constituent... aArgs) static Condition
CliSugar.optional
(Constituent... aArgs) Semantically identical synonym for theCliSugar.optional(Constituent...)
declaration.static Condition
CliSugar.or
(Constituent... aArgs) static Condition
CliSugar.xor
(Constituent... aArgs)