Record Class ScalaAnnotationMemberData

java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ScalaAnnotationMemberData
Record Components:
name - The member name
annotations - The annotations declared on the member
defaultValue - The member default value, if available
typeName - The member type name
array - Whether the member type is an array
classType - Whether the member type is a class literal
enumType - Whether the member type is an enum
annotationType - Whether the member type is an annotation
nativeType - 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 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 a ScalaAnnotationMemberData record class.
      Parameters:
      name - the value for the name record component
      annotations - the value for the annotations record component
      defaultValue - the value for the defaultValue record component
      typeName - the value for the typeName record component
      array - the value for the array record component
      classType - the value for the classType record component
      enumType - the value for the enumType record component
      annotationType - the value for the annotationType record component
      nativeType - the value for the nativeType record component
  • Method Details

    • equals

      public boolean equals(Object other)
      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.
      Specified by:
      equals in class Record
    • 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
    • annotations

      public List<ScalaAnnotationData> annotations()
      Returns the value of the annotations record component.
      Returns:
      the value of the annotations record component
    • defaultValue

      public @Nullable Object defaultValue()
      Returns the value of the defaultValue record component.
      Returns:
      the value of the defaultValue record component
    • typeName

      public String typeName()
      Returns the value of the typeName record component.
      Returns:
      the value of the typeName record component
    • array

      public boolean array()
      Returns the value of the array record component.
      Returns:
      the value of the array record component
    • classType

      public boolean classType()
      Returns the value of the classType record component.
      Returns:
      the value of the classType record component
    • enumType

      public boolean enumType()
      Returns the value of the enumType record component.
      Returns:
      the value of the enumType record component
    • annotationType

      public boolean annotationType()
      Returns the value of the annotationType record component.
      Returns:
      the value of the annotationType record component
    • nativeType

      public Object nativeType()
      Returns the value of the nativeType record component.
      Returns:
      the value of the nativeType record component