Record Class ScalaAnnotationData
java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ScalaAnnotationData
- Record Components:
name- The annotation type namevalues- The annotation member valuesannotationType- The annotation type metadata
public record ScalaAnnotationData(String name, Map<CharSequence, Object> values, @Nullable ScalaAnnotationTypeData annotationType)
extends Record
A Scala annotation observed by the compiler plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionScalaAnnotationData(String name, Map<CharSequence, Object> values) ScalaAnnotationData(String name, Map<CharSequence, Object> values, @Nullable ScalaAnnotationTypeData annotationType) Creates an instance of aScalaAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ScalaAnnotationTypeDataReturns the value of theannotationTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
ScalaAnnotationData
public ScalaAnnotationData(String name, Map<CharSequence, Object> values, @Nullable ScalaAnnotationTypeData annotationType) Creates an instance of aScalaAnnotationDatarecord class.- Parameters:
name- the value for thenamerecord componentvalues- the value for thevaluesrecord componentannotationType- the value for theannotationTyperecord component
-
ScalaAnnotationData
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
-
values
-
annotationType
Returns the value of theannotationTyperecord component.- Returns:
- the value of the
annotationTyperecord component
-