141 lines
9.5 KiB
Java
141 lines
9.5 KiB
Java
package kotlin.reflect.jvm.internal;
|
|
|
|
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
|
import java.lang.reflect.Member;
|
|
import kotlin.Lazy;
|
|
import kotlin.LazyKt;
|
|
import kotlin.LazyThreadSafetyMode;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.reflect.KProperty1;
|
|
import kotlin.reflect.jvm.internal.KProperty1Impl;
|
|
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
|
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
|
|
|
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\b\u0010\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u001dB)\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\b\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b¢\u0006\u0002\u0010\fB\u0017\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fJ\u0015\u0010\u0018\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001aJ\u0017\u0010\u001b\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u0019\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001aJ\u0016\u0010\u001c\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u001aR \u0010\u0010\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00120\u0011X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0013\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00140\u0011X\u0082\u0004¢\u0006\u0002\n\u0000R \u0010\u0015\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006\u001e"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty1Impl;", "T", "V", "Lkotlin/reflect/KProperty1;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_getter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "delegateSource", "Ljava/lang/reflect/Member;", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "get", "receiver", "(Ljava/lang/Object;)Ljava/lang/Object;", "getDelegate", "invoke", "Getter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public class KProperty1Impl<T, V> extends KPropertyImpl<V> implements KProperty1<T, V> {
|
|
private final Lazy<Getter<T, V>> _getter;
|
|
private final Lazy<Member> delegateSource;
|
|
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0006\b\u0003\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004B\u0019\u0012\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006¢\u0006\u0002\u0010\u0007J\u0016\u0010\n\u001a\u00028\u00032\u0006\u0010\u000b\u001a\u00028\u0002H\u0096\u0002¢\u0006\u0002\u0010\fR \u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "T", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty1$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty1Impl;", "(Lkotlin/reflect/jvm/internal/KProperty1Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty1Impl;", "invoke", "receiver", "(Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public static final class Getter<T, V> extends KPropertyImpl.Getter<V> implements KProperty1.Getter<T, V> {
|
|
private final KProperty1Impl<T, V> property;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public Getter(KProperty1Impl<T, ? extends V> property) {
|
|
Intrinsics.checkNotNullParameter(property, "property");
|
|
this.property = property;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public V invoke(T receiver) {
|
|
return getProperty().get(receiver);
|
|
}
|
|
|
|
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
|
public KProperty1Impl<T, V> getProperty() {
|
|
return this.property;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public KProperty1Impl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
|
|
super(container, name, signature, obj);
|
|
Intrinsics.checkNotNullParameter(container, "container");
|
|
Intrinsics.checkNotNullParameter(name, "name");
|
|
Intrinsics.checkNotNullParameter(signature, "signature");
|
|
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
|
|
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<T, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$_getter$1
|
|
final /* synthetic */ KProperty1Impl<T, V> this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(0);
|
|
this.this$0 = this;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final KProperty1Impl.Getter<T, V> invoke() {
|
|
return new KProperty1Impl.Getter<>(this.this$0);
|
|
}
|
|
});
|
|
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$delegateSource$1
|
|
final /* synthetic */ KProperty1Impl<T, V> this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(0);
|
|
this.this$0 = this;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final Member invoke() {
|
|
return this.this$0.computeDelegateSource();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // kotlin.reflect.KProperty1
|
|
public V get(T receiver) {
|
|
return getGetter().call(receiver);
|
|
}
|
|
|
|
@Override // kotlin.reflect.KProperty1
|
|
public Object getDelegate(T receiver) {
|
|
return getDelegateImpl(this.delegateSource.getValue(), receiver, null);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public V invoke(T receiver) {
|
|
return get(receiver);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public KProperty1Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
|
|
super(container, descriptor);
|
|
Intrinsics.checkNotNullParameter(container, "container");
|
|
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
|
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
|
|
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<T, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$_getter$1
|
|
final /* synthetic */ KProperty1Impl<T, V> this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(0);
|
|
this.this$0 = this;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final KProperty1Impl.Getter<T, V> invoke() {
|
|
return new KProperty1Impl.Getter<>(this.this$0);
|
|
}
|
|
});
|
|
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$delegateSource$1
|
|
final /* synthetic */ KProperty1Impl<T, V> this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(0);
|
|
this.this$0 = this;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final Member invoke() {
|
|
return this.this$0.computeDelegateSource();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
|
|
public Getter<T, V> getGetter() {
|
|
return this._getter.getValue();
|
|
}
|
|
}
|