Uses of Interface
org.refcodes.cli.Term
-
Uses of Term in org.refcodes.cli
Modifier and TypeInterfaceDescriptioninterface
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.interface
AnPropertyOption
represents a command line property with the according porperty's key and value.Modifier and TypeClassDescriptionclass
TheAbstractCondition
is an abstract implementation of theCondition
interface providing the boiler plate when implementing theCondition
interface as done by theAbstractCondition
's sub-classes.class
TheAbstractOperand
is an abstract implementation of anOperand
providing the boiler plate when implementing theOperand
interface.class
TheAbstractOption
is an abstract implementation of anOption
providing the boiler plate when implementing theOption
interface.class
TheAbstractPropertyOption
is an abstract implementation of aPropertyOption
providing the boiler plate when implementing thePropertyOption
interface.class
TheAllCondition
enforces that the encapsulatedTerm
consumes all arguments passed via invoking itsparseArgs(String[], CliContext)
, else aSuperfluousArgsException
is thrown.class
AnAndCondition
contains (represents) a list ofCondition
(Term
) instances (nested by theAndCondition
) of which all are to be parsed successfully as of invoking theparseArgs(String[], String[], CliContext)
methods.class
Any of the nestedCondition
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
class
class
TheCasesCondition
is anXorCondition
making sure that all possible cases inside theXorCondition
must(!)class
class
class
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
TheConfigOption
represents anOption
holding a value specifying a configuration resource (file).class
TheConfigProperty
represents anPropertyOption
holding a value specifying a configuration resource (file).class
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
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
class
class
EnumOption<T extends Enum<T>>
TheEnumOption
represents anOption
of enumeration types.class
EnumProperty<T extends Enum<T>>
TheEnumProperty
represents anPropertyOption
of enumeration types.class
class
class
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
class
class
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
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
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
class
class
class
class
TheNoneOperand
represents an empty set of arguments, e.g. no command line argument is being passed.class
TheOperation
is an argument representing a function or a method ("command") and is either provided or not provided as ofOperation.isEnabled()
.class
AnOrCondition
represents a list ofCondition
(Term
) instances of which at least one must be parsed successfully when theTerm
s'parseArgs(String[], String[], CliContext)
methods are invoked.class
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
class
class
class
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
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
AnXorCondition
represents a list ofCondition
(Term
) instances of which only one is allowed to be parsed successfully when theparseArgs(String[], String[], CliContext)
methods are invoked.Modifier and TypeMethodDescriptionArgsParser.getArgsSyntax()
ArgsSyntaxAccessor.getArgsSyntax()
ParseArgs.getArgsSyntax()
protected Term
AllCondition.getChild()
Returns the one and only child of thisTerm
.Term[]
AbstractCondition.getChildren()
ArgsSyntaxException.getSource()
Returns theTerm
responsible for this exception.default Term
ArgsSyntaxAccessor.ArgsSyntaxProperty.letArgsSyntax
(Term aArgsSyntax) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCondition
(setter) as ofArgsSyntaxAccessor.ArgsSyntaxMutator.setArgsSyntax(Term)
and returns the very same value (getter).Modifier and TypeMethodDescriptionstatic AllCondition
static AndCondition
static AnyCondition
static CasesCondition
default boolean
default boolean
default Term
ArgsSyntaxAccessor.ArgsSyntaxProperty.letArgsSyntax
(Term aArgsSyntax) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCondition
(setter) as ofArgsSyntaxAccessor.ArgsSyntaxMutator.setArgsSyntax(Term)
and returns the very same value (getter).static AnyCondition
Semantically identical synonym for theCliSugar.optional(Term...)
declaration.static OrCondition
void
ArgsParser.setArgsSyntax
(Term aArgsSyntax) void
ArgsSyntaxAccessor.ArgsSyntaxMutator.setArgsSyntax
(Term aArgsSyntax) String[]
CliContext.toAllOptions
(Term aConstituent) Determines all options (short and long) found in the providedTerm
node and its children.ArgsParser.withArgsSyntax
(Term aArgsSyntax) ArgsSyntaxAccessor.ArgsSyntaxBuilder.withArgsSyntax
(Term aArgsSyntax) static XorCondition
ModifierConstructorDescriptionAbstractCondition
(String aDescription, Term... aElements) Instantiates anAbstractCondition
' s sub-class with the according arguments.AllCondition
(Term aArg) AmbiguousArgsException
(String[] aArgs, String aMessage, String aErrorCode, Term aSource) Instantiates a newAmbiguousArgsException
exception.AmbiguousArgsException
(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newAmbiguousArgsException
exception.AmbiguousArgsException
(String[] aArgs, String aMessage, Throwable aCause, Term aSource) Instantiates a newAmbiguousArgsException
exception.AmbiguousArgsException
(String[] aArgs, String aMessage, Term aSource) Instantiates a newAmbiguousArgsException
exception.AmbiguousArgsException
(String[] aArgs, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newAmbiguousArgsException
exception.AmbiguousArgsException
(String[] aArgs, Throwable aCause, Term aSource) Instantiates a newAmbiguousArgsException
exception.AndCondition
(Term... aArgs) AnyCondition
(Term... aArgs) ArgsParser
(Term aArgsSyntax) Constructs theParseArgs
instance with the given rootCondition
and the defaultSyntaxNotation.LOGICAL
.ArgsParser
(Term aArgsSyntax, CliContext aCliCtx) Constructs theParseArgs
instance with the given rootCondition
and the defaultSyntaxNotation.LOGICAL
.ArgsSyntaxException
(String[] aArgs, String aMessage, String aErrorCode, Term aSource) Instantiates a newArgsSyntaxException
exception.ArgsSyntaxException
(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newArgsSyntaxException
exception.ArgsSyntaxException
(String[] aArgs, String aMessage, Throwable aCause, Term aSource) Instantiates a newArgsSyntaxException
exception.ArgsSyntaxException
(String[] aArgs, String aMessage, Term aSource) Instantiates a newArgsSyntaxException
exception.ArgsSyntaxException
(String[] aArgs, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newArgsSyntaxException
exception.ArgsSyntaxException
(String[] aArgs, Throwable aCause, Term aSource) Instantiates a newArgsSyntaxException
exception.CasesCondition
(Term... aArgs) OrCondition
(Term... aArgs) ParseArgsException
(String[] aArgs, String aMessage, String aErrorCode, Term aSource) Instantiates a newParseArgsException
exception.ParseArgsException
(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newParseArgsException
exception.ParseArgsException
(String[] aArgs, String aMessage, Throwable aCause, Term aSource) Instantiates a newParseArgsException
exception.ParseArgsException
(String[] aArgs, String aMessage, Term aSource) Instantiates a newParseArgsException
exception.ParseArgsException
(String[] aArgs, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newParseArgsException
exception.ParseArgsException
(String[] aArgs, Throwable aCause, Term aSource) Instantiates a newParseArgsException
exception.SuperfluousArgsException
(String[] aArgs, String aMessage, String aErrorCode, Term aSource) Instantiates a newSuperfluousArgsException
exception.SuperfluousArgsException
(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newSuperfluousArgsException
exception.SuperfluousArgsException
(String[] aArgs, String aMessage, Throwable aCause, Term aSource) Instantiates a newSuperfluousArgsException
exception.SuperfluousArgsException
(String[] aArgs, String aMessage, Term aSource) Instantiates a newSuperfluousArgsException
exception.SuperfluousArgsException
(String[] aArgs, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newSuperfluousArgsException
exception.SuperfluousArgsException
(String[] aArgs, Throwable aCause, Term aSource) Instantiates a newSuperfluousArgsException
exception.UnknownArgsException
(String[] aArgs, String aMessage, String aErrorCode, Term aSource) Instantiates a newUnknownArgsException
exception.UnknownArgsException
(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newUnknownArgsException
exception.UnknownArgsException
(String[] aArgs, String aMessage, Throwable aCause, Term aSource) Instantiates a newUnknownArgsException
exception.UnknownArgsException
(String[] aArgs, String aMessage, Term aSource) Instantiates a newUnknownArgsException
exception.UnknownArgsException
(String[] aArgs, Throwable aCause, String aErrorCode, Term aSource) Instantiates a newUnknownArgsException
exception.UnknownArgsException
(String[] aArgs, Throwable aCause, Term aSource) Instantiates a newUnknownArgsException
exception.protected
XorCondition
(String aDescription, Term... aArgs) XorCondition
(Term... aArgs)