类 StandardMethodMetadata
java.lang.Object
cn.taketoday.core.type.StandardMethodMetadata
- 所有已实现的接口:
AnnotatedTypeMetadata,MethodMetadata
MethodMetadata implementation that uses standard reflection
to introspect a given Method.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Mark Pollack, Chris Beams, Phillip Webb, Sam Brannen
-
字段概要
字段 -
构造器概要
构造器构造器说明StandardMethodMetadata(Method introspectedMethod) Create a new StandardMethodMetadata wrapper for the given Method.StandardMethodMetadata(Method introspectedMethod, boolean nestedAnnotationsAsMap) Create a new StandardMethodMetadata wrapper for the given Method, providing the option to return any nested annotations or annotation arrays in the form ofAnnotationAttributesinstead of actualAnnotationinstances. -
方法概要
修饰符和类型方法说明booleangetAllAnnotationAttributes(String annotationName, boolean classValuesAsString) Retrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).getAnnotationAttributes(String annotationName, boolean classValuesAsString) Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).Get annotation details based on the direct annotations and meta-annotations of the underlying element.Type[]Get the fully-qualified name of the class that declares the underlying method.final MethodReturn the underlying Method.Get the name of the underlying method.intClass<?>[]Get the fully-qualified name of the underlying method's declared return type.inthashCode()booleanDetermine whether the underlying method is effectively abstract: i.e. marked as abstract in a class or declared as a regular, non-default method in an interface.booleanisFinal()Determine whether the underlying method is marked as 'final'.booleanDetermine whether the underlying method is overridable, i.e. not marked as static, final, or private.private booleanbooleanisStatic()Determine whether the underlying method is declared as 'static'.toString()从接口继承的方法 cn.taketoday.core.type.AnnotatedTypeMetadata
getAllAnnotationAttributes, getAllAnnotationAttributes, getAllAnnotationAttributes, getAnnotation, getAnnotation, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypes, getMergedRepeatableAnnotation, getMergedRepeatableAnnotation, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMetaAnnotationTypes, getMetaAnnotationTypes, hasAnnotation, hasAnnotation, hasMetaAnnotation, hasMetaAnnotation, isAnnotated, isAnnotated
-
字段详细资料
-
introspectedMethod
-
nestedAnnotationsAsMap
private final boolean nestedAnnotationsAsMap -
mergedAnnotations
-
-
构造器详细资料
-
StandardMethodMetadata
Create a new StandardMethodMetadata wrapper for the given Method.- 参数:
introspectedMethod- the Method to introspect
-
StandardMethodMetadata
Create a new StandardMethodMetadata wrapper for the given Method, providing the option to return any nested annotations or annotation arrays in the form ofAnnotationAttributesinstead of actualAnnotationinstances.- 参数:
introspectedMethod- the Method to introspectnestedAnnotationsAsMap- return nested annotations and annotation arrays asAnnotationAttributesfor compatibility with ASM-basedAnnotationMetadataimplementations
-
-
方法详细资料
-
getAnnotations
从接口复制的说明:AnnotatedTypeMetadataGet annotation details based on the direct annotations and meta-annotations of the underlying element.- 指定者:
getAnnotations在接口中AnnotatedTypeMetadata- 返回:
- merged annotations based on the direct annotations and meta-annotations
-
getIntrospectedMethod
Return the underlying Method. -
getMethodName
从接口复制的说明:MethodMetadataGet the name of the underlying method.- 指定者:
getMethodName在接口中MethodMetadata
-
getDeclaringClassName
从接口复制的说明:MethodMetadataGet the fully-qualified name of the class that declares the underlying method.- 指定者:
getDeclaringClassName在接口中MethodMetadata
-
getReturnTypeName
从接口复制的说明:MethodMetadataGet the fully-qualified name of the underlying method's declared return type.- 指定者:
getReturnTypeName在接口中MethodMetadata
-
isAbstract
public boolean isAbstract()从接口复制的说明:MethodMetadataDetermine whether the underlying method is effectively abstract: i.e. marked as abstract in a class or declared as a regular, non-default method in an interface.- 指定者:
isAbstract在接口中MethodMetadata
-
isStatic
public boolean isStatic()从接口复制的说明:MethodMetadataDetermine whether the underlying method is declared as 'static'.- 指定者:
isStatic在接口中MethodMetadata
-
isFinal
public boolean isFinal()从接口复制的说明:MethodMetadataDetermine whether the underlying method is marked as 'final'.- 指定者:
isFinal在接口中MethodMetadata
-
isOverridable
public boolean isOverridable()从接口复制的说明:MethodMetadataDetermine whether the underlying method is overridable, i.e. not marked as static, final, or private.- 指定者:
isOverridable在接口中MethodMetadata
-
isPrivate
private boolean isPrivate() -
getAnnotationAttributes
@Nullable public Map<String,Object> getAnnotationAttributes(String annotationName, boolean classValuesAsString) 从接口复制的说明:AnnotatedTypeMetadataRetrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).@AliasForsemantics are fully supported, both within a single annotation and within annotation hierarchies.- 指定者:
getAnnotationAttributes在接口中AnnotatedTypeMetadata- 参数:
annotationName- the fully-qualified class name of the annotation type to look forclassValuesAsString- whether to convert class references to String class names for exposure as values in the returned Map, instead of Class references which might potentially have to be loaded first- 返回:
- a
Mapof attributes, with each annotation attribute name as map key (e.g. "location") and the attribute's value as map value; ornullif no matching annotation is found
-
getAllAnnotationAttributes
@Nullable public MultiValueMap<String,Object> getAllAnnotationAttributes(String annotationName, boolean classValuesAsString) 从接口复制的说明:AnnotatedTypeMetadataRetrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation). Note that this variant does not take attribute overrides into account.- 指定者:
getAllAnnotationAttributes在接口中AnnotatedTypeMetadata- 参数:
annotationName- the fully qualified class name of the annotation type to look forclassValuesAsString- whether to convert class references to String- 返回:
- a MultiMap of attributes, with the attribute name as key (e.g. "value")
and a list of the defined attribute values as Map value. This return value will
be
nullif no matching annotation is defined. - 另请参阅:
-
equals
-
hashCode
public int hashCode() -
toString
-
getParameterCount
public int getParameterCount()- 指定者:
getParameterCount在接口中MethodMetadata
-
getArgumentTypes
- 指定者:
getArgumentTypes在接口中MethodMetadata
-
getParameterTypes
- 指定者:
getParameterTypes在接口中MethodMetadata
-