Package io.micronaut.python.processing.util


@NullUnmarked package io.micronaut.python.processing.util
Utility types for Python processing.
  • Class
    Description
    Name and type helpers shared by the annotation metadata builder and the stub generators.
    Narrows a literal from the Python processor (a String, Boolean, Integer, Long or Double) to the declared scalar annotation member type, the way the Java annotation processor would deliver it.
    Generates Object method implementations (toString, equals, hashCode) for generated POJOs that mirror Python introspected beans.
    Answers, for a Java type seen by the Python processor, whether it is an annotation type and whether that annotation may be placed on other annotation types.
    A type nested in an annotation, the way the generated decorator exposes it as a member.
    Renders a Python docstring as element documentation.
    Facts about Java types that the Python transformer needs when it rewrites a class whose base is a Java type.
    Python reserved words and the trailing-underscore alias convention (class_ for class) used wherever a Java name collides with one.
    Resolves the Python types the processor records (TypeRef) to Java class elements: built-in names, collections and their type arguments, Annotated type-use decorators, nullable unions and generic placeholders bound in the enclosing class or function.
    Converts the literal values the Python processor produces (decorator arguments, attribute initialisers, parameter defaults) into plain Java values at the language boundary, so the rest of the compiler never handles a polyglot Value.