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.IFactory
CommandLine.factory
private final CommandLine.IFactory
CommandLine.Model.CommandUserObject.factory
Methods in picocli that return CommandLine.IFactoryModifier and TypeMethodDescriptionstatic CommandLine.IFactory
CommandLine.defaultFactory()
Returns the defaultCommandLine.IFactory
implementation used if no factory was specified in theCommandLine constructor
.CommandLine.getFactory()
Returns the factory that thisCommandLine
was 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.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) 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.CommandSpec
CommandLine.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> T
CommandLine.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.IDefaultValueProvider
CommandLine.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.IParameterConsumer
CommandLine.DefaultFactory.createParameterConsumer
(CommandLine.IFactory factory, Class<? extends CommandLine.IParameterConsumer> cls) (package private) static CommandLine.IVersionProvider
CommandLine.DefaultFactory.createVersionProvider
(CommandLine.IFactory factory, 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
(Object command, CommandLine.IFactory factory, boolean annotationsAreMandatory) CommandLine.Model.CommandSpec.forAnnotatedObject
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
initialized from the specified associated user object.CommandLine.Model.CommandSpec.forAnnotatedObjectLenient
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
initialized from the specified associated user object.(package private) void
CommandLine.Model.CommandSpec.initDefaultValueProvider
(Class<? extends CommandLine.IDefaultValueProvider> value, CommandLine.IFactory factory) private static boolean
CommandLine.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 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, Method method, CommandLine.Model.CommandSpec receiver, CommandLine.Model.ArgGroupSpec.Builder groupBuilder, CommandLine.IFactory factory) private static void
CommandLine.Model.CommandReflection.initMethodSubcommands
(Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory) private static void
CommandLine.Model.CommandReflection.initSubcommands
(CommandLine.Command cmd, Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory, Set<Class<?>> hierarchy) private static void
CommandLine.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) void
CommandLine.Model.ArgGroupSpec.setUserObject
(Object userObject, CommandLine.IFactory factory) private static CommandLine
CommandLine.toCommandLine
(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 andusage message spec
.(package private) void
CommandLine.Model.CommandSpec.updateModelTransformer
(Class<? extends CommandLine.IModelTransformer> value, CommandLine.IFactory factory) (package private) void
CommandLine.Model.CommandSpec.updatePreprocessor
(Class<? extends CommandLine.IParameterPreprocessor> value, CommandLine.IFactory factory) (package private) void
CommandLine.Model.CommandSpec.updateVersionProvider
(Class<? extends CommandLine.IVersionProvider> value, CommandLine.IFactory factory) CommandLine.Model.CommandSpec.wrapWithoutInspection
(Object userObject, CommandLine.IFactory factory) Creates and returns a newCommandSpec
with 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) private
Builder
(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) private
Builder
(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory) CommandLine
(Object command, CommandLine.IFactory factory) Constructs a newCommandLine
interpreter with the specified object (which may be an annotated user object or aCommandSpec
) and object factory.private
CommandLine
(Object command, CommandLine.IFactory factory, boolean userCalled) private
CommandUserObject
(Object objectOrClass, CommandLine.IFactory factory)
CommandLine.execute(String...)
andCommandLine.getExecutionResult()
instead