Class AnnotationNames

java.lang.Object
io.micronaut.python.processing.util.AnnotationNames

@Internal public final class AnnotationNames extends Object
Name and type helpers shared by the annotation metadata builder and the stub generators.
Since:
5.2.0
  • Method Details

    • rawTypeName

      public static String rawTypeName(String typeName)
      Parameters:
      typeName - A type name that may carry type arguments
      Returns:
      The name without type arguments
    • memberName

      public static String memberName(Object memberName)
      The annotation member a positional decorator argument maps to: the first is value, the others argN.
      Parameters:
      memberName - A member name or a positional index
      Returns:
      The member name
    • isEnumMember

      public static boolean isEnumMember(@Nullable @Nullable ClassElement memberType)
      Parameters:
      memberType - An annotation member type
      Returns:
      Whether the member holds an enum constant