Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Method and Description |
---|---|
(package private) static CommandLine.Range |
CommandLine.Range.adjustForType(CommandLine.Range result,
java.lang.reflect.Field field) |
static CommandLine.Range |
CommandLine.Range.defaultArity(java.lang.Class<?> type)
Returns the default arity
Range for options : booleans have arity 0, other types have arity 1. |
static CommandLine.Range |
CommandLine.Range.defaultArity(java.lang.reflect.Field field)
Returns the default arity
Range : for options this is 0 for booleans and 1 for
other types, for parameters booleans have arity 0, arrays or Collections have
arity "0..*", and other types have arity 1. |
CommandLine.Range |
CommandLine.Range.max(int newMax)
Returns a new Range object with the
max value replaced by the specified value. |
CommandLine.Range |
CommandLine.Range.min(int newMin)
Returns a new Range object with the
min value replaced by the specified value. |
static CommandLine.Range |
CommandLine.Range.optionArity(java.lang.reflect.Field field)
Returns a new
Range based on the CommandLine.Option.arity() annotation on the specified field,
or the field type's default arity if no arity was specified. |
static CommandLine.Range |
CommandLine.Range.parameterArity(java.lang.reflect.Field field)
Returns a new
Range based on the CommandLine.Parameters.arity() annotation on the specified field,
or the field type's default arity if no arity was specified. |
(package private) static CommandLine.Range |
CommandLine.Range.parameterCapacity(java.lang.reflect.Field field) |
static CommandLine.Range |
CommandLine.Range.parameterIndex(java.lang.reflect.Field field)
Returns a new
Range based on the CommandLine.Parameters.index() annotation on the specified field. |
static CommandLine.Range |
CommandLine.Range.valueOf(java.lang.String range)
Leniently parses the specified String as an
Range value and return the result. |
Modifier and Type | Method and Description |
---|---|
(package private) static CommandLine.Range |
CommandLine.Range.adjustForType(CommandLine.Range result,
java.lang.reflect.Field field) |
private int |
CommandLine.Interpreter.applyOption(java.lang.reflect.Field field,
java.lang.Class<?> annotation,
CommandLine.Range arity,
boolean valueAttachedToOption,
java.util.Stack<java.lang.String> args,
java.util.Set<java.lang.reflect.Field> initialized,
java.lang.String argDescription) |
private int |
CommandLine.Interpreter.applyValuesToArrayField(java.lang.reflect.Field field,
java.lang.Class<?> annotation,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> cls,
java.lang.String argDescription) |
private int |
CommandLine.Interpreter.applyValuesToCollectionField(java.lang.reflect.Field field,
java.lang.Class<?> annotation,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> cls,
java.lang.String argDescription) |
private int |
CommandLine.Interpreter.applyValuesToMapField(java.lang.reflect.Field field,
java.lang.Class<?> annotation,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> cls,
java.lang.String argDescription) |
private int |
CommandLine.Interpreter.applyValueToSingleValuedField(java.lang.reflect.Field field,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> cls,
java.util.Set<java.lang.reflect.Field> initialized,
java.lang.String argDescription) |
private void |
CommandLine.Interpreter.checkMaxArityExceeded(CommandLine.Range arity,
int remainder,
java.lang.reflect.Field field,
java.lang.String[] values) |
int |
CommandLine.Range.compareTo(CommandLine.Range other) |
private java.util.List<java.lang.Object> |
CommandLine.Interpreter.consumeArguments(java.lang.reflect.Field field,
java.lang.Class<?> annotation,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> type,
int originalSize,
java.lang.String argDescription) |
private void |
CommandLine.Interpreter.consumeMapArguments(java.lang.reflect.Field field,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?>[] classes,
CommandLine.ITypeConverter<?> keyConverter,
CommandLine.ITypeConverter<?> valueConverter,
java.util.Map<java.lang.Object,java.lang.Object> result,
java.lang.String argDescription) |
private int |
CommandLine.Interpreter.consumeOneArgument(java.lang.reflect.Field field,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?> type,
java.util.List<java.lang.Object> result,
int index,
int originalSize,
java.lang.String argDescription) |
private void |
CommandLine.Interpreter.consumeOneMapArgument(java.lang.reflect.Field field,
CommandLine.Range arity,
java.util.Stack<java.lang.String> args,
java.lang.Class<?>[] classes,
CommandLine.ITypeConverter<?> keyConverter,
CommandLine.ITypeConverter<?> valueConverter,
java.util.Map<java.lang.Object,java.lang.Object> result,
int index,
java.lang.String argDescription) |