Record Class DecoratorDef

java.lang.Object
java.lang.Record
io.micronaut.python.processing.visitor.DecoratorDef
Record Components:
name - The decorator name
annotationName - The mapped Micronaut annotation name
repeatedName - The repeatable annotation container name
members - The decorator member values
stereotypes - Stereotype decorators applied to this decorator
memberDecorators - Decorators applied to annotation members
memberTypes - Resolved annotation member types

public record DecoratorDef(String name, String annotationName, @Nullable String repeatedName, @Nullable Map<String, org.graalvm.polyglot.Value> members, @Nullable List<DecoratorDef> stereotypes, @Nullable Map<String, List<DecoratorDef>> memberDecorators, @Nullable Map<String,TypeRef> memberTypes) extends Record
Represents a parsed Python decorator and its resolved metadata.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • annotationName

      public String annotationName()
      Returns the value of the annotationName record component.
      Returns:
      the value of the annotationName record component
    • repeatedName

      @Nullable public @Nullable String repeatedName()
      Returns the value of the repeatedName record component.
      Returns:
      the value of the repeatedName record component
    • members

      @Nullable public @Nullable Map<String, org.graalvm.polyglot.Value> members()
      Returns the value of the members record component.
      Returns:
      the value of the members record component
    • stereotypes

      @Nullable public @Nullable List<DecoratorDef> stereotypes()
      Returns the value of the stereotypes record component.
      Returns:
      the value of the stereotypes record component
    • memberDecorators

      @Nullable public @Nullable Map<String, List<DecoratorDef>> memberDecorators()
      Returns the value of the memberDecorators record component.
      Returns:
      the value of the memberDecorators record component
    • memberTypes

      @Nullable public @Nullable Map<String,TypeRef> memberTypes()
      Returns the value of the memberTypes record component.
      Returns:
      the value of the memberTypes record component