Uses of Interface
picocli.CommandLine.IFactory
-
Uses of CommandLine.IFactory in picocli
Classes in picocli that implement CommandLine.IFactoryFields in picocli declared as CommandLine.IFactoryModifier and TypeFieldDescriptionprivate final CommandLine.IFactoryCommandLine.factoryprivate final CommandLine.IFactoryCommandLine.Model.CommandUserObject.factoryMethods in picocli that return CommandLine.IFactoryModifier and TypeMethodDescriptionstatic CommandLine.IFactoryCommandLine.defaultFactory()Returns the defaultCommandLine.IFactoryimplementation used if no factory was specified in theCommandLine constructor.CommandLine.getFactory()Returns the factory that thisCommandLinewas constructed with.Methods in picocli with parameters of type CommandLine.IFactoryModifier and TypeMethodDescriptionCommandLine.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.ArgSpecCommandLine.Model.CommandReflection.buildArgForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) private static CommandLine.Model.ArgGroupSpecCommandLine.Model.CommandReflection.buildArgGroupForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec) CommandLine.Model.OptionSpec.builder(CommandLine.Model.IAnnotatedElement source, CommandLine.IFactory factory) CommandLine.Model.PositionalParamSpec.builder(CommandLine.Model.IAnnotatedElement source, CommandLine.IFactory factory) private static CommandLine.Model.CommandSpecCommandLine.Model.CommandReflection.buildMixinForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) static <C extends Callable<T>,T>
TCommandLine.call(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.static <C extends Callable<T>,T>
TCommandLine.call(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, String... args) Deprecated.useCommandLine.execute(String...)andCommandLine.getExecutionResult()insteadstatic <C extends Callable<T>,T>
TCommandLine.call(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)andCommandLine.getExecutionResult()insteadstatic <C extends Callable<T>,T>
TCommandLine.call(Class<C> callableClass, CommandLine.IFactory factory, String... args) Deprecated.useCommandLine.execute(String...)andCommandLine.getExecutionResult()instead(package private) static <T> TCommandLine.DefaultFactory.create(CommandLine.IFactory factory, Class<T> cls) CommandLine.Model.CommandUserObject.create(Object userObject, CommandLine.IFactory factory) CommandLine.DefaultFactory.createCompletionCandidates(CommandLine.IFactory factory, Class<? extends Iterable<String>> cls) private static CommandLine.ITypeConverter<?>[]CommandLine.DefaultFactory.createConverter(CommandLine.IFactory factory, Class<? extends CommandLine.ITypeConverter<?>>[] classes) (package private) static CommandLine.IDefaultValueProviderCommandLine.DefaultFactory.createDefaultValueProvider(CommandLine.IFactory factory, Class<? extends CommandLine.IDefaultValueProvider> cls) (package private) static List<CommandLine> CommandLine.Model.CommandSpec.createMethodSubcommands(Class<?> cls, CommandLine.IFactory factory, boolean includeInherited) (package private) static CommandLine.IParameterConsumerCommandLine.DefaultFactory.createParameterConsumer(CommandLine.IFactory factory, Class<? extends CommandLine.IParameterConsumer> cls) (package private) static CommandLine.IVersionProviderCommandLine.DefaultFactory.createVersionProvider(CommandLine.IFactory factory, Class<? extends CommandLine.IVersionProvider> cls) (package private) static CommandLine.Model.ArgGroupSpecCommandLine.Model.CommandReflection.extractArgGroupSpec(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec, boolean annotationsAreMandatory) (package private) static CommandLine.Model.CommandSpecCommandLine.Model.CommandReflection.extractCommandSpec(Object command, CommandLine.IFactory factory, boolean annotationsAreMandatory) CommandLine.Model.CommandSpec.forAnnotatedObject(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpecinitialized from the specified associated user object.CommandLine.Model.CommandSpec.forAnnotatedObjectLenient(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpecinitialized from the specified associated user object.(package private) voidCommandLine.Model.CommandSpec.initDefaultValueProvider(Class<? extends CommandLine.IDefaultValueProvider> value, CommandLine.IFactory factory) private static booleanCommandLine.Model.CommandReflection.initFromAnnotatedMembers(CommandLine.Model.IScope scope, Class<?> cls, CommandLine.Model.CommandSpec receiver, CommandLine.Model.ArgGroupSpec.Builder groupBuilder, CommandLine.IFactory factory, CommandLine.Model.Predicate<CommandLine.Model.TypedMember> predicate) private static booleanCommandLine.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 booleanCommandLine.Model.CommandReflection.initFromMethodParameters(CommandLine.Model.IScope scope, Method method, CommandLine.Model.CommandSpec receiver, CommandLine.Model.ArgGroupSpec.Builder groupBuilder, CommandLine.IFactory factory) private static voidCommandLine.Model.CommandReflection.initMethodSubcommands(Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory) private static voidCommandLine.Model.CommandReflection.initSubcommands(CommandLine.Command cmd, Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory, Set<Class<?>> hierarchy) private static voidCommandLine.Model.CommandReflection.injectSpecIntoVersionProvider(CommandLine.Model.CommandSpec result, CommandLine.Command cmd, CommandLine.IFactory factory) static <R extends Runnable>
voidCommandLine.run(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)insteadstatic <R extends Runnable>
voidCommandLine.run(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, String... args) Deprecated.useCommandLine.execute(String...)insteadstatic <R extends Runnable>
voidCommandLine.run(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)insteadstatic <R extends Runnable>
voidCommandLine.run(Class<R> runnableClass, CommandLine.IFactory factory, String... args) Deprecated.useCommandLine.execute(String...)instead(package private) voidCommandLine.Model.ArgGroupSpec.setUserObject(Object userObject, CommandLine.IFactory factory) private static CommandLineCommandLine.toCommandLine(Object obj, CommandLine.IFactory factory) voidCommandLine.Model.CommandSpec.updateCommandAttributes(CommandLine.Command cmd, CommandLine.IFactory factory) Updates the following attributes from the specified@Commandannotation: aliases,parser separator, command name, version, help command, version provider, default provider andusage message spec.(package private) voidCommandLine.Model.CommandSpec.updateModelTransformer(Class<? extends CommandLine.IModelTransformer> value, CommandLine.IFactory factory) (package private) voidCommandLine.Model.CommandSpec.updatePreprocessor(Class<? extends CommandLine.IParameterPreprocessor> value, CommandLine.IFactory factory) (package private) voidCommandLine.Model.CommandSpec.updateVersionProvider(Class<? extends CommandLine.IVersionProvider> value, CommandLine.IFactory factory) CommandLine.Model.CommandSpec.wrapWithoutInspection(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpecwith the specified associated user object.Constructors in picocli with parameters of type CommandLine.IFactoryModifierConstructorDescription(package private)Builder(CommandLine.Option option, CommandLine.Model.IAnnotatedElement annotatedElement, CommandLine.IFactory factory) (package private)Builder(CommandLine.Parameters parameters, CommandLine.Model.IAnnotatedElement annotatedElement, CommandLine.IFactory factory) privateBuilder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) privateBuilder(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) CommandLine(Object command, CommandLine.IFactory factory) Constructs a newCommandLineinterpreter with the specified object (which may be an annotated user object or aCommandSpec) and object factory.privateCommandLine(Object command, CommandLine.IFactory factory, boolean userCalled) privateCommandUserObject(Object objectOrClass, CommandLine.IFactory factory)
CommandLine.execute(String...)andCommandLine.getExecutionResult()instead