- java.lang.Object
-
- org.refcodes.cli.AbstractCondition
-
- org.refcodes.cli.XorCondition
-
- org.refcodes.cli.CasesCondition
-
- All Implemented Interfaces:
ArgsSyntax,Condition,Syntaxable,SyntaxUsage,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, toSyntax, toUsage
-
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.Syntaxable
parseArgs, parseArgs, toState, toSyntax, toSyntax, toSyntax, toSyntax, toValue
-
Methods inherited from interface org.refcodes.cli.SyntaxUsage
toUsage, toUsage, toUsage, toUsage
-
-
-
-
Constructor Detail
-
CasesCondition
public CasesCondition(Syntaxable... aArgs)
- Parameters:
aArgs- TheSyntaxable(ArgsSyntax) instances to be nested
-
-