Package picocli
Class CommandLine.Model.TypedMember
java.lang.Object
picocli.CommandLine.Model.TypedMember
- All Implemented Interfaces:
CommandLine.Model.IAnnotatedElement
,CommandLine.Model.IExtensible
- Enclosing class:
CommandLine.Model
static class CommandLine.Model.TypedMember
extends Object
implements CommandLine.Model.IAnnotatedElement, CommandLine.Model.IExtensible
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final AccessibleObject
private CommandLine.Model.IGetter
private final CommandLine.Model.InitialValueState
(package private) final String
private CommandLine.Model.IScope
private CommandLine.Model.ISetter
(package private) final CommandLine.Model.ITypeInfo
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
TypedMember
(Field field) private
TypedMember
(Field field, CommandLine.Model.IScope scope) private
TypedMember
(Method method, CommandLine.Model.IScope scope, CommandLine.Model.CommandSpec spec) (package private)
TypedMember
(CommandLine.Model.MethodParam param, CommandLine.Model.IScope scope) -
Method Summary
Modifier and TypeMethodDescription(package private) static String
abbreviate
(String text) private Class<?>[]
(package private) static CommandLine.Model.TypedMember
createIfAnnotated
(Field field, CommandLine.Model.IScope scope) (package private) static CommandLine.Model.TypedMember
createIfAnnotated
(Method method, CommandLine.Model.IScope scope, CommandLine.Model.CommandSpec spec) private CommandLine.Model.ITypeInfo
createTypeInfo
(Class<?> type, Type genericType) private static String
decapitalize
(String name) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) Class<?>[]
<T> T
getExtension
(Class<T> cls) Returns an instance of the specified class, ornull
if this extension is not supported.int
getName()
getter()
Class
<?> getType()
boolean
private void
(package private) static boolean
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
boolean
boolean
boolean
boolean
isMixin()
boolean
boolean
isOption()
boolean
boolean
boolean
isSpec()
boolean
(package private) static String
propertyName
(String methodName) scope()
setter()
toString()
-
Field Details
-
accessible
-
name
-
typeInfo
-
initialValueState
-
scope
-
getter
-
setter
-
-
Constructor Details
-
TypedMember
TypedMember(Field field) -
TypedMember
-
TypedMember
private TypedMember(Method method, CommandLine.Model.IScope scope, CommandLine.Model.CommandSpec spec) -
TypedMember
TypedMember(CommandLine.Model.MethodParam param, CommandLine.Model.IScope scope)
-
-
Method Details
-
createIfAnnotated
-
isAnnotated
-
createIfAnnotated
static CommandLine.Model.TypedMember createIfAnnotated(Method method, CommandLine.Model.IScope scope, CommandLine.Model.CommandSpec spec) -
createTypeInfo
-
initializeInitialValue
-
userObject
- Specified by:
userObject
in interfaceCommandLine.Model.IAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceCommandLine.Model.IAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceCommandLine.Model.IAnnotatedElement
-
getName
- Specified by:
getName
in interfaceCommandLine.Model.IAnnotatedElement
-
isArgSpec
public boolean isArgSpec()- Specified by:
isArgSpec
in interfaceCommandLine.Model.IAnnotatedElement
-
isOption
public boolean isOption()- Specified by:
isOption
in interfaceCommandLine.Model.IAnnotatedElement
-
isParameter
public boolean isParameter()- Specified by:
isParameter
in interfaceCommandLine.Model.IAnnotatedElement
-
isArgGroup
public boolean isArgGroup()- Specified by:
isArgGroup
in interfaceCommandLine.Model.IAnnotatedElement
-
isMixin
public boolean isMixin()- Specified by:
isMixin
in interfaceCommandLine.Model.IAnnotatedElement
-
isUnmatched
public boolean isUnmatched()- Specified by:
isUnmatched
in interfaceCommandLine.Model.IAnnotatedElement
-
isSpec
public boolean isSpec()- Specified by:
isSpec
in interfaceCommandLine.Model.IAnnotatedElement
-
isParentCommand
public boolean isParentCommand()- Specified by:
isParentCommand
in interfaceCommandLine.Model.IAnnotatedElement
-
isMultiValue
public boolean isMultiValue()- Specified by:
isMultiValue
in interfaceCommandLine.Model.IAnnotatedElement
-
isInteractive
public boolean isInteractive()- Specified by:
isInteractive
in interfaceCommandLine.Model.IAnnotatedElement
-
scope
- Specified by:
scope
in interfaceCommandLine.Model.IAnnotatedElement
-
getter
- Specified by:
getter
in interfaceCommandLine.Model.IAnnotatedElement
-
setter
- Specified by:
setter
in interfaceCommandLine.Model.IAnnotatedElement
-
getTypeInfo
- Specified by:
getTypeInfo
in interfaceCommandLine.Model.IAnnotatedElement
-
getType
-
getAuxiliaryTypes
-
annotationTypes
-
toString
-
getToString
- Specified by:
getToString
in interfaceCommandLine.Model.IAnnotatedElement
-
toGenericString
-
hasInitialValue
public boolean hasInitialValue()- Specified by:
hasInitialValue
in interfaceCommandLine.Model.IAnnotatedElement
-
isMethodParameter
public boolean isMethodParameter()- Specified by:
isMethodParameter
in interfaceCommandLine.Model.IAnnotatedElement
-
getMethodParamPosition
public int getMethodParamPosition()- Specified by:
getMethodParamPosition
in interfaceCommandLine.Model.IAnnotatedElement
-
getMixinName
- Specified by:
getMixinName
in interfaceCommandLine.Model.IAnnotatedElement
-
propertyName
-
decapitalize
-
abbreviate
-
getExtension
Description copied from interface:CommandLine.Model.IExtensible
Returns an instance of the specified class, ornull
if this extension is not supported.- Specified by:
getExtension
in interfaceCommandLine.Model.IExtensible
- Parameters:
cls
- class of the desired extension
-