类 SimpleAnnotationMetadata
java.lang.Object
cn.taketoday.core.type.classreading.SimpleAnnotationMetadata
- 所有已实现的接口:
AnnotatedTypeMetadata,AnnotationMetadata,ClassMetadata
AnnotationMetadata created from a
SimpleAnnotationMetadataReadingVisitor.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Sam Brannen
-
字段概要
字段修饰符和类型字段说明private final intprivate final MergedAnnotationsprivate final Stringprivate final Set<MethodMetadata>private final Stringprivate final booleanprivate final String -
构造器概要
构造器构造器说明SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) -
方法概要
修饰符和类型方法说明booleangetAnnotatedMethods(String annotationName) Retrieve the method metadata for all methods that are annotated (or meta-annotated) with the given annotation type.Get annotation details based on the direct annotations and meta-annotations of the underlying element.Get the fully qualified class names of all annotation types that are present on the underlying class.Return the name of the underlying class.Retrieve the method metadata for all user-declared methods on the underlying class, preserving declaration order as far as possible.Return the name of the enclosing class of the underlying class, ornullif the underlying class is a top-level class.String[]Return the names of all interfaces that the underlying class implements, or an empty array if there are none.String[]Return the names of all classes declared as members of the class represented by this ClassMetadata object.intReturn the name of the super class of the underlying class, ornullif there is no super class defined.inthashCode()booleanReturn whether the underlying class is marked as abstract.booleanReturn whether the underlying class represents an annotation.booleanisFinal()Return whether the underlying class is marked as 'final'.booleanDetermine whether the underlying class is independent, i.e. whether it is a top-level class or a nested class (static inner class) that can be constructed independently from an enclosing class.booleanReturn whether the underlying class represents an interface.toString()从接口继承的方法 cn.taketoday.core.type.AnnotatedTypeMetadata
getAllAnnotationAttributes, getAllAnnotationAttributes, getAllAnnotationAttributes, getAllAnnotationAttributes, getAnnotation, getAnnotation, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getMergedRepeatableAnnotation, getMergedRepeatableAnnotation, getMergedRepeatableAnnotationAttributes, getMergedRepeatableAnnotationAttributes, getMetaAnnotationTypes, getMetaAnnotationTypes, hasAnnotation, hasAnnotation, hasMetaAnnotation, hasMetaAnnotation, isAnnotated, isAnnotated从接口继承的方法 cn.taketoday.core.type.AnnotationMetadata
hasAnnotatedMethods从接口继承的方法 cn.taketoday.core.type.ClassMetadata
hasEnclosingClass, hasSuperClass, isConcrete
-
字段详细资料
-
className
-
access
private final int access -
enclosingClassName
-
superClassName
-
independentInnerClass
private final boolean independentInnerClass -
interfaceNames
-
memberClassNames
-
declaredMethods
-
annotations
-
annotationTypes
-
-
构造器详细资料
-
SimpleAnnotationMetadata
SimpleAnnotationMetadata(String className, int access, @Nullable String enclosingClassName, @Nullable String superClassName, boolean independentInnerClass, @Nullable Set<String> interfaceNames, @Nullable Set<String> memberClassNames, @Nullable Set<MethodMetadata> declaredMethods, MergedAnnotations annotations)
-
-
方法详细资料
-
getClassName
从接口复制的说明:ClassMetadataReturn the name of the underlying class.- 指定者:
getClassName在接口中ClassMetadata
-
isInterface
public boolean isInterface()从接口复制的说明:ClassMetadataReturn whether the underlying class represents an interface.- 指定者:
isInterface在接口中ClassMetadata
-
isAnnotation
public boolean isAnnotation()从接口复制的说明:ClassMetadataReturn whether the underlying class represents an annotation.- 指定者:
isAnnotation在接口中ClassMetadata
-
isAbstract
public boolean isAbstract()从接口复制的说明:ClassMetadataReturn whether the underlying class is marked as abstract.- 指定者:
isAbstract在接口中ClassMetadata
-
isFinal
public boolean isFinal()从接口复制的说明:ClassMetadataReturn whether the underlying class is marked as 'final'.- 指定者:
isFinal在接口中ClassMetadata
-
getModifiers
public int getModifiers()- 指定者:
getModifiers在接口中ClassMetadata
-
isIndependent
public boolean isIndependent()从接口复制的说明:ClassMetadataDetermine whether the underlying class is independent, i.e. whether it is a top-level class or a nested class (static inner class) that can be constructed independently from an enclosing class.- 指定者:
isIndependent在接口中ClassMetadata
-
getEnclosingClassName
从接口复制的说明:ClassMetadataReturn the name of the enclosing class of the underlying class, ornullif the underlying class is a top-level class.- 指定者:
getEnclosingClassName在接口中ClassMetadata
-
getSuperClassName
从接口复制的说明:ClassMetadataReturn the name of the super class of the underlying class, ornullif there is no super class defined.- 指定者:
getSuperClassName在接口中ClassMetadata
-
getInterfaceNames
从接口复制的说明:ClassMetadataReturn the names of all interfaces that the underlying class implements, or an empty array if there are none.- 指定者:
getInterfaceNames在接口中ClassMetadata
-
getMemberClassNames
从接口复制的说明:ClassMetadataReturn the names of all classes declared as members of the class represented by this ClassMetadata object. This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces. An empty array is returned if no member classes or interfaces exist.- 指定者:
getMemberClassNames在接口中ClassMetadata
-
getAnnotationTypes
从接口复制的说明:AnnotatedTypeMetadataGet the fully qualified class names of all annotation types that are present on the underlying class.- 指定者:
getAnnotationTypes在接口中AnnotatedTypeMetadata- 返回:
- the annotation type names
-
getAnnotatedMethods
从接口复制的说明:AnnotationMetadataRetrieve the method metadata for all methods that are annotated (or meta-annotated) with the given annotation type.For any returned method,
AnnotatedTypeMetadata.isAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation>)will returntruefor the given annotation type.- 指定者:
getAnnotatedMethods在接口中AnnotationMetadata- 参数:
annotationName- the fully qualified class name of the annotation type to look for- 返回:
- a set of
MethodMetadatafor methods that have a matching annotation. The return value will be an empty set if no methods match the annotation type.
-
getDeclaredMethods
从接口复制的说明:ClassMetadataRetrieve the method metadata for all user-declared methods on the underlying class, preserving declaration order as far as possible.- 指定者:
getDeclaredMethods在接口中ClassMetadata- 返回:
- a set of
MethodMetadata
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-