Uses of Interface
net.sourceforge.argparse4j.inf.Argument
Packages that use Argument
Package
Description
-
Uses of Argument in net.sourceforge.argparse4j.ext.java7
Methods in net.sourceforge.argparse4j.ext.java7 with parameters of type ArgumentModifier and TypeMethodDescriptionPathArgumentType.convert
(ArgumentParser parser, Argument arg, String value) -
Uses of Argument in net.sourceforge.argparse4j.impl.action
Methods in net.sourceforge.argparse4j.impl.action with parameters of type ArgumentModifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
AppendArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
AppendArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
AppendConstArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
AppendConstArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
CountArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
CountArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
HelpArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
StoreArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
StoreArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
StoreConstArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
StoreConstArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
StoreFalseArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
StoreFalseArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
StoreTrueArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) void
StoreTrueArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) void
VersionArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) -
Uses of Argument in net.sourceforge.argparse4j.impl.type
Methods in net.sourceforge.argparse4j.impl.type with parameters of type ArgumentModifier and TypeMethodDescriptionBooleanArgumentType.convert
(ArgumentParser parser, Argument arg, String value) CaseInsensitiveEnumArgumentType.convert
(ArgumentParser parser, Argument arg, String value) ConstructorArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Deprecated.EnumArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Deprecated.EnumStringArgumentType.convert
(ArgumentParser parser, Argument arg, String value) FileArgumentType.convert
(ArgumentParser parser, Argument arg, String value) ReflectArgumentType.convert
(ArgumentParser parser, Argument arg, String value) StringArgumentType.convert
(ArgumentParser parser, Argument arg, String value) private T
ReflectArgumentType.convertUsingConstructor
(ArgumentParser parser, Argument arg, String value) private void
ReflectArgumentType.throwArgumentParserException
(ArgumentParser parser, Argument arg, String value, Throwable t) private void
FileVerification.throwException
(ArgumentParser parser, Argument arg, File file, String messageKey) void
FileVerification.verify
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanCreate
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanExecute
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanRead
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanWrite
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyCanWriteParent
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyExists
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsAbsolute
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsDirectory
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyIsFile
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyNotExists
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyPermissions
(ArgumentParser parser, Argument arg, File file) private void
FileVerification.verifyPresenceAndType
(ArgumentParser parser, Argument arg, File file) -
Uses of Argument in net.sourceforge.argparse4j.inf
Methods in net.sourceforge.argparse4j.inf that return ArgumentModifier and TypeMethodDescriptionArgument.action
(ArgumentAction action) Sets the action to be taken when this argument is encountered at the command line.ArgumentContainer.addArgument
(String... nameOrFlags) Creates newArgument
, adds it to this container and returns it.<E> Argument
Argument.choices
(E... values) Sets a collection of the allowable values for the argument.<E> Argument
Argument.choices
(Collection<E> values) Sets a collection of the allowable values for the argument.Argument.choices
(ArgumentChoice choice) SetsArgumentChoice
object which inspects value so that it fulfills its criteria.The name of the attribute to be added.Sets the brief description of what the argument does.Argument.help
(FeatureControl ctrl) Sets special value to control help message handling.Set the name for the argument in usage messages.Argument.nargs
(int n) Sets the number of command line arguments that should be consumed.Sets the number of command line arguments that should be consumed.Argument.required
(boolean required) Iftrue
is given, this named argument must be specified in command line otherwise error will be issued.<E> Argument
Argument.setConst
(E... values) Sets list of constant values that are not read from the command line but are required for the various actions.Sets constant values that are not read from the command line but are required for the various actions.<E> Argument
Argument.setDefault
(E... values) Sets list of values which should be used if the command line argument is not present.Argument.setDefault
(Object value) Sets value which should be used if the command line argument is not present.Argument.setDefault
(FeatureControl ctrl) Sets special value to control default value handling.<T> Argument
Sets the type which the command line argument should be converted to.<T> Argument
Argument.type
(ArgumentType<T> type) SetsArgumentType
object which converts command line argument to appropriate type.Methods in net.sourceforge.argparse4j.inf with parameters of type ArgumentModifier and TypeMethodDescriptionArgumentType.convert
(ArgumentParser parser, Argument arg, String value) Convertsvalue
to appropriate type.private static String
ArgumentParserException.formatMessage
(String message, Argument arg, ArgumentParserConfiguration config) void
Called when ArgumentAction is added toArgument
usingaction(ArgumentAction)
.void
ArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) Deprecated.Does not provide the flexibility to let the parser and/or argument decide how the value is stored.default void
ArgumentAction.run
(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value, Consumer<Object> valueSetter) Executes this action.Constructors in net.sourceforge.argparse4j.inf with parameters of type ArgumentModifierConstructorDescriptionArgumentParserException
(String message, Throwable cause, ArgumentParser parser, Argument arg) ArgumentParserException
(String message, ArgumentParser parser, Argument arg) -
Uses of Argument in net.sourceforge.argparse4j.internal
Classes in net.sourceforge.argparse4j.internal that implement ArgumentModifier and TypeClassDescriptionfinal class
The application code must not use this class directly.Methods in net.sourceforge.argparse4j.internal that return Argument