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
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
DebugFlag
A predefined debug switch.class
DoubleOption
class
EnumOption<T extends Enum<T>>
The Class EnumOption.class
FileOption
class
Flag
class
FloatOption
class
ForceFlag
A predefined force switch.class
HelpFlag
A predefined help switch.class
IntegerOption
class
LongOption
class
QuietFlag
A predefined "be quiet" switch.class
StringOperand
class
StringOption
class
SysInfoFlag
A predefined system information switch.class
VerboseFlag
A predefined verbose switch.Methods in org.refcodes.console that return types with arguments of type Operand Modifier and Type Method Description List<? extends Operand<?>>
ArgsParser. evalArgs(String[] aArgs)
Evaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.default List<? extends Operand<?>>
ArgsParser. evalArgs(List<String> aArgs)
Same asArgsParser.evalArgs(String[])
with the difference that the elements representing the arguments are passed as a list instead of an array.List<? extends Operand<?>>
ArgsParserImpl. evalArgs(String[] aArgs)
Evaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.protected static List<? extends Operand<?>>
ArgsParserImpl. fromArgs(String[] aArgs, char aDelimiter)
Heuristically loads the arguments without any syntax required, e.g.List<Operand<T>>
AbstractOperand. parseArgs(String[] aArgs, String[] aOptions)
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[], String[])
methods.List<Operand<T>>
AbstractOption. parseArgs(String[] aArgs, String[] aOptions)
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[], String[])
methods.List<? extends Operand<?>>
AndCondition. parseArgs(String[] aArgs, String[] aOptions)
List<Operand<Boolean>>
Flag. parseArgs(String[] aArgs, String[] aOptions)
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[], String[])
methods.List<? extends Operand<?>>
OptionalCondition. parseArgs(String[] aArgs, String[] aOptions)
List<? extends Operand<?>>
OrCondition. parseArgs(String[] aArgs, String[] aOptions)
List<? extends Operand<?>>
SingleOptionCondition. parseArgs(String[] aArgs, String[] aOptions)
default List<? extends Operand<?>>
Syntaxable. parseArgs(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[], String[])
methods.List<? extends Operand<?>>
Syntaxable. parseArgs(String[] aArgs, String[] aOptions)
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[], String[])
methods.List<? extends Operand<?>>
XorCondition. parseArgs(String[] aArgs, String[] aOptions)
List<? extends Operand<?>>
AbstractCondition. toOperands()
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 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 String
ConsoleUtility. toParameterSpec(Operand<?> aOperand)
Creates the parameter specification from the providedOperand
.static 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 String[]
ConsoleUtility. toDiff(String[] aSet, List<? extends Operand<?>> aSubset)
-