public interface Condition extends Syntaxable
Condition
interface represents a node in the command line
arguments syntax tree; simply extending the Syntaxable
interface and
adding the functionality of providing access to the added Operand
s
(leafs). In future extensions, a Condition
might provide access to
the child Syntaxable
elements contained in a Condition
instance. As of the current findings, access to the children of the
Condition
node is not required and would make the interface
unnecessarily complicated.Modifier and Type | Method and Description |
---|---|
List<? extends Operand<?>> |
toOperands()
|
get, parseArgs, toState, toSyntax
toUsage, toUsage
List<? extends Operand<?>> toOperands()
Condition
s and collects all therein
found Operand
s and sub-types such as the Switch
or the
Option
. This is most useful when creating a list of
Option
s, Switch
es and Operand
s when printing out
detailed help.Operand
elements.Copyright © 2018. All rights reserved.