Package picocli
Class CommandLine.Model.CommandReflection
- java.lang.Object
-
- picocli.CommandLine.Model.CommandReflection
-
- Enclosing class:
- CommandLine.Model
private static class CommandLine.Model.CommandReflection extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CommandReflection()
-
Method Summary
-
-
-
Method Detail
-
extractArgGroupSpec
static CommandLine.Model.ArgGroupSpec extractArgGroupSpec(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec, boolean annotationsAreMandatory) throws java.lang.Exception
- Throws:
java.lang.Exception
-
extractCommandSpec
static CommandLine.Model.CommandSpec extractCommandSpec(java.lang.Object command, CommandLine.IFactory factory, boolean annotationsAreMandatory)
-
injectSpecIntoVersionProvider
private static void injectSpecIntoVersionProvider(CommandLine.Model.CommandSpec result, CommandLine.Command cmd, CommandLine.IFactory factory)
-
initSubcommands
private static void initSubcommands(CommandLine.Command cmd, java.lang.Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory, java.util.Stack<java.lang.Class<?>> hierarchy)
-
initMethodSubcommands
private static void initMethodSubcommands(java.lang.Class<?> cls, CommandLine.Model.CommandSpec parent, CommandLine.IFactory factory)
-
subcommandName
private static java.lang.String subcommandName(java.lang.Class<?> sub)
-
initFromAnnotatedFields
private static boolean 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)
-
initFromAnnotatedTypedMembers
private static boolean initFromAnnotatedTypedMembers(CommandLine.Model.TypedMember member, CommandLine.Model.Predicate<CommandLine.Model.TypedMember> predicate, CommandLine.Model.CommandSpec commandSpec, CommandLine.Model.ArgGroupSpec.Builder groupBuilder, CommandLine.IFactory factory)
-
initFromMethodParameters
private static boolean initFromMethodParameters(CommandLine.Model.IScope scope, java.lang.reflect.Method method, CommandLine.Model.CommandSpec receiver, CommandLine.Model.ArgGroupSpec.Builder groupBuilder, CommandLine.IFactory factory)
-
validateArgSpecMember
private static void validateArgSpecMember(CommandLine.Model.TypedMember member)
-
validateCommandSpec
private static void validateCommandSpec(CommandLine.Model.CommandSpec result, boolean hasCommandAnnotation, java.lang.String commandClassName)
-
validateArgGroupSpec
private static void validateArgGroupSpec(CommandLine.Model.ArgGroupSpec result, boolean hasArgAnnotation, java.lang.String className)
-
validateInjectSpec
private static void validateInjectSpec(CommandLine.Model.TypedMember member)
-
assertNoDuplicateAnnotations
private static void assertNoDuplicateAnnotations(CommandLine.Model.TypedMember member, java.lang.Class<? extends java.lang.annotation.Annotation> myAnnotation, java.lang.Class<? extends java.lang.annotation.Annotation>... forbidden)
-
buildMixinForMember
private static CommandLine.Model.CommandSpec buildMixinForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)
-
buildArgForMember
private static CommandLine.Model.ArgSpec buildArgForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory)
-
buildArgGroupForMember
private static CommandLine.Model.ArgGroupSpec buildArgGroupForMember(CommandLine.Model.IAnnotatedElement member, CommandLine.IFactory factory, CommandLine.Model.CommandSpec commandSpec)
-
buildUnmatchedForMember
private static CommandLine.Model.UnmatchedArgsBinding buildUnmatchedForMember(CommandLine.Model.IAnnotatedElement member)
-
-