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
Constructors -
Method Summary
Methods inherited from class org.refcodes.cli.XorCondition
parseArgs, toState, toSynopsis, toSyntaxMethods inherited from class org.refcodes.cli.AbstractCondition
addChild, getChildren, getFirst, reset, toOperand, toOperands, toSchema, toString, toValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.cli.ArgsSyntax
toOperand, toOperand, toOperand, toOperandsMethods 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
-
Constructor Details
-
CasesCondition
- Parameters:
aArgs- TheSyntaxable(ArgsSyntax) instances to be nested
-