Record Class ScalaAnnotationMemberData
java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ScalaAnnotationMemberData
- Record Components:
name- The member nameannotations- The annotations declared on the memberdefaultValue- The member default value, if availabletypeName- The member type namearray- Whether the member type is an arrayclassType- Whether the member type is a class literalenumType- Whether the member type is an enumannotationType- Whether the member type is an annotationnativeType- The native Scala compiler object
public record ScalaAnnotationMemberData(String name, List<ScalaAnnotationData> annotations, @Nullable Object defaultValue, String typeName, boolean array, boolean classType, boolean enumType, boolean annotationType, Object nativeType)
extends Record
Native Scala compiler data for an annotation member.
-
Constructor Summary
ConstructorsConstructorDescriptionScalaAnnotationMemberData(String name, List<ScalaAnnotationData> annotations, @Nullable Object defaultValue, String typeName, boolean array, boolean classType, boolean enumType, boolean annotationType, Object nativeType) Creates an instance of aScalaAnnotationMemberDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.booleanReturns the value of theannotationTyperecord component.booleanarray()Returns the value of thearrayrecord component.booleanReturns the value of theclassTyperecord component.@Nullable ObjectReturns the value of thedefaultValuerecord component.booleanenumType()Returns the value of theenumTyperecord component.booleanA declaration is itself: two are equal only when they are the same object.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thenativeTyperecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
ScalaAnnotationMemberData
public ScalaAnnotationMemberData(String name, List<ScalaAnnotationData> annotations, @Nullable Object defaultValue, String typeName, boolean array, boolean classType, boolean enumType, boolean annotationType, Object nativeType) Creates an instance of aScalaAnnotationMemberDatarecord class.- Parameters:
name- the value for thenamerecord componentannotations- the value for theannotationsrecord componentdefaultValue- the value for thedefaultValuerecord componenttypeName- the value for thetypeNamerecord componentarray- the value for thearrayrecord componentclassType- the value for theclassTyperecord componentenumType- the value for theenumTyperecord componentannotationType- the value for theannotationTyperecord componentnativeType- the value for thenativeTyperecord component
-
-
Method Details
-
equals
A declaration is itself: two are equal only when they are the same object. Record equality would compare every member, type and annotation beneath, and core keeps these as keys of a hash map -- so every lookup was hashing the whole model of the class. -
hashCode
-
toString
-
name
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
typeName
-
array
-
classType
-
enumType
-
annotationType
public boolean annotationType()Returns the value of theannotationTyperecord component.- Returns:
- the value of the
annotationTyperecord component
-
nativeType
Returns the value of thenativeTyperecord component.- Returns:
- the value of the
nativeTyperecord component
-