java.lang.Object
org.refcodes.cli.AbstractCondition
org.refcodes.cli.XorCondition
org.refcodes.cli.CasesCondition
- All Implemented Interfaces:
Condition,Constituent,Synopsisable,org.refcodes.mixin.DescriptionAccessor,org.refcodes.mixin.Resetable,org.refcodes.mixin.Schemable<CliSchema>
The
CasesCondition is an XorCondition making sure that all
possible cases inside the XorCondition must(!) consume all provided
args in order to match! This makes the CasesCondition most useful as
a root condition with exotic (possibly ambiguous) cases encapsulated.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.DescriptionAccessor
org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionProperty -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.refcodes.cli.XorCondition
parseArgs, toSynopsisMethods inherited from class org.refcodes.cli.AbstractCondition
addChild, getChildren, getFirst, reset, toOperand, toOperands, toSchema, toString, toSyntax, toValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.cli.Condition
toOperand, toOperand, toOperand, toOperandsMethods inherited from interface org.refcodes.cli.Constituent
parseArgs, parseArgs, toSynopsis, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toValueMethods inherited from interface org.refcodes.mixin.DescriptionAccessor
getDescriptionMethods inherited from interface org.refcodes.mixin.Resetable
resetMethods inherited from interface org.refcodes.mixin.Schemable
toSchemaMethods inherited from interface org.refcodes.cli.Synopsisable
toSynopsis, toSynopsis, toSynopsis, toSynopsis
-
Field Details
-
_description
-
-
Constructor Details
-
CasesCondition
- Parameters:
aArgs- TheConstituent(Condition) instances to be nested
-
-
Method Details
-
getDescription
- Specified by:
getDescriptionin interfaceorg.refcodes.mixin.DescriptionAccessor
-