- java.lang.Object
-
- org.refcodes.cli.AbstractCondition
-
- org.refcodes.cli.XorCondition
-
- org.refcodes.cli.CasesCondition
-
- All Implemented Interfaces:
ArgsSyntax,Condition,Synopsis,Syntaxable,org.refcodes.component.Resetable
public class CasesCondition extends XorCondition implements Condition
TheCasesConditionis anXorConditionmaking sure that all possible cases inside theXorConditionmust(!) consume all provided args in order to match! This makes theCasesConditionmost useful as a root condition with exotic (possibly ambiguous) cases encapsulated.
-
-
Constructor Summary
Constructors Constructor Description CasesCondition(Syntaxable... aArgs)
-
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, 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.cli.Synopsis
toSynopsis, toSynopsis, toSynopsis, toSynopsis
-
-
-
-
Constructor Detail
-
CasesCondition
public CasesCondition(Syntaxable... aArgs)
- Parameters:
aArgs- TheSyntaxable(ArgsSyntax) instances to be nested
-
-