Class PythonPropertyElement

java.lang.Object
io.micronaut.inject.ast.annotation.AbstractAnnotationElement
io.micronaut.python.processing.visitor.PythonPropertyElement
All Implemented Interfaces:
ElementProvider, AnnotatedElement, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, Described, Named, MutableAnnotationMetadataDelegate<Element>, Element, MemberElement, PropertyElement, TypedElement

public final class PythonPropertyElement extends AbstractAnnotationElement implements PropertyElement, ElementProvider
A property element representing a Python property (either a @property decorated method or a regular attribute).

This class implements the PropertyElement interface to provide property support for Python classes. Properties can be created from:

  • @property decorated methods with optional @property.setter decorators
  • Regular Python attributes (fields)
Since:
5.2.0
Author:
Micronaut Team