Uses of Interface
org.refcodes.cli.Syntaxable
-
-
Uses of Syntaxable in org.refcodes.cli
Subinterfaces of Syntaxable in org.refcodes.cli Modifier and Type Interface Description interface
ArgsSyntax
TheArgsSyntax
interface represents a node (and therewith the syntax for the arguments) in the command line arguments syntax tree; simply extending theSyntaxable
interface and adding the functionality of providing access to the addedOperand
s (leafs).interface
Condition
Interface indicating that theArgsSyntax
semantically represents a condition which usally encapsulates otherSyntaxable
children.interface
Operand<T>
AnOperand
represents a value parsed from command line arguments.interface
Option<T>
AnOption
represents a command line option with the according option's value.Classes in org.refcodes.cli that implement Syntaxable Modifier and Type Class Description class
AbstractCondition
TheAbstractCondition
is an abstract implementation of theArgsSyntax
interface providing the boiler plate when implementing theArgsSyntax
interface as done by theAbstractCondition
's sub-classes.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
AllCondition
TheAllCondition
enforces that the encapsulatedSyntaxable
consumes all arguments passed via invoking itsparseArgs(String[])
, else aSuperfluousArgsException
is thrown.class
AndCondition
AnAndCondition
contains (represents) a list ofArgsSyntax
(Syntaxable
) instances (nested by theAndCondition
) of which all are to be parsed successfully as of invoking theparseArgs(String[], String[])
methods.class
AnyCondition
Any of the nestedArgsSyntax
conditions may match for theAnyCondition
to match, e.g. all of the nested conditions are optional.class
ArrayOperand<T>
Creates an array representation facade for the encapsulatedOperand
.class
ArrayOption<T>
Creates an array representation facade for the encapsulatedOption
.class
CasesCondition
TheCasesCondition
is anXorCondition
making sure that all possible cases inside theXorCondition
must(!)class
CharOption
class
CleanFlag
A predefined cleanFlag
: A predefinedFlag
gives itsCleanFlag.SHORT_OPTION
, itsCleanFlag.LONG_OPTION
as well as itsCleanFlag.ALIAS
an according semantics regarded by other subsystems.class
ConfigOption
TheConfigOption
represents anOption
holding a value specifying a configuration resource (file).class
DaemonFlag
A predefined daemonFlag
: A predefinedFlag
gives itsDaemonFlag.SHORT_OPTION
, itsDaemonFlag.LONG_OPTION
as well as itsDaemonFlag.ALIAS
an according semantics regarded by other subsystems.class
DebugFlag
A predefined debugFlag
: A predefinedFlag
gives itsDebugFlag.SHORT_OPTION
, itsDebugFlag.LONG_OPTION
as well as itsDebugFlag.ALIAS
an according semantics regarded by other subsystems.class
DoubleOption
class
EnumOption<T extends Enum<T>>
The Class EnumOption.class
FileOption
class
Flag
TheFlag
class implements theOption
interface for representing either atrue
or afalse
state: When a flag is provided to your command line arguments, then it is considered to betrue
, when it is omitted, then it is considered to befalse
as ofFlag.isEnabled()
.class
FloatOption
class
ForceFlag
A predefined forceFlag
: A predefinedFlag
gives itsForceFlag.SHORT_OPTION
, itsForceFlag.LONG_OPTION
as well as itsForceFlag.ALIAS
an according semantics regarded by other subsystems.class
HelpFlag
A predefined helpFlag
: A predefinedFlag
gives itsHelpFlag.SHORT_OPTION
, itsHelpFlag.LONG_OPTION
as well as itsHelpFlag.ALIAS
an according semantics regarded by other subsystems.class
InitFlag
A predefined initFlag
: A predefinedFlag
gives itsInitFlag.SHORT_OPTION
, itsInitFlag.LONG_OPTION
as well as itsInitFlag.ALIAS
an according semantics regarded by other subsystems.class
IntOption
class
LongOption
class
NoneOperand
TheNoneOperand
represents an empty set of arguments, e.g. no command line argument is being passed.class
Operation
TheOperation
is an argument representing a function or a method ("command") and is either provided or not provided as ofOperation.isEnabled()
.class
OptionCondition
class
OrCondition
AnOrCondition
represents a list ofArgsSyntax
(Syntaxable
) instances of which at least one must be parsed successfully when theSyntaxable
s'parseArgs(String[], String[])
methods are invoked.class
QuietFlag
A predefined "be quiet"Flag
: A predefinedFlag
gives itsQuietFlag.SHORT_OPTION
, itsQuietFlag.LONG_OPTION
as well as itsQuietFlag.ALIAS
an according semantics regarded by other subsystems.class
StringOperand
class
StringOption
class
SysInfoFlag
A predefined system informationFlag
: A predefinedFlag
gives itsSysInfoFlag.SHORT_OPTION
, itsSysInfoFlag.LONG_OPTION
as well as itsSysInfoFlag.ALIAS
an according semantics regarded by other subsystems..class
VerboseFlag
A predefined verboseFlag
: A predefinedFlag
gives itsVerboseFlag.SHORT_OPTION
, itsVerboseFlag.LONG_OPTION
as well as itsVerboseFlag.ALIAS
an according semantics regarded by other subsystems.class
XorCondition
AnXorCondition
represents a list ofArgsSyntax
(Syntaxable
) instances of which only one is allowed to be parsed successfully when theparseArgs(String[], String[])
methods are invoked.Methods in org.refcodes.cli that return Syntaxable Modifier and Type Method Description protected Syntaxable
AbstractCondition. getFirst()
Gets the first child.Methods in org.refcodes.cli that return types with arguments of type Syntaxable Modifier and Type Method Description protected List<Syntaxable>
AbstractCondition. getChildren()
Gets the children.Methods in org.refcodes.cli with parameters of type Syntaxable Modifier and Type Method Description protected void
AbstractCondition. addChild(Syntaxable aArgumentizer)
Adds the child.static ArgsSyntax
CliSugar. all(Syntaxable aArg)
static ArgsSyntax
CliSugar. and(Syntaxable... aArgs)
static ArgsSyntax
CliSugar. any(Syntaxable... aArgs)
static ArgsSyntax
CliSugar. cases(Syntaxable... aArgs)
static ArgsSyntax
CliSugar. optional(Syntaxable... aArgs)
Semantically identical synonym for theCliSugar.optional(Syntaxable...)
declaration.static ArgsSyntax
CliSugar. or(Syntaxable... aArgs)
static ArgsSyntax
CliSugar. xor(Syntaxable... aArgs)
Constructors in org.refcodes.cli with parameters of type Syntaxable Constructor Description AbstractCondition(Syntaxable... aElements)
Instantiates a new abstract condition.AllCondition(Syntaxable aArg)
AndCondition(Syntaxable... aArgs)
AnyCondition(Syntaxable... aArgs)
CasesCondition(Syntaxable... aArgs)
OrCondition(Syntaxable... aArgs)
XorCondition(Syntaxable... aArgs)
-