Class KotlinDataClassComponent

java.lang.Object
tech.ydb.yoj.databind.schema.reflect.ReflectFieldBase
tech.ydb.yoj.databind.schema.reflect.KotlinDataClassComponent
All Implemented Interfaces:
ReflectField

public final class KotlinDataClassComponent extends ReflectFieldBase
Represents a Kotlin data class component for the purposes of YOJ data-binding.
  • Constructor Details

    • KotlinDataClassComponent

      public KotlinDataClassComponent(Reflector reflector, String name, kotlin.reflect.KProperty1<?,?> property)
  • Method Details

    • getValue

      @Nullable public Object getValue(Object containingObject)
      Parameters:
      containingObject - object which contains this field
      Returns:
      value of this field for containingObject; might be null.
      This method will throw when invoked on a containingObject that is not instanceof getType().
    • toString

      public String toString()
      Overrides:
      toString in class Object