Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addArgument(Class, Field, Object, Object, String) - Static method in class com.sampullara.cli.Args
- addPropertyArgument(Class, PropertyDescriptor, Object, Object, String) - Static method in class com.sampullara.cli.Args
- alias() - Element in annotation interface com.sampullara.cli.Argument
-
Each argument can have an alias
- Args - Class in com.sampullara.cli
- Args() - Constructor for class com.sampullara.cli.Args
- Args.ValueCreator - Interface in com.sampullara.cli
- Argument - Annotation Interface in com.sampullara.cli
- Argument.DummyCallable - Class in com.sampullara.cli
B
- byStaticMethodInvocation(Class<?>, String) - Static method in class com.sampullara.cli.Args
-
Creates a
Args.ValueCreatorobject able to create object assignable from given type, using a static one arg method which name is the the given one taking a String object as parameter
C
- call() - Method in class com.sampullara.cli.Argument.DummyCallable
- com.sampullara.cli - package com.sampullara.cli
- consumeArgumentValue(Class<?>, Argument, Iterator<String>) - Static method in class com.sampullara.cli.Args
- createValue(Class<?>, String) - Static method in class com.sampullara.cli.Args
- createValue(Class<?>, String) - Method in interface com.sampullara.cli.Args.ValueCreator
-
Creates a value object of the given type using the given string value representation;
D
- DEFAULT_VALUE_CREATORS - Static variable in class com.sampullara.cli.Args
- delimiter() - Element in annotation interface com.sampullara.cli.Argument
-
A delimiter for arguments that are multi-valued.
- description() - Element in annotation interface com.sampullara.cli.Argument
-
A description of the argument that will appear in the usage method
- DummyCallable() - Constructor for class com.sampullara.cli.Argument.DummyCallable
E
- ENUM_CREATOR - Static variable in class com.sampullara.cli.Args
- envvar() - Element in annotation interface com.sampullara.cli.Argument
-
Each argument can be read from environment variable.
- EX_USAGE - Static variable in class com.sampullara.cli.Args
F
- fieldUsage(PrintStream, Object, Field) - Static method in class com.sampullara.cli.Args
- FROM_STRING_CONSTRUCTOR - Static variable in class com.sampullara.cli.Args
-
Args.ValueCreatorbuilding object using a one arg constructor taking aStringobject as parameter
G
- getAlias(Argument) - Static method in class com.sampullara.cli.Args
- getEnumPossibleValues(Class<?>) - Static method in class com.sampullara.cli.Args
- getEnumPossibleValuesImpl(Class<T>) - Static method in class com.sampullara.cli.Args
- getName(Argument, PropertyDescriptor) - Static method in class com.sampullara.cli.Args
- getName(Argument, Field) - Static method in class com.sampullara.cli.Args
- getPossibleValues(Class<?>, Class<? extends Callable<List<String>>>) - Static method in class com.sampullara.cli.Args
- getPossibleValuesViaProvider(Class<? extends Callable<List<String>>>) - Static method in class com.sampullara.cli.Args
- getTypeName(Class<?>) - Static method in class com.sampullara.cli.Args
- getValue(Class<?>, Object, String) - Static method in class com.sampullara.cli.Args
H
- Help - Annotation Interface in com.sampullara.cli
M
- makeAccessible(AccessibleObject) - Static method in class com.sampullara.cli.Args
P
- parse(Object, String[]) - Static method in class com.sampullara.cli.Args
- parse(Object, String[], boolean) - Static method in class com.sampullara.cli.Args
-
Parse a set of arguments and populate the target with the appropriate values.
- parse(Object, Properties) - Static method in class com.sampullara.cli.PropertiesArgs
-
Parse properties instead of String arguments.
- parseOrExit(Object, String[]) - Static method in class com.sampullara.cli.Args
-
A convenience method for parsing and automatically producing error messages.
- prefix() - Element in annotation interface com.sampullara.cli.Argument
-
This is the prefix expected for the argument
- processField(Object, Field, List<String>) - Static method in class com.sampullara.cli.Args
- processField(Object, Field, Properties) - Static method in class com.sampullara.cli.PropertiesArgs
- processProperty(Object, PropertyDescriptor, List<String>) - Static method in class com.sampullara.cli.Args
- processProperty(Object, PropertyDescriptor, Properties) - Static method in class com.sampullara.cli.PropertiesArgs
- PropertiesArgs - Class in com.sampullara.cli
-
Created by IntelliJ IDEA.
- PropertiesArgs() - Constructor for class com.sampullara.cli.PropertiesArgs
- propertyUsage(PrintStream, Object, PropertyDescriptor) - Static method in class com.sampullara.cli.Args
- propertyUsage(PrintStream, String, String, String, Class<?>, String, String, Object, List<String>) - Static method in class com.sampullara.cli.Args
R
- registerValueCreator(Args.ValueCreator) - Static method in class com.sampullara.cli.Args
-
Allows external extension of the valiue creators.
- required() - Element in annotation interface com.sampullara.cli.Argument
-
If this is true, then the argument must be set or the parse will fail
- resetValueCreators() - Static method in class com.sampullara.cli.Args
-
Cleanup of registered ValueCreators (mainly for tests)
S
- setField(Class<?>, Field, Object, Object, String) - Static method in class com.sampullara.cli.Args
- setProperty(Class<?>, PropertyDescriptor, Object, Object, String) - Static method in class com.sampullara.cli.Args
U
- usage(PrintStream, Object) - Static method in class com.sampullara.cli.Args
-
Generate usage information based on the target annotations.
- usage(PrintStream, Object, Class) - Static method in class com.sampullara.cli.Args
-
Generate usage information based on the target annotations.
- usage(Object) - Static method in class com.sampullara.cli.Args
-
Generate usage information based on the target annotations.
V
- value() - Element in annotation interface com.sampullara.cli.Argument
-
This is the actual command line argument itself
- value() - Element in annotation interface com.sampullara.cli.Help
- valueCreators - Static variable in class com.sampullara.cli.Args
- valuesProvider() - Element in annotation interface com.sampullara.cli.Argument
All Classes and Interfaces|All Packages|Constant Field Values