Uses of Interface
org.refcodes.console.Operand
-
-
Uses of Operand in org.refcodes.console
Subinterfaces of Operand in org.refcodes.console Modifier and Type Interface Description interface
Flag
interface
Option<T>
AnOption
represents a command line option with the according option's value.Classes in org.refcodes.console that implement Operand Modifier and Type Class Description class
AbstractOperand<T>
TheAbstractOperand
is an abstract implementation of anOperand
providing the boiler plate when implementing theOperand
interface.class
AbstractOption<T>
TheAbstractOption
is an abstract implementation of anOption
providing the boiler plate when implementing theOption
interface.class
EnumOptionImpl<T extends java.lang.Enum<T>>
The Class EnumOptionImpl.class
FlagImpl
class
ForceFlagImpl
A predefined force switch.class
HelpFlagImpl
A predefined help switch.class
IntegerOptionImpl
The Class IntegerOptionImpl.class
QuietFlagImpl
A predefined "be quiet" switch.class
StringOperandImpl
AnOperand
(neither a short option nor a long option prepended nor being a switch) being sString
.class
StringOptionImpl
The Class StringOptionImpl.class
SysInfoFlagImpl
A predefined system information switch.class
VerboseFlagImpl
A predefined verbose switch.Methods in org.refcodes.console that return Operand Modifier and Type Method Description static Operand<java.lang.String>
ConsoleSugar. stringOperand(java.lang.String aIdentifier, java.lang.String aDescription)
String operand.Methods in org.refcodes.console that return types with arguments of type Operand Modifier and Type Method Description java.util.List<? extends Operand<?>>
ArgsParser. evalArgs(java.lang.String[] aArgs)
Evaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.default java.util.List<? extends Operand<?>>
ArgsParser. evalArgs(java.util.List<java.lang.String> aArgs)
Same asArgsParser.evalArgs(String[])
with the difference that the elements representing the arguments are passed as a list instead of an array.java.util.List<? extends Operand<?>>
ArgsParserImpl. evalArgs(java.lang.String[] aArgs)
Evaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.protected static java.util.List<? extends Operand<?>>
ArgsParserImpl. fromArgs(java.lang.String[] aArgs, char aDelimiter)
Heuristically loads the arguments without any syntax required, e.g.java.util.List<Operand<T>>
AbstractOperand. parseArgs(java.lang.String[] aArgs)
Parses the provided command line arguments and determines the according values by evaluating thisSyntaxable
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childSyntaxable
instances'Syntaxable.parseArgs(String[])
methods.java.util.List<Operand<T>>
AbstractOption. parseArgs(java.lang.String[] aArgs)
Parses the provided command line arguments and determines the according values by evaluating thisSyntaxable
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childSyntaxable
instances'Syntaxable.parseArgs(String[])
methods.java.util.List<? extends Operand<?>>
AndConditionImpl. parseArgs(java.lang.String[] aArgs)
java.util.List<Operand<java.lang.Boolean>>
FlagImpl. parseArgs(java.lang.String[] aArgs)
Parses the provided command line arguments and determines the according values by evaluating thisSyntaxable
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childSyntaxable
instances'Syntaxable.parseArgs(String[])
methods.java.util.List<? extends Operand<?>>
OptionalConditionImpl. parseArgs(java.lang.String[] aArgs)
java.util.List<? extends Operand<?>>
OrConditionImpl. parseArgs(java.lang.String[] aArgs)
java.util.List<? extends Operand<?>>
Syntaxable. parseArgs(java.lang.String[] aArgs)
Parses the provided command line arguments and determines the according values by evaluating thisSyntaxable
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childSyntaxable
instances'Syntaxable.parseArgs(String[])
methods.java.util.List<? extends Operand<?>>
XorConditionImpl. parseArgs(java.lang.String[] aArgs)
java.util.List<? extends Operand<?>>
AbstractCondition. toOperands()
java.util.List<? extends Operand<?>>
Condition. toOperands()
Methods in org.refcodes.console with parameters of type Operand Modifier and Type Method Description int
AbstractOperand. compareTo(Operand<?> obj)
static java.lang.String
ConsoleUtility. toOptionsSpec(Operand<?> aOperand)
Creates the options specification containing the short option (if any) and the long option ( if any) from the providedOperand
;.static java.lang.String
ConsoleUtility. toParameterSpec(Operand<?> aOperand)
Creates the parameter specification from the providedOperand
.static java.lang.String
ConsoleUtility. toSpec(Operand<?> aOperand)
Creates a specification for the givenOperand
consisting of the options specification (if any) as ofConsoleUtility.toOptionsSpec(Operand)
and the parameter specification (if any) as ofConsoleUtility.toParameterSpec(Operand)
.Method parameters in org.refcodes.console with type arguments of type Operand Modifier and Type Method Description static java.lang.String[]
ConsoleUtility. toDiff(java.lang.String[] aSet, java.util.List<? extends Operand<?>> aSubset)
Creates the difference between the provided set and the providedList
s therein found argument arrays subset (as ofgetArgs()
).
-