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 AccessibleObjectprivate CommandLine.Model.IGetterprivate final CommandLine.Model.InitialValueState(package private) final Stringprivate CommandLine.Model.IScopeprivate CommandLine.Model.ISetter(package private) final CommandLine.Model.ITypeInfo -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)TypedMember(Field field) privateTypedMember(Field field, CommandLine.Model.IScope scope) privateTypedMember(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 Stringabbreviate(String text) private Class<?>[](package private) static CommandLine.Model.TypedMembercreateIfAnnotated(Field field, CommandLine.Model.IScope scope) (package private) static CommandLine.Model.TypedMembercreateIfAnnotated(Method method, CommandLine.Model.IScope scope, CommandLine.Model.CommandSpec spec) private CommandLine.Model.ITypeInfocreateTypeInfo(Class<?> type, Type genericType) private static Stringdecapitalize(String name) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Class<?>[]<T> TgetExtension(Class<T> cls) Returns an instance of the specified class, ornullif this extension is not supported.intgetName()getter()Class<?> getType()booleanprivate void(package private) static booleanbooleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanbooleanbooleanbooleanbooleanisMixin()booleanbooleanisOption()booleanbooleanbooleanisSpec()boolean(package private) static StringpropertyName(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:
userObjectin interfaceCommandLine.Model.IAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceCommandLine.Model.IAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceCommandLine.Model.IAnnotatedElement
-
getName
- Specified by:
getNamein interfaceCommandLine.Model.IAnnotatedElement
-
isArgSpec
public boolean isArgSpec()- Specified by:
isArgSpecin interfaceCommandLine.Model.IAnnotatedElement
-
isOption
public boolean isOption()- Specified by:
isOptionin interfaceCommandLine.Model.IAnnotatedElement
-
isParameter
public boolean isParameter()- Specified by:
isParameterin interfaceCommandLine.Model.IAnnotatedElement
-
isArgGroup
public boolean isArgGroup()- Specified by:
isArgGroupin interfaceCommandLine.Model.IAnnotatedElement
-
isMixin
public boolean isMixin()- Specified by:
isMixinin interfaceCommandLine.Model.IAnnotatedElement
-
isUnmatched
public boolean isUnmatched()- Specified by:
isUnmatchedin interfaceCommandLine.Model.IAnnotatedElement
-
isSpec
public boolean isSpec()- Specified by:
isSpecin interfaceCommandLine.Model.IAnnotatedElement
-
isParentCommand
public boolean isParentCommand()- Specified by:
isParentCommandin interfaceCommandLine.Model.IAnnotatedElement
-
isMultiValue
public boolean isMultiValue()- Specified by:
isMultiValuein interfaceCommandLine.Model.IAnnotatedElement
-
isInteractive
public boolean isInteractive()- Specified by:
isInteractivein interfaceCommandLine.Model.IAnnotatedElement
-
scope
- Specified by:
scopein interfaceCommandLine.Model.IAnnotatedElement
-
getter
- Specified by:
getterin interfaceCommandLine.Model.IAnnotatedElement
-
setter
- Specified by:
setterin interfaceCommandLine.Model.IAnnotatedElement
-
getTypeInfo
- Specified by:
getTypeInfoin interfaceCommandLine.Model.IAnnotatedElement
-
getType
-
getAuxiliaryTypes
-
annotationTypes
-
toString
-
getToString
- Specified by:
getToStringin interfaceCommandLine.Model.IAnnotatedElement
-
toGenericString
-
hasInitialValue
public boolean hasInitialValue()- Specified by:
hasInitialValuein interfaceCommandLine.Model.IAnnotatedElement
-
isMethodParameter
public boolean isMethodParameter()- Specified by:
isMethodParameterin interfaceCommandLine.Model.IAnnotatedElement
-
getMethodParamPosition
public int getMethodParamPosition()- Specified by:
getMethodParamPositionin interfaceCommandLine.Model.IAnnotatedElement
-
getMixinName
- Specified by:
getMixinNamein interfaceCommandLine.Model.IAnnotatedElement
-
propertyName
-
decapitalize
-
abbreviate
-
getExtension
Description copied from interface:CommandLine.Model.IExtensibleReturns an instance of the specified class, ornullif this extension is not supported.- Specified by:
getExtensionin interfaceCommandLine.Model.IExtensible- Parameters:
cls- class of the desired extension
-