CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.addMethodSubcommands(CommandLine.IFactory factory) |
Reflects on the class of the user object and registers any command methods
(class methods annotated with @Command ) as subcommands.
|
private static CommandLine.Model.ArgSpec |
CommandLine.Model.CommandReflection.buildArgForMember(CommandLine.Model.IAnnotatedElement member,
CommandLine.IFactory factory) |
|
private static CommandLine.Model.ArgGroupSpec |
CommandLine.Model.CommandReflection.buildArgGroupForMember(CommandLine.Model.IAnnotatedElement member,
CommandLine.IFactory factory,
CommandLine.Model.CommandSpec commandSpec) |
|
static CommandLine.Model.OptionSpec.Builder |
CommandLine.Model.OptionSpec.builder(CommandLine.Model.IAnnotatedElement source,
CommandLine.IFactory factory) |
|
static CommandLine.Model.PositionalParamSpec.Builder |
CommandLine.Model.PositionalParamSpec.builder(CommandLine.Model.IAnnotatedElement source,
CommandLine.IFactory factory) |
|
private static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandReflection.buildMixinForMember(CommandLine.Model.IAnnotatedElement member,
CommandLine.IFactory factory) |
|
static <C extends java.util.concurrent.Callable<T>,T> T |
CommandLine.call(java.lang.Class<C> callableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
java.io.PrintStream err,
CommandLine.Help.Ansi ansi,
java.lang.String... args) |
Deprecated.
|
static <C extends java.util.concurrent.Callable<T>,T> T |
CommandLine.call(java.lang.Class<C> callableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
java.lang.String... args) |
Deprecated.
|
static <C extends java.util.concurrent.Callable<T>,T> T |
CommandLine.call(java.lang.Class<C> callableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
CommandLine.Help.Ansi ansi,
java.lang.String... args) |
Deprecated.
|
static <C extends java.util.concurrent.Callable<T>,T> T |
CommandLine.call(java.lang.Class<C> callableClass,
CommandLine.IFactory factory,
java.lang.String... args) |
Deprecated.
|
(package private) static <T> T |
CommandLine.DefaultFactory.create(CommandLine.IFactory factory,
java.lang.Class<T> cls) |
|
static CommandLine.Model.CommandUserObject |
CommandLine.Model.CommandUserObject.create(java.lang.Object userObject,
CommandLine.IFactory factory) |
|
(package private) static java.lang.Iterable<java.lang.String> |
CommandLine.DefaultFactory.createCompletionCandidates(CommandLine.IFactory factory,
java.lang.Class<? extends java.lang.Iterable<java.lang.String>> cls) |
|
private static CommandLine.ITypeConverter<?>[] |
CommandLine.DefaultFactory.createConverter(CommandLine.IFactory factory,
java.lang.Class<? extends CommandLine.ITypeConverter<?>>[] classes) |
|
(package private) static CommandLine.IDefaultValueProvider |
CommandLine.DefaultFactory.createDefaultValueProvider(CommandLine.IFactory factory,
java.lang.Class<? extends CommandLine.IDefaultValueProvider> cls) |
|
(package private) static java.util.List<CommandLine> |
CommandLine.Model.CommandSpec.createMethodSubcommands(java.lang.Class<?> cls,
CommandLine.IFactory factory,
boolean includeInherited) |
|
(package private) static CommandLine.IParameterConsumer |
CommandLine.DefaultFactory.createParameterConsumer(CommandLine.IFactory factory,
java.lang.Class<? extends CommandLine.IParameterConsumer> cls) |
|
(package private) static CommandLine.IVersionProvider |
CommandLine.DefaultFactory.createVersionProvider(CommandLine.IFactory factory,
java.lang.Class<? extends CommandLine.IVersionProvider> cls) |
|
(package private) static CommandLine.Model.ArgGroupSpec |
CommandLine.Model.CommandReflection.extractArgGroupSpec(CommandLine.Model.IAnnotatedElement member,
CommandLine.IFactory factory,
CommandLine.Model.CommandSpec commandSpec,
boolean annotationsAreMandatory) |
|
(package private) static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandReflection.extractCommandSpec(java.lang.Object command,
CommandLine.IFactory factory,
boolean annotationsAreMandatory) |
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObject(java.lang.Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.forAnnotatedObjectLenient(java.lang.Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec initialized from the specified associated user object.
|
(package private) void |
CommandLine.Model.CommandSpec.initDefaultValueProvider(java.lang.Class<? extends CommandLine.IDefaultValueProvider> value,
CommandLine.IFactory factory) |
|
private static boolean |
CommandLine.Model.CommandReflection.initFromAnnotatedFields(CommandLine.Model.IScope scope,
java.lang.Class<?> cls,
CommandLine.Model.CommandSpec receiver,
CommandLine.Model.ArgGroupSpec.Builder groupBuilder,
CommandLine.IFactory factory,
CommandLine.Model.Predicate<CommandLine.Model.TypedMember> predicate) |
|
private static boolean |
CommandLine.Model.CommandReflection.initFromAnnotatedTypedMembers(CommandLine.Model.TypedMember member,
CommandLine.Model.Predicate<CommandLine.Model.TypedMember> predicate,
CommandLine.Model.CommandSpec commandSpec,
CommandLine.Model.ArgGroupSpec.Builder groupBuilder,
CommandLine.IFactory factory) |
|
private static boolean |
CommandLine.Model.CommandReflection.initFromMethodParameters(CommandLine.Model.IScope scope,
java.lang.reflect.Method method,
CommandLine.Model.CommandSpec receiver,
CommandLine.Model.ArgGroupSpec.Builder groupBuilder,
CommandLine.IFactory factory) |
|
private static void |
CommandLine.Model.CommandReflection.initMethodSubcommands(java.lang.Class<?> cls,
CommandLine.Model.CommandSpec parent,
CommandLine.IFactory factory) |
|
private static void |
CommandLine.Model.CommandReflection.initSubcommands(CommandLine.Command cmd,
java.lang.Class<?> cls,
CommandLine.Model.CommandSpec parent,
CommandLine.IFactory factory,
java.util.Stack<java.lang.Class<?>> hierarchy) |
|
private static void |
CommandLine.Model.CommandReflection.injectSpecIntoVersionProvider(CommandLine.Model.CommandSpec result,
CommandLine.Command cmd,
CommandLine.IFactory factory) |
|
static <R extends java.lang.Runnable> void |
CommandLine.run(java.lang.Class<R> runnableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
java.io.PrintStream err,
CommandLine.Help.Ansi ansi,
java.lang.String... args) |
Deprecated.
|
static <R extends java.lang.Runnable> void |
CommandLine.run(java.lang.Class<R> runnableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
java.lang.String... args) |
Deprecated.
|
static <R extends java.lang.Runnable> void |
CommandLine.run(java.lang.Class<R> runnableClass,
CommandLine.IFactory factory,
java.io.PrintStream out,
CommandLine.Help.Ansi ansi,
java.lang.String... args) |
Deprecated.
|
static <R extends java.lang.Runnable> void |
CommandLine.run(java.lang.Class<R> runnableClass,
CommandLine.IFactory factory,
java.lang.String... args) |
Deprecated.
|
(package private) void |
CommandLine.Model.ArgGroupSpec.setUserObject(java.lang.Object userObject,
CommandLine.IFactory factory) |
|
private static CommandLine |
CommandLine.toCommandLine(java.lang.Object obj,
CommandLine.IFactory factory) |
|
void |
CommandLine.Model.CommandSpec.updateCommandAttributes(CommandLine.Command cmd,
CommandLine.IFactory factory) |
Updates the following attributes from the specified @Command annotation:
aliases, parser separator , command name, version, help command,
version provider, default provider and usage message spec .
|
(package private) void |
CommandLine.Model.CommandSpec.updateModelTransformer(java.lang.Class<? extends CommandLine.IModelTransformer> value,
CommandLine.IFactory factory) |
|
(package private) void |
CommandLine.Model.CommandSpec.updatePreprocessor(java.lang.Class<? extends CommandLine.IParameterPreprocessor> value,
CommandLine.IFactory factory) |
|
(package private) void |
CommandLine.Model.CommandSpec.updateVersionProvider(java.lang.Class<? extends CommandLine.IVersionProvider> value,
CommandLine.IFactory factory) |
|
static CommandLine.Model.CommandSpec |
CommandLine.Model.CommandSpec.wrapWithoutInspection(java.lang.Object userObject,
CommandLine.IFactory factory) |
Creates and returns a new CommandSpec with the specified associated user object.
|