Class AnnotationMemberReflection
java.lang.Object
io.micronaut.python.processing.annotation.AnnotationMemberReflection
The one place the Python processor reads a loaded annotation class: the bare parser (no javac)
resolves Java annotation types as loaded classes, so their members can only be read reflectively.
Lives in this package because it is the package allowed to read classes (see
config/checkstyle/reflection-import-control.xml).- Since:
- 5.2.0
-
Method Summary
Modifier and TypeMethodDescriptionmemberReturnTypeNames(Class<?> annotationType) The declared return type names of an annotation class's members, asClass.getName()spells them (example.Nested,[Lexample.Nested;).valueMemberTypeName(Class<?> annotationType) The return type name of thevaluemember of an annotation class, asClass.getTypeName()spells it (java.lang.Class,java.lang.String[]).
-
Method Details
-
memberReturnTypeNames
The declared return type names of an annotation class's members, asClass.getName()spells them (example.Nested,[Lexample.Nested;).- Parameters:
annotationType- The loaded annotation type- Returns:
- The member return type names
-
valueMemberTypeName
The return type name of thevaluemember of an annotation class, asClass.getTypeName()spells it (java.lang.Class,java.lang.String[]).- Parameters:
annotationType- The loaded annotation type- Returns:
- The type name, or null when the annotation has no
valuemember
-