java.lang.Object
org.refcodes.cli.AbstractCondition
org.refcodes.cli.XorCondition
org.refcodes.cli.CasesCondition
- All Implemented Interfaces:
ArgsSyntax
,Condition
,Synopsisable
,Syntaxable
,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.-
Constructor Summary
-
Method Summary
Methods inherited from class org.refcodes.cli.XorCondition
parseArgs, toState, toSynopsis, toSyntax
Methods inherited from class org.refcodes.cli.AbstractCondition
addChild, getChildren, getFirst, reset, toOperand, toOperands, toSchema, toString, toValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.cli.ArgsSyntax
toOperand, toOperand, toOperand, toOperands
Methods inherited from interface org.refcodes.mixin.Resetable
reset
Methods inherited from interface org.refcodes.mixin.Schemable
toSchema
Methods inherited from interface org.refcodes.cli.Synopsisable
toSynopsis, toSynopsis, toSynopsis, toSynopsis
-
Constructor Details
-
CasesCondition
- Parameters:
aArgs
- TheSyntaxable
(ArgsSyntax
) instances to be nested
-