spring-framework / org.springframework.core.type.classreading / AnnotationMetadataReadingVisitor

AnnotationMetadataReadingVisitor

open class AnnotationMetadataReadingVisitor : ClassMetadataReadingVisitor, AnnotationMetadata

ASM class visitor which looks for the class name and implemented types as well as for the annotations defined on the class, exposing them through the org.springframework.core.type.AnnotationMetadata interface.

Author
Juergen Hoeller

Author
Mark Fisher

Author
Costin Leau

Author
Phillip Webb

Author
Sam Brannen

Since
2.5

Constructors

<init>

AnnotationMetadataReadingVisitor(classLoader: ClassLoader)

Functions

getAllAnnotationAttributes

open fun getAllAnnotationAttributes(annotationName: String): MultiValueMap<String, Any>
open fun getAllAnnotationAttributes(annotationName: String, classValuesAsString: Boolean): MultiValueMap<String, Any>

getAnnotatedMethods

open fun getAnnotatedMethods(annotationName: String): MutableSet<MethodMetadata>

getAnnotationAttributes

open fun getAnnotationAttributes(annotationName: String): AnnotationAttributes
open fun getAnnotationAttributes(annotationName: String, classValuesAsString: Boolean): AnnotationAttributes

getAnnotationTypes

open fun getAnnotationTypes(): MutableSet<String>

getMetaAnnotationTypes

open fun getMetaAnnotationTypes(annotationName: String): MutableSet<String>

hasAnnotatedMethods

open fun hasAnnotatedMethods(annotationName: String): Boolean

hasAnnotation

open fun hasAnnotation(annotationName: String): Boolean

hasMetaAnnotation

open fun hasMetaAnnotation(metaAnnotationType: String): Boolean

isAnnotated

open fun isAnnotated(annotationName: String): Boolean

visitAnnotation

open fun visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor

visitMethod

open fun visitMethod(access: Int, name: String, desc: String, signature: String, exceptions: Array<String>): MethodVisitor