Record Class ScalaPropertyData

java.lang.Object
java.lang.Record
io.micronaut.scala.processing.visitor.ScalaPropertyData
Record Components:
name - The property name
type - The property type
readMethod - The read method
writeMethod - The write method
field - The backing field
annotations - The annotations
modifiers - The modifiers
nativeType - The native Scala compiler object
All Implemented Interfaces:
ScalaAnnotatedElementData

public record ScalaPropertyData(String name, ScalaTypeData type, ScalaMethodData readMethod, ScalaMethodData writeMethod, ScalaFieldData field, List<ScalaAnnotationData> annotations, Set<io.micronaut.inject.ast.ElementModifier> modifiers, Object nativeType) extends Record implements ScalaAnnotatedElementData
A Scala property backed by an accessor method and, optionally, a setter and field.
  • Constructor Details

  • 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.
      Specified by:
      name in interface ScalaAnnotatedElementData
      Returns:
      the value of the name record component
    • type

      public ScalaTypeData type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • readMethod

      public ScalaMethodData readMethod()
      Returns the value of the readMethod record component.
      Returns:
      the value of the readMethod record component
    • writeMethod

      public ScalaMethodData writeMethod()
      Returns the value of the writeMethod record component.
      Returns:
      the value of the writeMethod record component
    • field

      public ScalaFieldData field()
      Returns the value of the field record component.
      Returns:
      the value of the field record component
    • annotations

      public List<ScalaAnnotationData> annotations()
      Returns the value of the annotations record component.
      Specified by:
      annotations in interface ScalaAnnotatedElementData
      Returns:
      the value of the annotations record component
    • modifiers

      public Set<io.micronaut.inject.ast.ElementModifier> modifiers()
      Returns the value of the modifiers record component.
      Returns:
      the value of the modifiers record component
    • nativeType

      public Object nativeType()
      Returns the value of the nativeType record component.
      Specified by:
      nativeType in interface ScalaAnnotatedElementData
      Returns:
      the value of the nativeType record component