Record Class DecoratorDef
java.lang.Object
java.lang.Record
io.micronaut.python.processing.visitor.DecoratorDef
- Record Components:
name- The decorator nameannotationName- The mapped Micronaut annotation namerepeatedName- The repeatable annotation container namemembers- The decorator member valuesstereotypes- Stereotype decorators applied to this decoratormemberDecorators- Decorators applied to annotation membersmemberTypes- 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 Summary
ConstructorsConstructorDescriptionDecoratorDef(String name, String annotationName) Simplified constructor with just the name.DecoratorDef(String name, String annotationName, @Nullable String repeatedName, @Nullable Map<String, org.graalvm.polyglot.Value> members, @Nullable List<DecoratorDef> stereotypes) Constructor without member decorators.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) Constructor without member types.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) Creates an instance of aDecoratorDefrecord class.DecoratorDef(String name, String annotationName, Map<String, org.graalvm.polyglot.Value> members) Simplified constructor with just the name and members. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationNamerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of thememberDecoratorsrecord component.members()Returns the value of themembersrecord component.Returns the value of thememberTypesrecord component.name()Returns the value of thenamerecord component.Returns the value of therepeatedNamerecord component.Returns the value of thestereotypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DecoratorDef
-
DecoratorDef
-
DecoratorDef
public DecoratorDef(String name, String annotationName, @Nullable @Nullable String repeatedName, @Nullable @Nullable Map<String, org.graalvm.polyglot.Value> members, @Nullable @Nullable List<DecoratorDef> stereotypes) Constructor without member decorators.- Parameters:
name- The decorator nameannotationName- The micronaut annotation namerepeatedName- The repeatable annotation container namemembers- The membersstereotypes- The stereotypes
-
DecoratorDef
public DecoratorDef(String name, String annotationName, @Nullable @Nullable String repeatedName, @Nullable @Nullable Map<String, org.graalvm.polyglot.Value> members, @Nullable @Nullable List<DecoratorDef> stereotypes, @Nullable @Nullable Map<String, List<DecoratorDef>> memberDecorators) Constructor without member types.- Parameters:
name- The decorator nameannotationName- The micronaut annotation namerepeatedName- The repeatable annotation container namemembers- The membersstereotypes- The stereotypesmemberDecorators- Decorators applied to annotation members
-
DecoratorDef
public DecoratorDef(String name, String annotationName, @Nullable @Nullable String repeatedName, @Nullable @Nullable Map<String, org.graalvm.polyglot.Value> members, @Nullable @Nullable List<DecoratorDef> stereotypes, @Nullable @Nullable Map<String, List<DecoratorDef>> memberDecorators, @Nullable @Nullable Map<String, TypeRef> memberTypes) Creates an instance of aDecoratorDefrecord class.- Parameters:
name- the value for thenamerecord componentannotationName- the value for theannotationNamerecord componentrepeatedName- the value for therepeatedNamerecord componentmembers- the value for themembersrecord componentstereotypes- the value for thestereotypesrecord componentmemberDecorators- the value for thememberDecoratorsrecord componentmemberTypes- the value for thememberTypesrecord component
-
-
Method Details
-
equals
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 withObjects::equals(Object,Object). -
hashCode
-
toString
-
name
-
annotationName
Returns the value of theannotationNamerecord component.- Returns:
- the value of the
annotationNamerecord component
-
repeatedName
Returns the value of therepeatedNamerecord component.- Returns:
- the value of the
repeatedNamerecord component
-
members
-
stereotypes
Returns the value of thestereotypesrecord component.- Returns:
- the value of the
stereotypesrecord component
-
memberDecorators
Returns the value of thememberDecoratorsrecord component.- Returns:
- the value of the
memberDecoratorsrecord component
-
memberTypes
Returns the value of thememberTypesrecord component.- Returns:
- the value of the
memberTypesrecord component
-