Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.RequiresOptIn;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.annotation.AnnotationRetention;
|
||||
import kotlin.annotation.AnnotationTarget;
|
||||
import kotlin.annotation.MustBeDocumented;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE})
|
||||
@SinceKotlin(version = "1.5")
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0087\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/reflect/jvm/ExperimentalReflectionOnLambdas;", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@Documented
|
||||
/* loaded from: classes3.dex */
|
||||
public @interface ExperimentalReflectionOnLambdas {
|
||||
}
|
||||
166
apk_decompiled/sources/kotlin/reflect/jvm/KCallablesJvm.java
Normal file
166
apk_decompiled/sources/kotlin/reflect/jvm/KCallablesJvm.java
Normal file
@@ -0,0 +1,166 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import java.lang.reflect.AccessibleObject;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KFunction;
|
||||
import kotlin.reflect.KMutableProperty;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.KCallableImpl;
|
||||
import kotlin.reflect.jvm.internal.UtilKt;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\",\u0010\u0002\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00032\u0006\u0010\u0000\u001a\u00020\u00018F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b\u0002\u0010\u0004\"\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"value", "", "isAccessible", "Lkotlin/reflect/KCallable;", "(Lkotlin/reflect/KCallable;)Z", "setAccessible", "(Lkotlin/reflect/KCallable;Z)V", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KCallablesJvm")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KCallablesJvm {
|
||||
public static final boolean isAccessible(KCallable<?> kCallable) {
|
||||
Caller<?> defaultCaller;
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
if (kCallable instanceof KMutableProperty) {
|
||||
KProperty kProperty = (KProperty) kCallable;
|
||||
Field javaField = ReflectJvmMapping.getJavaField(kProperty);
|
||||
if (javaField != null ? javaField.isAccessible() : true) {
|
||||
Method javaGetter = ReflectJvmMapping.getJavaGetter(kProperty);
|
||||
if (javaGetter != null ? javaGetter.isAccessible() : true) {
|
||||
Method javaSetter = ReflectJvmMapping.getJavaSetter((KMutableProperty) kCallable);
|
||||
if (javaSetter != null ? javaSetter.isAccessible() : true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (kCallable instanceof KProperty) {
|
||||
KProperty kProperty2 = (KProperty) kCallable;
|
||||
Field javaField2 = ReflectJvmMapping.getJavaField(kProperty2);
|
||||
if (javaField2 != null ? javaField2.isAccessible() : true) {
|
||||
Method javaGetter2 = ReflectJvmMapping.getJavaGetter(kProperty2);
|
||||
if (javaGetter2 != null ? javaGetter2.isAccessible() : true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (kCallable instanceof KProperty.Getter) {
|
||||
Field javaField3 = ReflectJvmMapping.getJavaField(((KProperty.Getter) kCallable).getProperty());
|
||||
if (javaField3 != null ? javaField3.isAccessible() : true) {
|
||||
Method javaMethod = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
|
||||
if (javaMethod != null ? javaMethod.isAccessible() : true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (kCallable instanceof KMutableProperty.Setter) {
|
||||
Field javaField4 = ReflectJvmMapping.getJavaField(((KMutableProperty.Setter) kCallable).getProperty());
|
||||
if (javaField4 != null ? javaField4.isAccessible() : true) {
|
||||
Method javaMethod2 = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
|
||||
if (javaMethod2 != null ? javaMethod2.isAccessible() : true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!(kCallable instanceof KFunction)) {
|
||||
throw new UnsupportedOperationException("Unknown callable: " + kCallable + " (" + kCallable.getClass() + ')');
|
||||
}
|
||||
KFunction kFunction = (KFunction) kCallable;
|
||||
Method javaMethod3 = ReflectJvmMapping.getJavaMethod(kFunction);
|
||||
if (javaMethod3 != null ? javaMethod3.isAccessible() : true) {
|
||||
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kCallable);
|
||||
Object mo1386getMember = (asKCallableImpl == null || (defaultCaller = asKCallableImpl.getDefaultCaller()) == null) ? null : defaultCaller.mo1386getMember();
|
||||
AccessibleObject accessibleObject = mo1386getMember instanceof AccessibleObject ? (AccessibleObject) mo1386getMember : null;
|
||||
if (accessibleObject != null ? accessibleObject.isAccessible() : true) {
|
||||
Constructor javaConstructor = ReflectJvmMapping.getJavaConstructor(kFunction);
|
||||
if (javaConstructor != null ? javaConstructor.isAccessible() : true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static final void setAccessible(KCallable<?> kCallable, boolean z3) {
|
||||
Caller<?> defaultCaller;
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
if (kCallable instanceof KMutableProperty) {
|
||||
KProperty kProperty = (KProperty) kCallable;
|
||||
Field javaField = ReflectJvmMapping.getJavaField(kProperty);
|
||||
if (javaField != null) {
|
||||
javaField.setAccessible(z3);
|
||||
}
|
||||
Method javaGetter = ReflectJvmMapping.getJavaGetter(kProperty);
|
||||
if (javaGetter != null) {
|
||||
javaGetter.setAccessible(z3);
|
||||
}
|
||||
Method javaSetter = ReflectJvmMapping.getJavaSetter((KMutableProperty) kCallable);
|
||||
if (javaSetter == null) {
|
||||
return;
|
||||
}
|
||||
javaSetter.setAccessible(z3);
|
||||
return;
|
||||
}
|
||||
if (kCallable instanceof KProperty) {
|
||||
KProperty kProperty2 = (KProperty) kCallable;
|
||||
Field javaField2 = ReflectJvmMapping.getJavaField(kProperty2);
|
||||
if (javaField2 != null) {
|
||||
javaField2.setAccessible(z3);
|
||||
}
|
||||
Method javaGetter2 = ReflectJvmMapping.getJavaGetter(kProperty2);
|
||||
if (javaGetter2 == null) {
|
||||
return;
|
||||
}
|
||||
javaGetter2.setAccessible(z3);
|
||||
return;
|
||||
}
|
||||
if (kCallable instanceof KProperty.Getter) {
|
||||
Field javaField3 = ReflectJvmMapping.getJavaField(((KProperty.Getter) kCallable).getProperty());
|
||||
if (javaField3 != null) {
|
||||
javaField3.setAccessible(z3);
|
||||
}
|
||||
Method javaMethod = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
|
||||
if (javaMethod == null) {
|
||||
return;
|
||||
}
|
||||
javaMethod.setAccessible(z3);
|
||||
return;
|
||||
}
|
||||
if (kCallable instanceof KMutableProperty.Setter) {
|
||||
Field javaField4 = ReflectJvmMapping.getJavaField(((KMutableProperty.Setter) kCallable).getProperty());
|
||||
if (javaField4 != null) {
|
||||
javaField4.setAccessible(z3);
|
||||
}
|
||||
Method javaMethod2 = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
|
||||
if (javaMethod2 == null) {
|
||||
return;
|
||||
}
|
||||
javaMethod2.setAccessible(z3);
|
||||
return;
|
||||
}
|
||||
if (!(kCallable instanceof KFunction)) {
|
||||
throw new UnsupportedOperationException("Unknown callable: " + kCallable + " (" + kCallable.getClass() + ')');
|
||||
}
|
||||
KFunction kFunction = (KFunction) kCallable;
|
||||
Method javaMethod3 = ReflectJvmMapping.getJavaMethod(kFunction);
|
||||
if (javaMethod3 != null) {
|
||||
javaMethod3.setAccessible(z3);
|
||||
}
|
||||
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kCallable);
|
||||
Object mo1386getMember = (asKCallableImpl == null || (defaultCaller = asKCallableImpl.getDefaultCaller()) == null) ? null : defaultCaller.mo1386getMember();
|
||||
AccessibleObject accessibleObject = mo1386getMember instanceof AccessibleObject ? (AccessibleObject) mo1386getMember : null;
|
||||
if (accessibleObject != null) {
|
||||
accessibleObject.setAccessible(true);
|
||||
}
|
||||
Constructor javaConstructor = ReflectJvmMapping.getJavaConstructor(kFunction);
|
||||
if (javaConstructor == null) {
|
||||
return;
|
||||
}
|
||||
javaConstructor.setAccessible(z3);
|
||||
}
|
||||
}
|
||||
19
apk_decompiled/sources/kotlin/reflect/jvm/KClassesJvm.java
Normal file
19
apk_decompiled/sources/kotlin/reflect/jvm/KClassesJvm.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.jvm.internal.KClassImpl;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0019\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"jvmName", "", "Lkotlin/reflect/KClass;", "getJvmName", "(Lkotlin/reflect/KClass;)Ljava/lang/String;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KClassesJvm")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KClassesJvm {
|
||||
public static final String getJvmName(KClass<?> kClass) {
|
||||
Intrinsics.checkNotNullParameter(kClass, "<this>");
|
||||
String name = ((KClassImpl) kClass).getJClass().getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
return name;
|
||||
}
|
||||
}
|
||||
74
apk_decompiled/sources/kotlin/reflect/jvm/KTypesJvm.java
Normal file
74
apk_decompiled/sources/kotlin/reflect/jvm/KTypesJvm.java
Normal file
@@ -0,0 +1,74 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.KClassifier;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.KTypeParameter;
|
||||
import kotlin.reflect.jvm.internal.KTypeImpl;
|
||||
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\"\u001c\u0010\u0000\u001a\u0006\u0012\u0002\b\u00030\u0001*\u00020\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\"\u0010\u0000\u001a\u0006\u0012\u0002\b\u00030\u0001*\u00020\u00058FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0006\u0010\u0007\u001a\u0004\b\u0003\u0010\b¨\u0006\t"}, d2 = {"jvmErasure", "Lkotlin/reflect/KClass;", "Lkotlin/reflect/KClassifier;", "getJvmErasure", "(Lkotlin/reflect/KClassifier;)Lkotlin/reflect/KClass;", "Lkotlin/reflect/KType;", "getJvmErasure$annotations", "(Lkotlin/reflect/KType;)V", "(Lkotlin/reflect/KType;)Lkotlin/reflect/KClass;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KTypesJvm")
|
||||
@SourceDebugExtension({"SMAP\nKTypesJvm.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypesJvm.kt\nkotlin/reflect/jvm/KTypesJvm\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,52:1\n288#2,2:53\n*S KotlinDebug\n*F\n+ 1 KTypesJvm.kt\nkotlin/reflect/jvm/KTypesJvm\n*L\n44#1:53,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KTypesJvm {
|
||||
public static final KClass<?> getJvmErasure(KType kType) {
|
||||
KClass<?> jvmErasure;
|
||||
Intrinsics.checkNotNullParameter(kType, "<this>");
|
||||
KClassifier classifier = kType.getClassifier();
|
||||
if (classifier != null && (jvmErasure = getJvmErasure(classifier)) != null) {
|
||||
return jvmErasure;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + kType);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void getJvmErasure$annotations(KType kType) {
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final KClass<?> getJvmErasure(KClassifier kClassifier) {
|
||||
ClassDescriptor classDescriptor;
|
||||
KClass<?> jvmErasure;
|
||||
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
|
||||
if (kClassifier instanceof KClass) {
|
||||
return (KClass) kClassifier;
|
||||
}
|
||||
if (kClassifier instanceof KTypeParameter) {
|
||||
List<KType> upperBounds = ((KTypeParameter) kClassifier).getUpperBounds();
|
||||
Iterator<T> it = upperBounds.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
break;
|
||||
}
|
||||
Object next = it.next();
|
||||
KType kType = (KType) next;
|
||||
Intrinsics.checkNotNull(kType, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = ((KTypeImpl) kType).getType().getConstructor().mo1394getDeclarationDescriptor();
|
||||
classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
|
||||
if (classDescriptor != null && classDescriptor.getKind() != ClassKind.INTERFACE && classDescriptor.getKind() != ClassKind.ANNOTATION_CLASS) {
|
||||
classDescriptor = next;
|
||||
break;
|
||||
}
|
||||
}
|
||||
KType kType2 = (KType) classDescriptor;
|
||||
if (kType2 == null) {
|
||||
kType2 = (KType) CollectionsKt.firstOrNull((List) upperBounds);
|
||||
}
|
||||
return (kType2 == null || (jvmErasure = getJvmErasure(kType2)) == null) ? Reflection.getOrCreateKotlinClass(Object.class) : jvmErasure;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + kClassifier);
|
||||
}
|
||||
}
|
||||
247
apk_decompiled/sources/kotlin/reflect/jvm/ReflectJvmMapping.java
Normal file
247
apk_decompiled/sources/kotlin/reflect/jvm/ReflectJvmMapping.java
Normal file
@@ -0,0 +1,247 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.KFunction;
|
||||
import kotlin.reflect.KMutableProperty;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.TypesJVMKt;
|
||||
import kotlin.reflect.full.KClasses;
|
||||
import kotlin.reflect.jvm.internal.KCallableImpl;
|
||||
import kotlin.reflect.jvm.internal.KPackageImpl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.KTypeImpl;
|
||||
import kotlin.reflect.jvm.internal.UtilKt;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader;
|
||||
|
||||
@Metadata(d1 = {"\u0000V\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a$\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0003*\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0&2\u0006\u0010(\u001a\u00020\u000eH\u0002\u001a$\u0010)\u001a\b\u0012\u0002\b\u0003\u0018\u00010\n*\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0&2\u0006\u0010*\u001a\u00020\tH\u0002\u001a\u000e\u0010+\u001a\u0004\u0018\u00010,*\u00020-H\u0002\"/\u0010\u0000\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00038F¢\u0006\f\u0012\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007\"\u001b\u0010\b\u001a\u0004\u0018\u00010\t*\u0006\u0012\u0002\b\u00030\n8F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\f\"\u001b\u0010\r\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\n8F¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010\"\u001b\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\u00038F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013\"\u001b\u0010\u0014\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\u00158F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017\"\u0015\u0010\u0018\u001a\u00020\u0019*\u00020\u001a8F¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001c\"-\u0010\u001d\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0003\"\b\b\u0000\u0010\u0002*\u00020\u001e*\b\u0012\u0004\u0012\u0002H\u00020\u00018F¢\u0006\u0006\u001a\u0004\b\u001f\u0010 \"\u001b\u0010\u001d\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0003*\u00020\u000e8F¢\u0006\u0006\u001a\u0004\b\u001f\u0010!\"\u001b\u0010\"\u001a\b\u0012\u0002\b\u0003\u0018\u00010\n*\u00020\t8F¢\u0006\u0006\u001a\u0004\b#\u0010$¨\u0006."}, d2 = {"javaConstructor", "Ljava/lang/reflect/Constructor;", "T", "Lkotlin/reflect/KFunction;", "getJavaConstructor$annotations", "(Lkotlin/reflect/KFunction;)V", "getJavaConstructor", "(Lkotlin/reflect/KFunction;)Ljava/lang/reflect/Constructor;", "javaField", "Ljava/lang/reflect/Field;", "Lkotlin/reflect/KProperty;", "getJavaField", "(Lkotlin/reflect/KProperty;)Ljava/lang/reflect/Field;", "javaGetter", "Ljava/lang/reflect/Method;", "getJavaGetter", "(Lkotlin/reflect/KProperty;)Ljava/lang/reflect/Method;", "javaMethod", "getJavaMethod", "(Lkotlin/reflect/KFunction;)Ljava/lang/reflect/Method;", "javaSetter", "Lkotlin/reflect/KMutableProperty;", "getJavaSetter", "(Lkotlin/reflect/KMutableProperty;)Ljava/lang/reflect/Method;", "javaType", "Ljava/lang/reflect/Type;", "Lkotlin/reflect/KType;", "getJavaType", "(Lkotlin/reflect/KType;)Ljava/lang/reflect/Type;", "kotlinFunction", "", "getKotlinFunction", "(Ljava/lang/reflect/Constructor;)Lkotlin/reflect/KFunction;", "(Ljava/lang/reflect/Method;)Lkotlin/reflect/KFunction;", "kotlinProperty", "getKotlinProperty", "(Ljava/lang/reflect/Field;)Lkotlin/reflect/KProperty;", "findKFunction", "", "Lkotlin/reflect/KCallable;", FirebaseAnalytics.Param.METHOD, "findKProperty", "field", "getKPackage", "Lkotlin/reflect/KDeclarationContainer;", "Ljava/lang/reflect/Member;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "ReflectJvmMapping")
|
||||
@SourceDebugExtension({"SMAP\nReflectJvmMapping.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ReflectJvmMapping.kt\nkotlin/reflect/jvm/ReflectJvmMapping\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,179:1\n1#2:180\n288#3,2:181\n*S KotlinDebug\n*F\n+ 1 ReflectJvmMapping.kt\nkotlin/reflect/jvm/ReflectJvmMapping\n*L\n177#1:181,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ReflectJvmMapping {
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[KotlinClassHeader.Kind.values().length];
|
||||
try {
|
||||
iArr[KotlinClassHeader.Kind.FILE_FACADE.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS_PART.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
private static final KFunction<?> findKFunction(Collection<? extends KCallable<?>> collection, Method method) {
|
||||
for (KCallable<?> kCallable : collection) {
|
||||
if ((kCallable instanceof KFunction) && Intrinsics.areEqual(kCallable.getName(), method.getName())) {
|
||||
KFunction<?> kFunction = (KFunction) kCallable;
|
||||
if (Intrinsics.areEqual(getJavaMethod(kFunction), method)) {
|
||||
return kFunction;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (KCallable<?> kCallable2 : collection) {
|
||||
if ((kCallable2 instanceof KFunction) && !Intrinsics.areEqual(kCallable2.getName(), method.getName())) {
|
||||
KFunction<?> kFunction2 = (KFunction) kCallable2;
|
||||
if (Intrinsics.areEqual(getJavaMethod(kFunction2), method)) {
|
||||
return kFunction2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final KProperty<?> findKProperty(Collection<? extends KCallable<?>> collection, Field field) {
|
||||
for (KCallable<?> kCallable : collection) {
|
||||
if ((kCallable instanceof KProperty) && Intrinsics.areEqual(kCallable.getName(), field.getName())) {
|
||||
KProperty<?> kProperty = (KProperty) kCallable;
|
||||
if (Intrinsics.areEqual(getJavaField(kProperty), field)) {
|
||||
return kProperty;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (KCallable<?> kCallable2 : collection) {
|
||||
if ((kCallable2 instanceof KProperty) && !Intrinsics.areEqual(kCallable2.getName(), field.getName())) {
|
||||
KProperty<?> kProperty2 = (KProperty) kCallable2;
|
||||
if (Intrinsics.areEqual(getJavaField(kProperty2), field)) {
|
||||
return kProperty2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final <T> Constructor<T> getJavaConstructor(KFunction<? extends T> kFunction) {
|
||||
Caller<?> caller;
|
||||
Intrinsics.checkNotNullParameter(kFunction, "<this>");
|
||||
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kFunction);
|
||||
Object mo1386getMember = (asKCallableImpl == null || (caller = asKCallableImpl.getCaller()) == null) ? null : caller.mo1386getMember();
|
||||
if (mo1386getMember instanceof Constructor) {
|
||||
return (Constructor) mo1386getMember;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static /* synthetic */ void getJavaConstructor$annotations(KFunction kFunction) {
|
||||
}
|
||||
|
||||
public static final Field getJavaField(KProperty<?> kProperty) {
|
||||
Intrinsics.checkNotNullParameter(kProperty, "<this>");
|
||||
KPropertyImpl<?> asKPropertyImpl = UtilKt.asKPropertyImpl(kProperty);
|
||||
if (asKPropertyImpl != null) {
|
||||
return asKPropertyImpl.getJavaField();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final Method getJavaGetter(KProperty<?> kProperty) {
|
||||
Intrinsics.checkNotNullParameter(kProperty, "<this>");
|
||||
return getJavaMethod(kProperty.getGetter());
|
||||
}
|
||||
|
||||
public static final Method getJavaMethod(KFunction<?> kFunction) {
|
||||
Caller<?> caller;
|
||||
Intrinsics.checkNotNullParameter(kFunction, "<this>");
|
||||
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kFunction);
|
||||
Object mo1386getMember = (asKCallableImpl == null || (caller = asKCallableImpl.getCaller()) == null) ? null : caller.mo1386getMember();
|
||||
if (mo1386getMember instanceof Method) {
|
||||
return (Method) mo1386getMember;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final Method getJavaSetter(KMutableProperty<?> kMutableProperty) {
|
||||
Intrinsics.checkNotNullParameter(kMutableProperty, "<this>");
|
||||
return getJavaMethod(kMutableProperty.getSetter());
|
||||
}
|
||||
|
||||
public static final Type getJavaType(KType kType) {
|
||||
Intrinsics.checkNotNullParameter(kType, "<this>");
|
||||
Type javaType = ((KTypeImpl) kType).getJavaType();
|
||||
return javaType == null ? TypesJVMKt.getJavaType(kType) : javaType;
|
||||
}
|
||||
|
||||
private static final KDeclarationContainer getKPackage(Member member) {
|
||||
KotlinClassHeader classHeader;
|
||||
ReflectKotlinClass.Factory factory = ReflectKotlinClass.Factory;
|
||||
Class<?> declaringClass = member.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
|
||||
ReflectKotlinClass create = factory.create(declaringClass);
|
||||
KotlinClassHeader.Kind kind = (create == null || (classHeader = create.getClassHeader()) == null) ? null : classHeader.getKind();
|
||||
int i = kind == null ? -1 : WhenMappings.$EnumSwitchMapping$0[kind.ordinal()];
|
||||
if (i != 1 && i != 2 && i != 3) {
|
||||
return null;
|
||||
}
|
||||
Class<?> declaringClass2 = member.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
|
||||
return new KPackageImpl(declaringClass2);
|
||||
}
|
||||
|
||||
public static final KFunction<?> getKotlinFunction(Method method) {
|
||||
KFunction<?> findKFunction;
|
||||
Intrinsics.checkNotNullParameter(method, "<this>");
|
||||
if (Modifier.isStatic(method.getModifiers())) {
|
||||
KDeclarationContainer kPackage = getKPackage(method);
|
||||
if (kPackage != null) {
|
||||
return findKFunction(kPackage.getMembers(), method);
|
||||
}
|
||||
Class<?> declaringClass = method.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
|
||||
KClass<?> companionObject = KClasses.getCompanionObject(JvmClassMappingKt.getKotlinClass(declaringClass));
|
||||
if (companionObject != null) {
|
||||
Class javaClass = JvmClassMappingKt.getJavaClass((KClass) companionObject);
|
||||
String name = method.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
Class<?>[] parameterTypes = method.getParameterTypes();
|
||||
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
|
||||
Method declaredMethodOrNull = UtilKt.getDeclaredMethodOrNull(javaClass, name, (Class[]) Arrays.copyOf(parameterTypes, parameterTypes.length));
|
||||
if (declaredMethodOrNull != null && (findKFunction = findKFunction(KClasses.getFunctions(companionObject), declaredMethodOrNull)) != null) {
|
||||
return findKFunction;
|
||||
}
|
||||
}
|
||||
}
|
||||
Class<?> declaringClass2 = method.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
|
||||
return findKFunction(KClasses.getFunctions(JvmClassMappingKt.getKotlinClass(declaringClass2)), method);
|
||||
}
|
||||
|
||||
public static final KProperty<?> getKotlinProperty(Field field) {
|
||||
KProperty<?> findKProperty;
|
||||
Intrinsics.checkNotNullParameter(field, "<this>");
|
||||
if (field.isSynthetic()) {
|
||||
return null;
|
||||
}
|
||||
if (Modifier.isStatic(field.getModifiers())) {
|
||||
KDeclarationContainer kPackage = getKPackage(field);
|
||||
if (kPackage != null) {
|
||||
return findKProperty(kPackage.getMembers(), field);
|
||||
}
|
||||
Class<?> declaringClass = field.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
|
||||
KClass<?> companionObject = KClasses.getCompanionObject(JvmClassMappingKt.getKotlinClass(declaringClass));
|
||||
if (companionObject != null) {
|
||||
Class<?> declaringClass2 = field.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
|
||||
String name = field.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
Field declaredFieldOrNull = UtilKt.getDeclaredFieldOrNull(declaringClass2, name);
|
||||
if (declaredFieldOrNull != null && (findKProperty = findKProperty(KClasses.getMemberProperties(companionObject), declaredFieldOrNull)) != null) {
|
||||
return findKProperty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Class<?> declaringClass3 = field.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass3, "getDeclaringClass(...)");
|
||||
return findKProperty(KClasses.getMemberProperties(JvmClassMappingKt.getKotlinClass(declaringClass3)), field);
|
||||
}
|
||||
|
||||
public static final <T> KFunction<T> getKotlinFunction(Constructor<T> constructor) {
|
||||
T t2;
|
||||
Intrinsics.checkNotNullParameter(constructor, "<this>");
|
||||
Class<T> declaringClass = constructor.getDeclaringClass();
|
||||
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
|
||||
Iterator<T> it = JvmClassMappingKt.getKotlinClass(declaringClass).getConstructors().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
t2 = null;
|
||||
break;
|
||||
}
|
||||
t2 = it.next();
|
||||
if (Intrinsics.areEqual(getJavaConstructor((KFunction) t2), constructor)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (KFunction) t2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class ReflectLambdaKt$reflect$descriptor$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Function, SimpleFunctionDescriptor> {
|
||||
public static final ReflectLambdaKt$reflect$descriptor$1 INSTANCE = new ReflectLambdaKt$reflect$descriptor$1();
|
||||
|
||||
public ReflectLambdaKt$reflect$descriptor$1() {
|
||||
super(2);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "loadFunction";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "loadFunction(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Function;)Lorg/jetbrains/kotlin/descriptors/SimpleFunctionDescriptor;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final SimpleFunctionDescriptor invoke(MemberDeserializer p02, ProtoBuf.Function p12) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
Intrinsics.checkNotNullParameter(p12, "p1");
|
||||
return p02.loadFunction(p12);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package kotlin.reflect.jvm;
|
||||
|
||||
import kotlin.Function;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KFunction;
|
||||
import kotlin.reflect.jvm.internal.EmptyContainerForLocal;
|
||||
import kotlin.reflect.jvm.internal.KFunctionImpl;
|
||||
import kotlin.reflect.jvm.internal.UtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMetadataVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a \u0010\u0000\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0007¨\u0006\u0004"}, d2 = {"reflect", "Lkotlin/reflect/KFunction;", "R", "Lkotlin/Function;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nreflectLambda.kt\nKotlin\n*S Kotlin\n*F\n+ 1 reflectLambda.kt\nkotlin/reflect/jvm/ReflectLambdaKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,79:1\n1#2:80\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ReflectLambdaKt {
|
||||
@ExperimentalReflectionOnLambdas
|
||||
public static final <R> KFunction<R> reflect(Function<? extends R> function) {
|
||||
Intrinsics.checkNotNullParameter(function, "<this>");
|
||||
Metadata metadata = (Metadata) function.getClass().getAnnotation(Metadata.class);
|
||||
if (metadata == null) {
|
||||
return null;
|
||||
}
|
||||
String[] d12 = metadata.d1();
|
||||
if (d12.length == 0) {
|
||||
d12 = null;
|
||||
}
|
||||
if (d12 == null) {
|
||||
return null;
|
||||
}
|
||||
Pair<JvmNameResolver, ProtoBuf.Function> readFunctionDataFrom = JvmProtoBufUtil.readFunctionDataFrom(d12, metadata.d2());
|
||||
JvmNameResolver component1 = readFunctionDataFrom.component1();
|
||||
ProtoBuf.Function component2 = readFunctionDataFrom.component2();
|
||||
JvmMetadataVersion jvmMetadataVersion = new JvmMetadataVersion(metadata.mv(), (metadata.xi() & 8) != 0);
|
||||
Class<?> cls = function.getClass();
|
||||
ProtoBuf.TypeTable typeTable = component2.getTypeTable();
|
||||
Intrinsics.checkNotNullExpressionValue(typeTable, "getTypeTable(...)");
|
||||
return new KFunctionImpl(EmptyContainerForLocal.INSTANCE, (SimpleFunctionDescriptor) UtilKt.deserializeToDescriptor(cls, component2, component1, new TypeTable(typeTable), jvmMetadataVersion, ReflectLambdaKt$reflect$descriptor$1.INSTANCE));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b \u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u0004\u001a\u00020\u0005H&J\u0019\u0010\u0006\u001a\u00028\u00002\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH&¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/CacheByClass;", "V", "", "()V", "clear", "", "get", "key", "Ljava/lang/Class;", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class CacheByClass<V> {
|
||||
public abstract void clear();
|
||||
|
||||
public abstract V get(Class<?> key);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Result;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a0\u0010\u0002\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0003\"\b\b\u0000\u0010\u0004*\u00020\u00052\u0016\u0010\u0006\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\b\u0012\u0004\u0012\u0002H\u00040\u0007H\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"useClassValue", "", "createCache", "Lkotlin/reflect/jvm/internal/CacheByClass;", "V", "", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/CacheByClassKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n1#2:99\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CacheByClassKt {
|
||||
private static final boolean useClassValue = false;
|
||||
|
||||
static {
|
||||
Object m116constructorimpl;
|
||||
try {
|
||||
Result.Companion companion = Result.INSTANCE;
|
||||
m116constructorimpl = Result.m116constructorimpl(Class.forName("java.lang.ClassValue"));
|
||||
} catch (Throwable th) {
|
||||
Result.Companion companion2 = Result.INSTANCE;
|
||||
m116constructorimpl = Result.m116constructorimpl(ResultKt.createFailure(th));
|
||||
}
|
||||
if (Result.m123isSuccessimpl(m116constructorimpl)) {
|
||||
m116constructorimpl = Boolean.TRUE;
|
||||
}
|
||||
Object m116constructorimpl2 = Result.m116constructorimpl(m116constructorimpl);
|
||||
Boolean bool = Boolean.FALSE;
|
||||
if (Result.m122isFailureimpl(m116constructorimpl2)) {
|
||||
m116constructorimpl2 = bool;
|
||||
}
|
||||
((Boolean) m116constructorimpl2).getClass();
|
||||
}
|
||||
|
||||
public static final <V> CacheByClass<V> createCache(Function1<? super Class<?>, ? extends V> compute) {
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
return new ConcurrentHashMapCache(compute);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KAnnotatedElement;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.KTypeProjection;
|
||||
import kotlin.reflect.full.KClassifiers;
|
||||
|
||||
@Metadata(d1 = {"\u0000R\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\b\u0010\u0011\u001a\u00020\u0012H\u0000\u001a6\u0010\u0013\u001a\u00020\u0002\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u00162\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\u0006\u0010\u0018\u001a\u00020\bH\u0000\u001a6\u0010\u0019\u001a\u00020\u0002\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u00162\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\u0006\u0010\u0018\u001a\u00020\bH\u0002\u001a&\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00140\f\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u0016H\u0000\u001a \u0010\u001b\u001a\u00020\u001c\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u0016H\u0000\"\u0014\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"6\u0010\u0003\u001a*\u0012&\u0012$\u0012\u001a\u0012\u0018\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u0005j\u0002`\t\u0012\u0004\u0012\u00020\u00020\u00040\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u0014\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"$\u0010\u000b\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u000e\b\u0001\u0012\n \u000e*\u0004\u0018\u00010\r0\r0\f0\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u0014\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00100\u0001X\u0082\u0004¢\u0006\u0002\n\u0000*0\b\u0002\u0010\u001d\"\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u00052\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u0005¨\u0006\u001e"}, d2 = {"CACHE_FOR_BASE_CLASSIFIERS", "Lkotlin/reflect/jvm/internal/CacheByClass;", "Lkotlin/reflect/KType;", "CACHE_FOR_GENERIC_CLASSIFIERS", "Ljava/util/concurrent/ConcurrentHashMap;", "Lkotlin/Pair;", "", "Lkotlin/reflect/KTypeProjection;", "", "Lkotlin/reflect/jvm/internal/Key;", "CACHE_FOR_NULLABLE_BASE_CLASSIFIERS", "K_CLASS_CACHE", "Lkotlin/reflect/jvm/internal/KClassImpl;", "", "kotlin.jvm.PlatformType", "K_PACKAGE_CACHE", "Lkotlin/reflect/jvm/internal/KPackageImpl;", "clearCaches", "", "getOrCreateKType", "T", "jClass", "Ljava/lang/Class;", "arguments", "isMarkedNullable", "getOrCreateKTypeWithTypeArguments", "getOrCreateKotlinClass", "getOrCreateKotlinPackage", "Lkotlin/reflect/KDeclarationContainer;", "Key", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\ncaches.kt\nKotlin\n*S Kotlin\n*F\n+ 1 caches.kt\nkotlin/reflect/jvm/internal/CachesKt\n+ 2 MapsJVM.kt\nkotlin/collections/MapsKt__MapsJVMKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,74:1\n72#2,2:75\n1#3:77\n*S KotlinDebug\n*F\n+ 1 caches.kt\nkotlin/reflect/jvm/internal/CachesKt\n*L\n68#1:75,2\n68#1:77\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CachesKt {
|
||||
private static final CacheByClass<KClassImpl<? extends Object>> K_CLASS_CACHE = CacheByClassKt.createCache(new Function1<Class<?>, KClassImpl<? extends Object>>() { // from class: kotlin.reflect.jvm.internal.CachesKt$K_CLASS_CACHE$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final KClassImpl<? extends Object> invoke(Class<?> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return new KClassImpl<>(it);
|
||||
}
|
||||
});
|
||||
private static final CacheByClass<KPackageImpl> K_PACKAGE_CACHE = CacheByClassKt.createCache(new Function1<Class<?>, KPackageImpl>() { // from class: kotlin.reflect.jvm.internal.CachesKt$K_PACKAGE_CACHE$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final KPackageImpl invoke(Class<?> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return new KPackageImpl(it);
|
||||
}
|
||||
});
|
||||
private static final CacheByClass<KType> CACHE_FOR_BASE_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, KType>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_BASE_CLASSIFIERS$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final KType invoke(Class<?> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return KClassifiers.createType(CachesKt.getOrCreateKotlinClass(it), CollectionsKt.emptyList(), false, CollectionsKt.emptyList());
|
||||
}
|
||||
});
|
||||
private static final CacheByClass<KType> CACHE_FOR_NULLABLE_BASE_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, KType>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_NULLABLE_BASE_CLASSIFIERS$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final KType invoke(Class<?> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return KClassifiers.createType(CachesKt.getOrCreateKotlinClass(it), CollectionsKt.emptyList(), true, CollectionsKt.emptyList());
|
||||
}
|
||||
});
|
||||
private static final CacheByClass<ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType>> CACHE_FOR_GENERIC_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, ConcurrentHashMap<Pair<? extends List<? extends KTypeProjection>, ? extends Boolean>, KType>>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_GENERIC_CLASSIFIERS$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType> invoke(Class<?> it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return new ConcurrentHashMap<>();
|
||||
}
|
||||
});
|
||||
|
||||
public static final void clearCaches() {
|
||||
K_CLASS_CACHE.clear();
|
||||
K_PACKAGE_CACHE.clear();
|
||||
CACHE_FOR_BASE_CLASSIFIERS.clear();
|
||||
CACHE_FOR_NULLABLE_BASE_CLASSIFIERS.clear();
|
||||
CACHE_FOR_GENERIC_CLASSIFIERS.clear();
|
||||
}
|
||||
|
||||
public static final <T> KType getOrCreateKType(Class<T> jClass, List<KTypeProjection> arguments, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
Intrinsics.checkNotNullParameter(arguments, "arguments");
|
||||
return arguments.isEmpty() ? z3 ? CACHE_FOR_NULLABLE_BASE_CLASSIFIERS.get(jClass) : CACHE_FOR_BASE_CLASSIFIERS.get(jClass) : getOrCreateKTypeWithTypeArguments(jClass, arguments, z3);
|
||||
}
|
||||
|
||||
private static final <T> KType getOrCreateKTypeWithTypeArguments(Class<T> cls, List<KTypeProjection> list, boolean z3) {
|
||||
ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType> concurrentHashMap = CACHE_FOR_GENERIC_CLASSIFIERS.get(cls);
|
||||
Pair<List<KTypeProjection>, Boolean> pair = TuplesKt.to(list, Boolean.valueOf(z3));
|
||||
KType kType = concurrentHashMap.get(pair);
|
||||
if (kType == null) {
|
||||
KType createType = KClassifiers.createType(getOrCreateKotlinClass(cls), list, z3, CollectionsKt.emptyList());
|
||||
KType putIfAbsent = concurrentHashMap.putIfAbsent(pair, createType);
|
||||
kType = putIfAbsent == null ? createType : putIfAbsent;
|
||||
}
|
||||
Intrinsics.checkNotNullExpressionValue(kType, "getOrPut(...)");
|
||||
return kType;
|
||||
}
|
||||
|
||||
public static final <T> KClassImpl<T> getOrCreateKotlinClass(Class<T> jClass) {
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
KAnnotatedElement kAnnotatedElement = K_CLASS_CACHE.get(jClass);
|
||||
Intrinsics.checkNotNull(kAnnotatedElement, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<T of kotlin.reflect.jvm.internal.CachesKt.getOrCreateKotlinClass>");
|
||||
return (KClassImpl) kAnnotatedElement;
|
||||
}
|
||||
|
||||
public static final <T> KDeclarationContainer getOrCreateKotlinPackage(Class<T> jClass) {
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
return K_PACKAGE_CACHE.get(jClass);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0003\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u001d\u0012\u0016\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0006J\b\u0010\t\u001a\u00020\nH\u0016J\u0019\u0010\u000b\u001a\u00028\u00002\n\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016¢\u0006\u0002\u0010\rR\u0014\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/ClassValueCache;", "V", "Lkotlin/reflect/jvm/internal/CacheByClass;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "classValue", "Lkotlin/reflect/jvm/internal/ComputableClassValue;", "clear", "", "get", "key", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ClassValueCache\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n1#2:99\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
final class ClassValueCache<V> extends CacheByClass<V> {
|
||||
private volatile ComputableClassValue<V> classValue;
|
||||
|
||||
public ClassValueCache(Function1<? super Class<?>, ? extends V> compute) {
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
this.classValue = new ComputableClassValue<>(compute);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.CacheByClass
|
||||
public void clear() {
|
||||
this.classValue = this.classValue.createNewCopy();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.CacheByClass
|
||||
public V get(Class<?> key) {
|
||||
Object obj;
|
||||
Object obj2;
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
ComputableClassValue<V> computableClassValue = this.classValue;
|
||||
obj = computableClassValue.get(key);
|
||||
V v3 = (V) ((SoftReference) obj).get();
|
||||
if (v3 != null) {
|
||||
return v3;
|
||||
}
|
||||
computableClassValue.remove(key);
|
||||
obj2 = computableClassValue.get(key);
|
||||
V v4 = (V) ((SoftReference) obj2).get();
|
||||
return v4 != null ? v4 : computableClassValue.compute.invoke(key);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0003\u0018\u0000*\u0004\b\u0000\u0010\u00012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00030\u0002B\u001d\u0012\u0016\u0010\u0004\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0006\u0012\u0004\u0012\u00028\u00000\u0005¢\u0006\u0002\u0010\u0007J\u001a\u0010\b\u001a\b\u0012\u0004\u0012\u00028\u00000\u00032\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\u0006H\u0014J\f\u0010\n\u001a\b\u0012\u0004\u0012\u00028\u00000\u0000R \u0010\u0004\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0006\u0012\u0004\u0012\u00028\u00000\u00058\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/ComputableClassValue;", "V", "Ljava/lang/ClassValue;", "Ljava/lang/ref/SoftReference;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "computeValue", "type", "createNewCopy", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
final class ComputableClassValue<V> extends ClassValue<SoftReference<V>> {
|
||||
|
||||
@JvmField
|
||||
public final Function1<Class<?>, V> compute;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ComputableClassValue(Function1<? super Class<?>, ? extends V> compute) {
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
this.compute = compute;
|
||||
}
|
||||
|
||||
@Override // java.lang.ClassValue
|
||||
public /* bridge */ /* synthetic */ Object computeValue(Class cls) {
|
||||
return computeValue((Class<?>) cls);
|
||||
}
|
||||
|
||||
public final ComputableClassValue<V> createNewCopy() {
|
||||
return new ComputableClassValue<>(this.compute);
|
||||
}
|
||||
|
||||
@Override // java.lang.ClassValue
|
||||
public SoftReference<V> computeValue(Class<?> type) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return new SoftReference<>(this.compute.invoke(type));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u001d\u0012\u0016\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0006J\b\u0010\t\u001a\u00020\nH\u0016J\u0019\u0010\u000b\u001a\u00028\u00002\n\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016¢\u0006\u0002\u0010\rR\u001e\u0010\u0007\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/ConcurrentHashMapCache;", "V", "Lkotlin/reflect/jvm/internal/CacheByClass;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "cache", "Ljava/util/concurrent/ConcurrentHashMap;", "clear", "", "get", "key", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ConcurrentHashMapCache\n+ 2 MapsJVM.kt\nkotlin/collections/MapsKt__MapsJVMKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n72#2,2:99\n1#3:101\n*S KotlinDebug\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ConcurrentHashMapCache\n*L\n92#1:99,2\n92#1:101\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
final class ConcurrentHashMapCache<V> extends CacheByClass<V> {
|
||||
private final ConcurrentHashMap<Class<?>, V> cache;
|
||||
private final Function1<Class<?>, V> compute;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ConcurrentHashMapCache(Function1<? super Class<?>, ? extends V> compute) {
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
this.compute = compute;
|
||||
this.cache = new ConcurrentHashMap<>();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.CacheByClass
|
||||
public void clear() {
|
||||
this.cache.clear();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.CacheByClass
|
||||
public V get(Class<?> key) {
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
ConcurrentHashMap<Class<?>, V> concurrentHashMap = this.cache;
|
||||
V v3 = (V) concurrentHashMap.get(key);
|
||||
if (v3 != null) {
|
||||
return v3;
|
||||
}
|
||||
V invoke = this.compute.invoke(key);
|
||||
V v4 = (V) concurrentHashMap.putIfAbsent(key, invoke);
|
||||
return v4 == null ? invoke : v4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0010\u0018\u00002\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\r\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J!\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u0003H\u0016¢\u0006\u0002\u0010\u000bJ!\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\b\u001a\u00020\r2\u0006\u0010\n\u001a\u00020\u0003H\u0016¢\u0006\u0002\u0010\u000eR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/CreateKCallableVisitor;", "Lkotlin/reflect/jvm/internal/impl/descriptors/impl/DeclarationDescriptorVisitorEmptyBodies;", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;)V", "visitFunctionDescriptor", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "(Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;Lkotlin/Unit;)Lkotlin/reflect/jvm/internal/KCallableImpl;", "visitPropertyDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Lkotlin/Unit;)Lkotlin/reflect/jvm/internal/KCallableImpl;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nutil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 util.kt\nkotlin/reflect/jvm/internal/CreateKCallableVisitor\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,330:1\n1#2:331\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public class CreateKCallableVisitor extends DeclarationDescriptorVisitorEmptyBodies<KCallableImpl<?>, Unit> {
|
||||
private final KDeclarationContainerImpl container;
|
||||
|
||||
public CreateKCallableVisitor(KDeclarationContainerImpl container) {
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
this.container = container;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorVisitor
|
||||
public KCallableImpl<?> visitFunctionDescriptor(FunctionDescriptor descriptor, Unit data) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(data, "data");
|
||||
return new KFunctionImpl(this.container, descriptor);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorVisitor
|
||||
public KCallableImpl<?> visitPropertyDescriptor(PropertyDescriptor descriptor, Unit data) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(data, "data");
|
||||
int i = (descriptor.getDispatchReceiverParameter() != null ? 1 : 0) + (descriptor.getExtensionReceiverParameter() != null ? 1 : 0);
|
||||
if (descriptor.isVar()) {
|
||||
if (i == 0) {
|
||||
return new KMutableProperty0Impl(this.container, descriptor);
|
||||
}
|
||||
if (i == 1) {
|
||||
return new KMutableProperty1Impl(this.container, descriptor);
|
||||
}
|
||||
if (i == 2) {
|
||||
return new KMutableProperty2Impl(this.container, descriptor);
|
||||
}
|
||||
} else {
|
||||
if (i == 0) {
|
||||
return new KProperty0Impl(this.container, descriptor);
|
||||
}
|
||||
if (i == 1) {
|
||||
return new KProperty1Impl(this.container, descriptor);
|
||||
}
|
||||
if (i == 2) {
|
||||
return new KProperty2Impl(this.container, descriptor);
|
||||
}
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Unsupported property: " + descriptor);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0002J\u0016\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00120\u00042\u0006\u0010\u0013\u001a\u00020\u0014H\u0016J\u0012\u0010\u0015\u001a\u0004\u0018\u00010\u00162\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0016\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00160\u00042\u0006\u0010\u0013\u001a\u00020\u0014H\u0016R\u001a\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0018\u0010\b\u001a\u0006\u0012\u0002\b\u00030\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u001e\u0010\f\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\r0\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u0007¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/EmptyContainerForLocal;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "()V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", "jClass", "Ljava/lang/Class;", "getJClass", "()Ljava/lang/Class;", "members", "Lkotlin/reflect/KCallable;", "getMembers", "fail", "", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", AppMeasurementSdk.ConditionalUserProperty.NAME, "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", FirebaseAnalytics.Param.INDEX, "", "getProperties", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class EmptyContainerForLocal extends KDeclarationContainerImpl {
|
||||
public static final EmptyContainerForLocal INSTANCE = new EmptyContainerForLocal();
|
||||
|
||||
private EmptyContainerForLocal() {
|
||||
}
|
||||
|
||||
private final Void fail() {
|
||||
throw new KotlinReflectionInternalError("Introspecting local functions, lambdas, anonymous functions, local variables and typealiases is not yet fully supported in Kotlin reflection");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<ConstructorDescriptor> getConstructorDescriptors() {
|
||||
fail();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<FunctionDescriptor> getFunctions(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
fail();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ClassBasedDeclarationContainer
|
||||
public Class<?> getJClass() {
|
||||
fail();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public PropertyDescriptor getLocalProperty(int index) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KDeclarationContainer
|
||||
public Collection<KCallable<?>> getMembers() {
|
||||
fail();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<PropertyDescriptor> getProperties(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
fail();
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,190 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt___ArraysKt;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\u00020\u0001:\u0005\u0005\u0006\u0007\b\tB\u0007\b\u0004¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H&\u0082\u0001\u0005\n\u000b\f\r\u000e¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "", "()V", "asString", "", "FakeJavaAnnotationConstructor", "JavaConstructor", "JavaMethod", "KotlinConstructor", "KotlinFunction", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaMethod;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class JvmFunctionSignature {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\r\u001a\u00020\u000eH\u0016R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u001f\u0010\u0007\u001a\u0010\u0012\f\u0012\n \n*\u0004\u0018\u00010\t0\t0\b¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "getJClass", "()Ljava/lang/Class;", "methods", "", "Ljava/lang/reflect/Method;", "kotlin.jvm.PlatformType", "getMethods", "()Ljava/util/List;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,302:1\n6442#2:303\n*S KotlinDebug\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor\n*L\n88#1:303\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class FakeJavaAnnotationConstructor extends JvmFunctionSignature {
|
||||
private final Class<?> jClass;
|
||||
private final List<Method> methods;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$special$$inlined$sortedBy$1] */
|
||||
public FakeJavaAnnotationConstructor(Class<?> jClass) {
|
||||
super(null);
|
||||
List<Method> sortedWith;
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
this.jClass = jClass;
|
||||
Method[] declaredMethods = jClass.getDeclaredMethods();
|
||||
Intrinsics.checkNotNullExpressionValue(declaredMethods, "getDeclaredMethods(...)");
|
||||
sortedWith = ArraysKt___ArraysKt.sortedWith(declaredMethods, (Comparator) new Comparator() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$special$$inlined$sortedBy$1
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // java.util.Comparator
|
||||
public final int compare(T t2, T t4) {
|
||||
return ComparisonsKt.compareValues(((Method) t2).getName(), ((Method) t4).getName());
|
||||
}
|
||||
});
|
||||
this.methods = sortedWith;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
|
||||
/* renamed from: asString */
|
||||
public String get_signature() {
|
||||
String joinToString$default;
|
||||
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(this.methods, "", "<init>(", ")V", 0, null, new Function1<Method, CharSequence>() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$asString$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(Method method) {
|
||||
Class<?> returnType = method.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
return ReflectClassUtilKt.getDesc(returnType);
|
||||
}
|
||||
}, 24, null);
|
||||
return joinToString$default;
|
||||
}
|
||||
|
||||
public final List<Method> getMethods() {
|
||||
return this.methods;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "constructor", "Ljava/lang/reflect/Constructor;", "(Ljava/lang/reflect/Constructor;)V", "getConstructor", "()Ljava/lang/reflect/Constructor;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JavaConstructor extends JvmFunctionSignature {
|
||||
private final Constructor<?> constructor;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JavaConstructor(Constructor<?> constructor) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(constructor, "constructor");
|
||||
this.constructor = constructor;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
|
||||
/* renamed from: asString */
|
||||
public String get_signature() {
|
||||
String joinToString$default;
|
||||
Class<?>[] parameterTypes = this.constructor.getParameterTypes();
|
||||
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
|
||||
joinToString$default = ArraysKt___ArraysKt.joinToString$default(parameterTypes, "", "<init>(", ")V", 0, (CharSequence) null, new Function1<Class<?>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$JavaConstructor$asString$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(Class<?> cls) {
|
||||
Intrinsics.checkNotNull(cls);
|
||||
return ReflectClassUtilKt.getDesc(cls);
|
||||
}
|
||||
}, 24, (Object) null);
|
||||
return joinToString$default;
|
||||
}
|
||||
|
||||
public final Constructor<?> getConstructor() {
|
||||
return this.constructor;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaMethod;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "getMethod", "()Ljava/lang/reflect/Method;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JavaMethod extends JvmFunctionSignature {
|
||||
private final Method method;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JavaMethod(Method method) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
|
||||
/* renamed from: asString */
|
||||
public String get_signature() {
|
||||
String signature;
|
||||
signature = RuntimeTypeMapperKt.getSignature(this.method);
|
||||
return signature;
|
||||
}
|
||||
|
||||
public final Method getMethod() {
|
||||
return this.method;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0007\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\f\u001a\u00020\u0006H\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMemberSignature$Method;", "(Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;)V", "_signature", "", "constructorDesc", "getConstructorDesc", "()Ljava/lang/String;", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;", "asString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KotlinConstructor extends JvmFunctionSignature {
|
||||
private final String _signature;
|
||||
private final JvmMemberSignature.Method signature;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KotlinConstructor(JvmMemberSignature.Method signature) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
this.signature = signature;
|
||||
this._signature = signature.asString();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
|
||||
/* renamed from: asString, reason: from getter */
|
||||
public String get_signature() {
|
||||
return this._signature;
|
||||
}
|
||||
|
||||
public final String getConstructorDesc() {
|
||||
return this.signature.getDesc();
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\t\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u000e\u001a\u00020\u0006H\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMemberSignature$Method;", "(Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;)V", "_signature", "", "methodDesc", "getMethodDesc", "()Ljava/lang/String;", "methodName", "getMethodName", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;", "asString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KotlinFunction extends JvmFunctionSignature {
|
||||
private final String _signature;
|
||||
private final JvmMemberSignature.Method signature;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KotlinFunction(JvmMemberSignature.Method signature) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
this.signature = signature;
|
||||
this._signature = signature.asString();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
|
||||
/* renamed from: asString, reason: from getter */
|
||||
public String get_signature() {
|
||||
return this._signature;
|
||||
}
|
||||
|
||||
public final String getMethodDesc() {
|
||||
return this.signature.getDesc();
|
||||
}
|
||||
|
||||
public final String getMethodName() {
|
||||
return this.signature.getName();
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ JvmFunctionSignature(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
/* renamed from: asString */
|
||||
public abstract String get_signature();
|
||||
|
||||
private JvmFunctionSignature() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.JvmAbi;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmPackagePartSource;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.name.NameUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\u00020\u0001:\u0004\u0005\u0006\u0007\bB\u0007\b\u0004¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H&\u0082\u0001\u0004\t\n\u000b\f¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "", "()V", "asString", "", "JavaField", "JavaMethodProperty", "KotlinProperty", "MappedKotlinProperty", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaField;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaMethodProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$MappedKotlinProperty;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class JvmPropertySignature {
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaField;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "getField", "()Ljava/lang/reflect/Field;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JavaField extends JvmPropertySignature {
|
||||
private final Field field;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JavaField(Field field) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
this.field = field;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
|
||||
/* renamed from: asString */
|
||||
public String getString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
String name = this.field.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
sb.append(JvmAbi.getterName(name));
|
||||
sb.append("()");
|
||||
Class<?> type = this.field.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
sb.append(ReflectClassUtilKt.getDesc(type));
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public final Field getField() {
|
||||
return this.field;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005J\b\u0010\t\u001a\u00020\nH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaMethodProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "getterMethod", "Ljava/lang/reflect/Method;", "setterMethod", "(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V", "getGetterMethod", "()Ljava/lang/reflect/Method;", "getSetterMethod", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JavaMethodProperty extends JvmPropertySignature {
|
||||
private final Method getterMethod;
|
||||
private final Method setterMethod;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JavaMethodProperty(Method getterMethod, Method method) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(getterMethod, "getterMethod");
|
||||
this.getterMethod = getterMethod;
|
||||
this.setterMethod = method;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
|
||||
/* renamed from: asString */
|
||||
public String getString() {
|
||||
String signature;
|
||||
signature = RuntimeTypeMapperKt.getSignature(this.getterMethod);
|
||||
return signature;
|
||||
}
|
||||
|
||||
public final Method getGetterMethod() {
|
||||
return this.getterMethod;
|
||||
}
|
||||
|
||||
public final Method getSetterMethod() {
|
||||
return this.setterMethod;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000e\n\u0002\b\u0005\u0018\u00002\u00020\u0001B-\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b¢\u0006\u0002\u0010\fJ\b\u0010\u0019\u001a\u00020\u0016H\u0016J\b\u0010\u001a\u001a\u00020\u0016H\u0002R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u000e\u0010\u0015\u001a\u00020\u0016X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\n\u001a\u00020\u000b¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018¨\u0006\u001b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "proto", "Lkotlin/reflect/jvm/internal/impl/metadata/ProtoBuf$Property;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/JvmProtoBuf$JvmPropertySignature;", "nameResolver", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/NameResolver;", "typeTable", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/TypeTable;", "(Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;Lorg/jetbrains/kotlin/metadata/jvm/JvmProtoBuf$JvmPropertySignature;Lorg/jetbrains/kotlin/metadata/deserialization/NameResolver;Lorg/jetbrains/kotlin/metadata/deserialization/TypeTable;)V", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;", "getNameResolver", "()Lorg/jetbrains/kotlin/metadata/deserialization/NameResolver;", "getProto", "()Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/JvmProtoBuf$JvmPropertySignature;", "string", "", "getTypeTable", "()Lorg/jetbrains/kotlin/metadata/deserialization/TypeTable;", "asString", "getManglingSuffix", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,302:1\n1#2:303\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KotlinProperty extends JvmPropertySignature {
|
||||
private final PropertyDescriptor descriptor;
|
||||
private final NameResolver nameResolver;
|
||||
private final ProtoBuf.Property proto;
|
||||
private final JvmProtoBuf.JvmPropertySignature signature;
|
||||
private final String string;
|
||||
private final TypeTable typeTable;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KotlinProperty(PropertyDescriptor descriptor, ProtoBuf.Property proto, JvmProtoBuf.JvmPropertySignature signature, NameResolver nameResolver, TypeTable typeTable) {
|
||||
super(null);
|
||||
String str;
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
this.descriptor = descriptor;
|
||||
this.proto = proto;
|
||||
this.signature = signature;
|
||||
this.nameResolver = nameResolver;
|
||||
this.typeTable = typeTable;
|
||||
if (signature.hasGetter()) {
|
||||
str = nameResolver.getString(signature.getGetter().getName()) + nameResolver.getString(signature.getGetter().getDesc());
|
||||
} else {
|
||||
JvmMemberSignature.Field jvmFieldSignature$default = JvmProtoBufUtil.getJvmFieldSignature$default(JvmProtoBufUtil.INSTANCE, proto, nameResolver, typeTable, false, 8, null);
|
||||
if (jvmFieldSignature$default == null) {
|
||||
throw new KotlinReflectionInternalError("No field signature for property: " + descriptor);
|
||||
}
|
||||
String component1 = jvmFieldSignature$default.component1();
|
||||
str = JvmAbi.getterName(component1) + getManglingSuffix() + "()" + jvmFieldSignature$default.component2();
|
||||
}
|
||||
this.string = str;
|
||||
}
|
||||
|
||||
private final String getManglingSuffix() {
|
||||
String str;
|
||||
DeclarationDescriptor containingDeclaration = this.descriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
|
||||
if (Intrinsics.areEqual(this.descriptor.getVisibility(), DescriptorVisibilities.INTERNAL) && (containingDeclaration instanceof DeserializedClassDescriptor)) {
|
||||
ProtoBuf.Class classProto = ((DeserializedClassDescriptor) containingDeclaration).getClassProto();
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, Integer> classModuleName = JvmProtoBuf.classModuleName;
|
||||
Intrinsics.checkNotNullExpressionValue(classModuleName, "classModuleName");
|
||||
Integer num = (Integer) ProtoBufUtilKt.getExtensionOrNull(classProto, classModuleName);
|
||||
if (num == null || (str = this.nameResolver.getString(num.intValue())) == null) {
|
||||
str = "main";
|
||||
}
|
||||
return "$" + NameUtils.sanitizeAsJavaIdentifier(str);
|
||||
}
|
||||
if (!Intrinsics.areEqual(this.descriptor.getVisibility(), DescriptorVisibilities.PRIVATE) || !(containingDeclaration instanceof PackageFragmentDescriptor)) {
|
||||
return "";
|
||||
}
|
||||
PropertyDescriptor propertyDescriptor = this.descriptor;
|
||||
Intrinsics.checkNotNull(propertyDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor");
|
||||
DeserializedContainerSource containerSource = ((DeserializedPropertyDescriptor) propertyDescriptor).getContainerSource();
|
||||
if (!(containerSource instanceof JvmPackagePartSource)) {
|
||||
return "";
|
||||
}
|
||||
JvmPackagePartSource jvmPackagePartSource = (JvmPackagePartSource) containerSource;
|
||||
if (jvmPackagePartSource.getFacadeClassName() == null) {
|
||||
return "";
|
||||
}
|
||||
return "$" + jvmPackagePartSource.getSimpleName().asString();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
|
||||
/* renamed from: asString, reason: from getter */
|
||||
public String getString() {
|
||||
return this.string;
|
||||
}
|
||||
|
||||
public final PropertyDescriptor getDescriptor() {
|
||||
return this.descriptor;
|
||||
}
|
||||
|
||||
public final NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
public final ProtoBuf.Property getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
|
||||
public final JvmProtoBuf.JvmPropertySignature getSignature() {
|
||||
return this.signature;
|
||||
}
|
||||
|
||||
public final TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005J\b\u0010\t\u001a\u00020\nH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$MappedKotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "getterSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "setterSignature", "(Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;)V", "getGetterSignature", "()Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "getSetterSignature", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class MappedKotlinProperty extends JvmPropertySignature {
|
||||
private final JvmFunctionSignature.KotlinFunction getterSignature;
|
||||
private final JvmFunctionSignature.KotlinFunction setterSignature;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public MappedKotlinProperty(JvmFunctionSignature.KotlinFunction getterSignature, JvmFunctionSignature.KotlinFunction kotlinFunction) {
|
||||
super(null);
|
||||
Intrinsics.checkNotNullParameter(getterSignature, "getterSignature");
|
||||
this.getterSignature = getterSignature;
|
||||
this.setterSignature = kotlinFunction;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
|
||||
/* renamed from: asString */
|
||||
public String getString() {
|
||||
return this.getterSignature.get_signature();
|
||||
}
|
||||
|
||||
public final JvmFunctionSignature.KotlinFunction getGetterSignature() {
|
||||
return this.getterSignature;
|
||||
}
|
||||
|
||||
public final JvmFunctionSignature.KotlinFunction getSetterSignature() {
|
||||
return this.setterSignature;
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ JvmPropertySignature(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
/* renamed from: asString */
|
||||
public abstract String getString();
|
||||
|
||||
private JvmPropertySignature() {
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,43 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class KClassImpl$getLocalProperty$2$1$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Property, PropertyDescriptor> {
|
||||
public static final KClassImpl$getLocalProperty$2$1$1 INSTANCE = new KClassImpl$getLocalProperty$2$1$1();
|
||||
|
||||
public KClassImpl$getLocalProperty$2$1$1() {
|
||||
super(2);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "loadProperty";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "loadProperty(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;)Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final PropertyDescriptor invoke(MemberDeserializer p02, ProtoBuf.Property p12) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
Intrinsics.checkNotNullParameter(p12, "p1");
|
||||
return p02.loadProperty(p12);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b`\u0018\u00002\u00020\u0001R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KClassifierImpl;", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassifierDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/ClassifierDescriptor;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface KClassifierImpl {
|
||||
ClassifierDescriptor getDescriptor();
|
||||
}
|
||||
@@ -0,0 +1,545 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import C.w;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.SortedMap;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.collections.MapsKt__MapsJVMKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.ClassBasedDeclarationContainer;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectJavaClassFinderKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.renderer.DescriptorRenderer;
|
||||
import kotlin.text.MatchResult;
|
||||
import kotlin.text.Regex;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0088\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010!\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\b\n\b \u0018\u0000 <2\u00020\u0001:\u0003<=>B\u0005¢\u0006\u0002\u0010\u0002J*\u0010\f\u001a\u00020\r2\u0010\u0010\u000e\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0\u000f2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0013H\u0002J\u0014\u0010\u0014\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00152\u0006\u0010\u0010\u001a\u00020\u0011J\u0014\u0010\u0016\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00152\u0006\u0010\u0010\u001a\u00020\u0011J \u0010\u0017\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u001a\u001a\u00020\u0013J\u0016\u0010\u001b\u001a\u00020\u001c2\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u001d\u001a\u00020\u0011J\u0018\u0010\u001e\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u0011J\u0016\u0010\u001f\u001a\u00020 2\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u001d\u001a\u00020\u0011J\u0016\u0010!\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00042\u0006\u0010\u0019\u001a\u00020\"H&J\u0012\u0010#\u001a\u0004\u0018\u00010 2\u0006\u0010$\u001a\u00020%H&J\"\u0010&\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0\u00042\u0006\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020+H\u0004J\u0016\u0010,\u001a\b\u0012\u0004\u0012\u00020 0\u00042\u0006\u0010\u0019\u001a\u00020\"H&J\u001a\u0010-\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0.2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002J\u0014\u0010/\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002J$\u00100\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u00101\u001a\u00020%2\u0006\u00102\u001a\u00020%H\u0002JE\u00103\u001a\u0004\u0018\u00010\u0018*\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0019\u001a\u00020\u00112\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t052\n\u00106\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u00107\u001a\u00020\u0013H\u0002¢\u0006\u0002\u00108J(\u00109\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0015*\u0006\u0012\u0002\b\u00030\t2\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0.H\u0002J=\u0010:\u001a\u0004\u0018\u00010\u0018*\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0019\u001a\u00020\u00112\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t052\n\u00106\u001a\u0006\u0012\u0002\b\u00030\tH\u0002¢\u0006\u0002\u0010;R\u0018\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0018\u0010\b\u001a\u0006\u0012\u0002\b\u00030\t8TX\u0094\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b¨\u0006?"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "Lkotlin/jvm/internal/ClassBasedDeclarationContainer;", "()V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", "methodOwner", "Ljava/lang/Class;", "getMethodOwner", "()Ljava/lang/Class;", "addParametersAndMasks", "", "result", "", "desc", "", "isConstructor", "", "findConstructorBySignature", "Ljava/lang/reflect/Constructor;", "findDefaultConstructor", "findDefaultMethod", "Ljava/lang/reflect/Method;", AppMeasurementSdk.ConditionalUserProperty.NAME, "isMember", "findFunctionDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "signature", "findMethodBySignature", "findPropertyDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", FirebaseAnalytics.Param.INDEX, "", "getMembers", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "belonginess", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$MemberBelonginess;", "getProperties", "loadParameterTypes", "", "loadReturnType", "parseType", "begin", "end", "lookupMethod", "parameterTypes", "", "returnType", "isStaticDefault", "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;Z)Ljava/lang/reflect/Method;", "tryGetConstructor", "tryGetMethod", "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Method;", "Companion", "Data", "MemberBelonginess", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKDeclarationContainerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KDeclarationContainerImpl.kt\nkotlin/reflect/jvm/internal/KDeclarationContainerImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 5 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 6 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,314:1\n1603#2,9:315\n1855#2:324\n1856#2:326\n1612#2:327\n766#2:328\n857#2,2:329\n1477#2:331\n1502#2,3:332\n1505#2,3:342\n766#2:345\n857#2,2:346\n766#2:348\n857#2,2:349\n1#3:325\n1#3:351\n372#4,7:335\n1282#5,2:352\n37#6,2:354\n37#6,2:356\n37#6,2:358\n*S KotlinDebug\n*F\n+ 1 KDeclarationContainerImpl.kt\nkotlin/reflect/jvm/internal/KDeclarationContainerImpl\n*L\n58#1:315,9\n58#1:324\n58#1:326\n58#1:327\n83#1:328\n83#1:329,2\n103#1:331\n103#1:332,3\n103#1:342,3\n128#1:345\n128#1:346,2\n142#1:348\n142#1:349,2\n58#1:325\n103#1:335,7\n197#1:352,2\n207#1:354,2\n215#1:356,2\n239#1:358,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class KDeclarationContainerImpl implements ClassBasedDeclarationContainer {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final Class<?> DEFAULT_CONSTRUCTOR_MARKER = DefaultConstructorMarker.class;
|
||||
private static final Regex LOCAL_PROPERTY_SIGNATURE = new Regex("<v#(\\d+)>");
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001e\u0010\u0003\u001a\u0012\u0012\u0002\b\u0003 \u0005*\b\u0012\u0002\b\u0003\u0018\u00010\u00040\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u0007X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Companion;", "", "()V", "DEFAULT_CONSTRUCTOR_MARKER", "Ljava/lang/Class;", "kotlin.jvm.PlatformType", "LOCAL_PROPERTY_SIGNATURE", "Lkotlin/text/Regex;", "getLOCAL_PROPERTY_SIGNATURE$kotlin_reflection", "()Lkotlin/text/Regex;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final Regex getLOCAL_PROPERTY_SIGNATURE$kotlin_reflection() {
|
||||
return KDeclarationContainerImpl.LOCAL_PROPERTY_SIGNATURE;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b¦\u0004\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002R\u001b\u0010\u0003\u001a\u00020\u00048FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Data;", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;)V", "moduleData", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/RuntimeModuleData;", "getModuleData", "()Lorg/jetbrains/kotlin/descriptors/runtime/components/RuntimeModuleData;", "moduleData$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class Data {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "moduleData", "getModuleData()Lorg/jetbrains/kotlin/descriptors/runtime/components/RuntimeModuleData;"))};
|
||||
|
||||
/* renamed from: moduleData$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal moduleData;
|
||||
|
||||
public Data() {
|
||||
this.moduleData = ReflectProperties.lazySoft(new Function0<RuntimeModuleData>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$Data$moduleData$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final RuntimeModuleData invoke() {
|
||||
return ModuleByClassLoaderKt.getOrCreateModule(KDeclarationContainerImpl.this.getJClass());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final RuntimeModuleData getModuleData() {
|
||||
T value = this.moduleData.getValue(this, $$delegatedProperties[0]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (RuntimeModuleData) value;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0084\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006j\u0002\b\u0007j\u0002\b\b¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$MemberBelonginess;", "", "(Ljava/lang/String;I)V", "accept", "", "member", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "DECLARED", "INHERITED", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class MemberBelonginess {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ MemberBelonginess[] $VALUES;
|
||||
public static final MemberBelonginess DECLARED = new MemberBelonginess("DECLARED", 0);
|
||||
public static final MemberBelonginess INHERITED = new MemberBelonginess("INHERITED", 1);
|
||||
|
||||
private static final /* synthetic */ MemberBelonginess[] $values() {
|
||||
return new MemberBelonginess[]{DECLARED, INHERITED};
|
||||
}
|
||||
|
||||
static {
|
||||
MemberBelonginess[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private MemberBelonginess(String str, int i) {
|
||||
}
|
||||
|
||||
public static MemberBelonginess valueOf(String str) {
|
||||
return (MemberBelonginess) Enum.valueOf(MemberBelonginess.class, str);
|
||||
}
|
||||
|
||||
public static MemberBelonginess[] values() {
|
||||
return (MemberBelonginess[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final boolean accept(CallableMemberDescriptor member) {
|
||||
Intrinsics.checkNotNullParameter(member, "member");
|
||||
return member.getKind().isReal() == (this == DECLARED);
|
||||
}
|
||||
}
|
||||
|
||||
private final void addParametersAndMasks(List<Class<?>> result, String desc, boolean isConstructor) {
|
||||
List<Class<?>> loadParameterTypes = loadParameterTypes(desc);
|
||||
result.addAll(loadParameterTypes);
|
||||
int size = (loadParameterTypes.size() + 31) / 32;
|
||||
for (int i = 0; i < size; i++) {
|
||||
Class<?> TYPE = Integer.TYPE;
|
||||
Intrinsics.checkNotNullExpressionValue(TYPE, "TYPE");
|
||||
result.add(TYPE);
|
||||
}
|
||||
if (!isConstructor) {
|
||||
result.add(Object.class);
|
||||
return;
|
||||
}
|
||||
Class<?> DEFAULT_CONSTRUCTOR_MARKER2 = DEFAULT_CONSTRUCTOR_MARKER;
|
||||
result.remove(DEFAULT_CONSTRUCTOR_MARKER2);
|
||||
Intrinsics.checkNotNullExpressionValue(DEFAULT_CONSTRUCTOR_MARKER2, "DEFAULT_CONSTRUCTOR_MARKER");
|
||||
result.add(DEFAULT_CONSTRUCTOR_MARKER2);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final int findPropertyDescriptor$lambda$3(Function2 tmp0, Object obj, Object obj2) {
|
||||
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
|
||||
return ((Number) tmp0.invoke(obj, obj2)).intValue();
|
||||
}
|
||||
|
||||
private final List<Class<?>> loadParameterTypes(String desc) {
|
||||
boolean contains$default;
|
||||
int indexOf$default;
|
||||
int i;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i4 = 1;
|
||||
while (desc.charAt(i4) != ')') {
|
||||
int i5 = i4;
|
||||
while (desc.charAt(i5) == '[') {
|
||||
i5++;
|
||||
}
|
||||
char charAt = desc.charAt(i5);
|
||||
contains$default = StringsKt__StringsKt.contains$default("VZCBSIFJD", charAt, false, 2, (Object) null);
|
||||
if (contains$default) {
|
||||
i = i5 + 1;
|
||||
} else {
|
||||
if (charAt != 'L') {
|
||||
throw new KotlinReflectionInternalError("Unknown type prefix in the method signature: ".concat(desc));
|
||||
}
|
||||
indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) desc, ';', i4, false, 4, (Object) null);
|
||||
i = indexOf$default + 1;
|
||||
}
|
||||
arrayList.add(parseType(desc, i4, i));
|
||||
i4 = i;
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
private final Class<?> loadReturnType(String desc) {
|
||||
int indexOf$default;
|
||||
indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) desc, ')', 0, false, 6, (Object) null);
|
||||
return parseType(desc, indexOf$default + 1, desc.length());
|
||||
}
|
||||
|
||||
private final Method lookupMethod(Class<?> cls, String str, Class<?>[] clsArr, Class<?> cls2, boolean z3) {
|
||||
KDeclarationContainerImpl kDeclarationContainerImpl;
|
||||
String str2;
|
||||
Class<?>[] clsArr2;
|
||||
Class<?> cls3;
|
||||
boolean z4;
|
||||
Class<?> tryLoadClass;
|
||||
if (z3) {
|
||||
clsArr[0] = cls;
|
||||
}
|
||||
Method tryGetMethod = tryGetMethod(cls, str, clsArr, cls2);
|
||||
if (tryGetMethod != null) {
|
||||
return tryGetMethod;
|
||||
}
|
||||
Class<? super Object> superclass = cls.getSuperclass();
|
||||
if (superclass != null) {
|
||||
Method lookupMethod = lookupMethod(superclass, str, clsArr, cls2, z3);
|
||||
kDeclarationContainerImpl = this;
|
||||
str2 = str;
|
||||
clsArr2 = clsArr;
|
||||
cls3 = cls2;
|
||||
z4 = z3;
|
||||
if (lookupMethod != null) {
|
||||
return lookupMethod;
|
||||
}
|
||||
} else {
|
||||
kDeclarationContainerImpl = this;
|
||||
str2 = str;
|
||||
clsArr2 = clsArr;
|
||||
cls3 = cls2;
|
||||
z4 = z3;
|
||||
}
|
||||
Class<?>[] interfaces = cls.getInterfaces();
|
||||
Intrinsics.checkNotNullExpressionValue(interfaces, "getInterfaces(...)");
|
||||
for (Class<?> cls4 : interfaces) {
|
||||
Intrinsics.checkNotNull(cls4);
|
||||
Method lookupMethod2 = kDeclarationContainerImpl.lookupMethod(cls4, str2, clsArr2, cls3, z4);
|
||||
if (lookupMethod2 != null) {
|
||||
return lookupMethod2;
|
||||
}
|
||||
if (z4 && (tryLoadClass = ReflectJavaClassFinderKt.tryLoadClass(ReflectClassUtilKt.getSafeClassLoader(cls4), cls4.getName().concat("$DefaultImpls"))) != null) {
|
||||
clsArr2[0] = cls4;
|
||||
Method tryGetMethod2 = kDeclarationContainerImpl.tryGetMethod(tryLoadClass, str2, clsArr2, cls3);
|
||||
if (tryGetMethod2 != null) {
|
||||
return tryGetMethod2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final Class<?> parseType(String desc, int begin, int end) {
|
||||
String replace$default;
|
||||
char charAt = desc.charAt(begin);
|
||||
if (charAt == 'L') {
|
||||
ClassLoader safeClassLoader = ReflectClassUtilKt.getSafeClassLoader(getJClass());
|
||||
String substring = desc.substring(begin + 1, end - 1);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
replace$default = StringsKt__StringsJVMKt.replace$default(substring, '/', '.', false, 4, (Object) null);
|
||||
Class<?> loadClass = safeClassLoader.loadClass(replace$default);
|
||||
Intrinsics.checkNotNullExpressionValue(loadClass, "loadClass(...)");
|
||||
return loadClass;
|
||||
}
|
||||
if (charAt == '[') {
|
||||
return UtilKt.createArrayType(parseType(desc, begin + 1, end));
|
||||
}
|
||||
if (charAt == 'V') {
|
||||
Class<?> TYPE = Void.TYPE;
|
||||
Intrinsics.checkNotNullExpressionValue(TYPE, "TYPE");
|
||||
return TYPE;
|
||||
}
|
||||
if (charAt == 'Z') {
|
||||
return Boolean.TYPE;
|
||||
}
|
||||
if (charAt == 'C') {
|
||||
return Character.TYPE;
|
||||
}
|
||||
if (charAt == 'B') {
|
||||
return Byte.TYPE;
|
||||
}
|
||||
if (charAt == 'S') {
|
||||
return Short.TYPE;
|
||||
}
|
||||
if (charAt == 'I') {
|
||||
return Integer.TYPE;
|
||||
}
|
||||
if (charAt == 'F') {
|
||||
return Float.TYPE;
|
||||
}
|
||||
if (charAt == 'J') {
|
||||
return Long.TYPE;
|
||||
}
|
||||
if (charAt == 'D') {
|
||||
return Double.TYPE;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Unknown type prefix in the method signature: ".concat(desc));
|
||||
}
|
||||
|
||||
private final Constructor<?> tryGetConstructor(Class<?> cls, List<? extends Class<?>> list) {
|
||||
try {
|
||||
Class[] clsArr = (Class[]) list.toArray(new Class[0]);
|
||||
return cls.getDeclaredConstructor((Class[]) Arrays.copyOf(clsArr, clsArr.length));
|
||||
} catch (NoSuchMethodException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private final Method tryGetMethod(Class<?> cls, String str, Class<?>[] clsArr, Class<?> cls2) {
|
||||
Method declaredMethod;
|
||||
try {
|
||||
declaredMethod = cls.getDeclaredMethod(str, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
|
||||
} catch (NoSuchMethodException unused) {
|
||||
}
|
||||
if (Intrinsics.areEqual(declaredMethod.getReturnType(), cls2)) {
|
||||
return declaredMethod;
|
||||
}
|
||||
Method[] declaredMethods = cls.getDeclaredMethods();
|
||||
Intrinsics.checkNotNullExpressionValue(declaredMethods, "getDeclaredMethods(...)");
|
||||
for (Method method : declaredMethods) {
|
||||
if (Intrinsics.areEqual(method.getName(), str) && Intrinsics.areEqual(method.getReturnType(), cls2) && Arrays.equals(method.getParameterTypes(), clsArr)) {
|
||||
return method;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final Constructor<?> findConstructorBySignature(String desc) {
|
||||
Intrinsics.checkNotNullParameter(desc, "desc");
|
||||
return tryGetConstructor(getJClass(), loadParameterTypes(desc));
|
||||
}
|
||||
|
||||
public final Constructor<?> findDefaultConstructor(String desc) {
|
||||
Intrinsics.checkNotNullParameter(desc, "desc");
|
||||
Class<?> jClass = getJClass();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
addParametersAndMasks(arrayList, desc, true);
|
||||
Unit unit = Unit.INSTANCE;
|
||||
return tryGetConstructor(jClass, arrayList);
|
||||
}
|
||||
|
||||
public final Method findDefaultMethod(String name, String desc, boolean isMember) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(desc, "desc");
|
||||
if (Intrinsics.areEqual(name, "<init>")) {
|
||||
return null;
|
||||
}
|
||||
ArrayList arrayList = new ArrayList();
|
||||
if (isMember) {
|
||||
arrayList.add(getJClass());
|
||||
}
|
||||
addParametersAndMasks(arrayList, desc, false);
|
||||
return lookupMethod(getMethodOwner(), w.n(name, "$default"), (Class[]) arrayList.toArray(new Class[0]), loadReturnType(desc), isMember);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:17:0x00b7 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x002a A[SYNTHETIC] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor findFunctionDescriptor(java.lang.String r11, java.lang.String r12) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 334
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.findFunctionDescriptor(java.lang.String, java.lang.String):kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor");
|
||||
}
|
||||
|
||||
public final Method findMethodBySignature(String name, String desc) {
|
||||
Method lookupMethod;
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(desc, "desc");
|
||||
if (Intrinsics.areEqual(name, "<init>")) {
|
||||
return null;
|
||||
}
|
||||
Class<?>[] clsArr = (Class[]) loadParameterTypes(desc).toArray(new Class[0]);
|
||||
Class<?> loadReturnType = loadReturnType(desc);
|
||||
Method lookupMethod2 = lookupMethod(getMethodOwner(), name, clsArr, loadReturnType, false);
|
||||
if (lookupMethod2 != null) {
|
||||
return lookupMethod2;
|
||||
}
|
||||
if (!getMethodOwner().isInterface() || (lookupMethod = lookupMethod(Object.class, name, clsArr, loadReturnType, false)) == null) {
|
||||
return null;
|
||||
}
|
||||
return lookupMethod;
|
||||
}
|
||||
|
||||
public final PropertyDescriptor findPropertyDescriptor(String name, String signature) {
|
||||
SortedMap sortedMap;
|
||||
String joinToString$default;
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
MatchResult matchEntire = LOCAL_PROPERTY_SIGNATURE.matchEntire(signature);
|
||||
if (matchEntire != null) {
|
||||
String str = matchEntire.getDestructured().getMatch().getGroupValues().get(1);
|
||||
PropertyDescriptor localProperty = getLocalProperty(Integer.parseInt(str));
|
||||
if (localProperty != null) {
|
||||
return localProperty;
|
||||
}
|
||||
StringBuilder p = com.google.android.gms.measurement.internal.a.p("Local property #", str, " not found in ");
|
||||
p.append(getJClass());
|
||||
throw new KotlinReflectionInternalError(p.toString());
|
||||
}
|
||||
Name identifier = Name.identifier(name);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
Collection<PropertyDescriptor> properties = getProperties(identifier);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : properties) {
|
||||
if (Intrinsics.areEqual(RuntimeTypeMapper.INSTANCE.mapPropertySignature((PropertyDescriptor) obj).getString(), signature)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
if (arrayList.isEmpty()) {
|
||||
throw new KotlinReflectionInternalError("Property '" + name + "' (JVM signature: " + signature + ") not resolved in " + this);
|
||||
}
|
||||
if (arrayList.size() == 1) {
|
||||
return (PropertyDescriptor) CollectionsKt.single((List) arrayList);
|
||||
}
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
DescriptorVisibility visibility = ((PropertyDescriptor) next).getVisibility();
|
||||
Object obj2 = linkedHashMap.get(visibility);
|
||||
if (obj2 == null) {
|
||||
obj2 = new ArrayList();
|
||||
linkedHashMap.put(visibility, obj2);
|
||||
}
|
||||
((List) obj2).add(next);
|
||||
}
|
||||
final KDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2 kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2 = new Function2<DescriptorVisibility, DescriptorVisibility, Integer>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Integer invoke(DescriptorVisibility descriptorVisibility, DescriptorVisibility descriptorVisibility2) {
|
||||
Integer compare = DescriptorVisibilities.compare(descriptorVisibility, descriptorVisibility2);
|
||||
return Integer.valueOf(compare == null ? 0 : compare.intValue());
|
||||
}
|
||||
};
|
||||
sortedMap = MapsKt__MapsJVMKt.toSortedMap(linkedHashMap, new Comparator(kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2) { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$$Lambda$0
|
||||
private final Function2 arg$0;
|
||||
|
||||
{
|
||||
this.arg$0 = kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2;
|
||||
}
|
||||
|
||||
@Override // java.util.Comparator
|
||||
public int compare(Object obj3, Object obj4) {
|
||||
int findPropertyDescriptor$lambda$3;
|
||||
findPropertyDescriptor$lambda$3 = KDeclarationContainerImpl.findPropertyDescriptor$lambda$3(this.arg$0, obj3, obj4);
|
||||
return findPropertyDescriptor$lambda$3;
|
||||
}
|
||||
});
|
||||
Collection values = sortedMap.values();
|
||||
Intrinsics.checkNotNullExpressionValue(values, "<get-values>(...)");
|
||||
List list = (List) CollectionsKt.last(values);
|
||||
if (list.size() == 1) {
|
||||
Intrinsics.checkNotNull(list);
|
||||
return (PropertyDescriptor) CollectionsKt.first(list);
|
||||
}
|
||||
Name identifier2 = Name.identifier(name);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
|
||||
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(getProperties(identifier2), "\n", null, null, 0, null, new Function1<PropertyDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$findPropertyDescriptor$allMembers$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(PropertyDescriptor descriptor) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
return DescriptorRenderer.DEBUG_TEXT.render(descriptor) + " | " + RuntimeTypeMapper.INSTANCE.mapPropertySignature(descriptor).getString();
|
||||
}
|
||||
}, 30, null);
|
||||
StringBuilder sb = new StringBuilder("Property '");
|
||||
sb.append(name);
|
||||
sb.append("' (JVM signature: ");
|
||||
sb.append(signature);
|
||||
sb.append(") not resolved in ");
|
||||
sb.append(this);
|
||||
sb.append(':');
|
||||
sb.append(joinToString$default.length() == 0 ? " no members found" : "\n".concat(joinToString$default));
|
||||
throw new KotlinReflectionInternalError(sb.toString());
|
||||
}
|
||||
|
||||
public abstract Collection<ConstructorDescriptor> getConstructorDescriptors();
|
||||
|
||||
public abstract Collection<FunctionDescriptor> getFunctions(Name name);
|
||||
|
||||
public abstract PropertyDescriptor getLocalProperty(int index);
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x0051 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0020 A[SYNTHETIC] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.util.Collection<kotlin.reflect.jvm.internal.KCallableImpl<?>> getMembers(kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope r7, kotlin.reflect.jvm.internal.KDeclarationContainerImpl.MemberBelonginess r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.String r0 = "scope"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
|
||||
java.lang.String r0 = "belonginess"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
kotlin.reflect.jvm.internal.KDeclarationContainerImpl$getMembers$visitor$1 r0 = new kotlin.reflect.jvm.internal.KDeclarationContainerImpl$getMembers$visitor$1
|
||||
r0.<init>(r6)
|
||||
r6 = 3
|
||||
r1 = 0
|
||||
java.util.Collection r6 = kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope.DefaultImpls.getContributedDescriptors$default(r7, r1, r1, r6, r1)
|
||||
java.lang.Iterable r6 = (java.lang.Iterable) r6
|
||||
java.util.ArrayList r7 = new java.util.ArrayList
|
||||
r7.<init>()
|
||||
java.util.Iterator r6 = r6.iterator()
|
||||
L20:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L55
|
||||
java.lang.Object r2 = r6.next()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r2 = (kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor) r2
|
||||
boolean r3 = r2 instanceof kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor
|
||||
if (r3 == 0) goto L4e
|
||||
r3 = r2
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor) r3
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility r4 = r3.getVisibility()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility r5 = kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities.INVISIBLE_FAKE
|
||||
boolean r4 = kotlin.jvm.internal.Intrinsics.areEqual(r4, r5)
|
||||
if (r4 != 0) goto L4e
|
||||
boolean r3 = r8.accept(r3)
|
||||
if (r3 == 0) goto L4e
|
||||
kotlin.Unit r3 = kotlin.Unit.INSTANCE
|
||||
java.lang.Object r2 = r2.accept(r0, r3)
|
||||
kotlin.reflect.jvm.internal.KCallableImpl r2 = (kotlin.reflect.jvm.internal.KCallableImpl) r2
|
||||
goto L4f
|
||||
L4e:
|
||||
r2 = r1
|
||||
L4f:
|
||||
if (r2 == 0) goto L20
|
||||
r7.add(r2)
|
||||
goto L20
|
||||
L55:
|
||||
java.util.List r6 = kotlin.collections.CollectionsKt.toList(r7)
|
||||
java.util.Collection r6 = (java.util.Collection) r6
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.getMembers(kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope, kotlin.reflect.jvm.internal.KDeclarationContainerImpl$MemberBelonginess):java.util.Collection");
|
||||
}
|
||||
|
||||
public Class<?> getMethodOwner() {
|
||||
Class<?> wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(getJClass());
|
||||
return wrapperByPrimitive == null ? getJClass() : wrapperByPrimitive;
|
||||
}
|
||||
|
||||
public abstract Collection<PropertyDescriptor> getProperties(Name name);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,101 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KMutableProperty0;
|
||||
import kotlin.reflect.jvm.internal.KMutableProperty0Impl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u0019B\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\b\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\u0002\u0010\u000eJ\u0015\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0018R\u001a\u0010\u000f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0012\u001a\b\u0012\u0004\u0012\u00028\u00000\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "V", "Lkotlin/reflect/jvm/internal/KProperty0Impl;", "Lkotlin/reflect/KMutableProperty0;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "set", "", "value", "(Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KMutableProperty0Impl<V> extends KProperty0Impl<V> implements KMutableProperty0<V> {
|
||||
private final Lazy<Setter<V>> _setter;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0003\u0018\u0000*\u0004\b\u0001\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0013\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005¢\u0006\u0002\u0010\u0006J\u0016\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\fR\u001a\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "R", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty0$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "invoke", "", "value", "(Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Setter<R> extends KPropertyImpl.Setter<R> implements KMutableProperty0.Setter<R> {
|
||||
private final KMutableProperty0Impl<R> property;
|
||||
|
||||
public Setter(KMutableProperty0Impl<R> property) {
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Object obj) {
|
||||
invoke2((Setter<R>) obj);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
||||
public KMutableProperty0Impl<R> getProperty() {
|
||||
return this.property;
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public void invoke2(R value) {
|
||||
getProperty().set(value);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty0Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
|
||||
super(container, descriptor);
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty0Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty0Impl<V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty0Impl.Setter<V> invoke() {
|
||||
return new KMutableProperty0Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty0
|
||||
public void set(V value) {
|
||||
getSetter().call(value);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty0Impl(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");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty0Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty0Impl<V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty0Impl.Setter<V> invoke() {
|
||||
return new KMutableProperty0Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty0, kotlin.reflect.KMutableProperty
|
||||
public Setter<V> getSetter() {
|
||||
return this._setter.getValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KMutableProperty1;
|
||||
import kotlin.reflect.jvm.internal.KMutableProperty1Impl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000D\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\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0005\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u001bB)\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\u001d\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\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 \u0010\u0013\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "T", "V", "Lkotlin/reflect/jvm/internal/KProperty1Impl;", "Lkotlin/reflect/KMutableProperty1;", "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", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "set", "", "receiver", "value", "(Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KMutableProperty1Impl<T, V> extends KProperty1Impl<T, V> implements KMutableProperty1<T, V> {
|
||||
private final Lazy<Setter<T, V>> _setter;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\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\u0004\n\u0002\u0010\u0002\n\u0002\b\u0004\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0004\b\u0003\u0010\u00022\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\u001e\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00028\u00022\u0006\u0010\r\u001a\u00028\u0003H\u0096\u0002¢\u0006\u0002\u0010\u000eR \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\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "T", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty1$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "invoke", "", "receiver", "value", "(Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Setter<T, V> extends KPropertyImpl.Setter<V> implements KMutableProperty1.Setter<T, V> {
|
||||
private final KMutableProperty1Impl<T, V> property;
|
||||
|
||||
public Setter(KMutableProperty1Impl<T, V> property) {
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Object obj, Object obj2) {
|
||||
invoke2((Setter<T, V>) obj, obj2);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
||||
public KMutableProperty1Impl<T, V> getProperty() {
|
||||
return this.property;
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public void invoke2(T receiver, V value) {
|
||||
getProperty().set(receiver, value);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty1Impl(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");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<T, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty1Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty1Impl<T, V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty1Impl.Setter<T, V> invoke() {
|
||||
return new KMutableProperty1Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty1
|
||||
public void set(T receiver, V value) {
|
||||
getSetter().call(receiver, value);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty1Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
|
||||
super(container, descriptor);
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<T, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty1Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty1Impl<T, V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty1Impl.Setter<T, V> invoke() {
|
||||
return new KMutableProperty1Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty1, kotlin.reflect.KMutableProperty
|
||||
public Setter<T, V> getSetter() {
|
||||
return this._setter.getValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KMutableProperty2;
|
||||
import kotlin.reflect.jvm.internal.KMutableProperty2Impl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0006\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0004\b\u0002\u0010\u00032\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u001bB\u001f\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ%\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00028\u00002\u0006\u0010\u0018\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0002H\u0016¢\u0006\u0002\u0010\u001aR&\u0010\u000f\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\u0012\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KProperty2Impl;", "Lkotlin/reflect/KMutableProperty2;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "set", "", "receiver1", "receiver2", "value", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KMutableProperty2Impl<D, E, V> extends KProperty2Impl<D, E, V> implements KMutableProperty2<D, E, V> {
|
||||
private final Lazy<Setter<D, E, V>> _setter;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0004\b\u0005\u0010\u00032\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005B\u001f\u0012\u0018\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007¢\u0006\u0002\u0010\bJ&\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00028\u00032\u0006\u0010\u000e\u001a\u00028\u00042\u0006\u0010\u000f\u001a\u00028\u0005H\u0096\u0002¢\u0006\u0002\u0010\u0010R&\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty2$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "invoke", "", "receiver1", "receiver2", "value", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Setter<D, E, V> extends KPropertyImpl.Setter<V> implements KMutableProperty2.Setter<D, E, V> {
|
||||
private final KMutableProperty2Impl<D, E, V> property;
|
||||
|
||||
public Setter(KMutableProperty2Impl<D, E, V> property) {
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Unit invoke(Object obj, Object obj2, Object obj3) {
|
||||
invoke2((Setter<D, E, V>) obj, obj2, obj3);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
||||
public KMutableProperty2Impl<D, E, V> getProperty() {
|
||||
return this.property;
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public void invoke2(D receiver1, E receiver2, V value) {
|
||||
getProperty().set(receiver1, receiver2, value);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty2Impl(KDeclarationContainerImpl container, String name, String signature) {
|
||||
super(container, name, signature);
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<D, E, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty2Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty2Impl<D, E, V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty2Impl.Setter<D, E, V> invoke() {
|
||||
return new KMutableProperty2Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty2
|
||||
public void set(D receiver1, E receiver2, V value) {
|
||||
getSetter().call(receiver1, receiver2, value);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KMutableProperty2Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
|
||||
super(container, descriptor);
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<D, E, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty2Impl$_setter$1
|
||||
final /* synthetic */ KMutableProperty2Impl<D, E, V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KMutableProperty2Impl.Setter<D, E, V> invoke() {
|
||||
return new KMutableProperty2Impl.Setter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KMutableProperty2, kotlin.reflect.KMutableProperty
|
||||
public Setter<D, E, V> getSetter() {
|
||||
return this._setter.getValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class KPackageImpl$getLocalProperty$1$1$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Property, PropertyDescriptor> {
|
||||
public static final KPackageImpl$getLocalProperty$1$1$1 INSTANCE = new KPackageImpl$getLocalProperty$1$1$1();
|
||||
|
||||
public KPackageImpl$getLocalProperty$1$1$1() {
|
||||
super(2);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "loadProperty";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "loadProperty(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;)Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final PropertyDescriptor invoke(MemberDeserializer p02, ProtoBuf.Property p12) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
Intrinsics.checkNotNullParameter(p12, "p1");
|
||||
return p02.loadProperty(p12);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,265 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.Triple;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.KDeclarationContainerImpl;
|
||||
import kotlin.reflect.jvm.internal.KPackageImpl;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMetadataVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0000\u0018\u00002\u00020\u0001:\u0001(B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0018\u001a\u00020\u00192\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bH\u0096\u0002J\u0016\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001d0\u00062\u0006\u0010\u001e\u001a\u00020\u001fH\u0016J\u0012\u0010 \u001a\u0004\u0018\u00010!2\u0006\u0010\"\u001a\u00020#H\u0016J\u0016\u0010$\u001a\b\u0012\u0004\u0012\u00020!0\u00062\u0006\u0010\u001e\u001a\u00020\u001fH\u0016J\b\u0010%\u001a\u00020#H\u0016J\b\u0010&\u001a\u00020'H\u0016R\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0018\u0010\n\u001a\f\u0012\b\u0012\u00060\fR\u00020\u00000\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u001e\u0010\u000f\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00100\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\tR\u0018\u0010\u0012\u001a\u0006\u0012\u0002\b\u00030\u00038TX\u0094\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u000eR\u0014\u0010\u0014\u001a\u00020\u00158BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006)"}, d2 = {"Lkotlin/reflect/jvm/internal/KPackageImpl;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KPackageImpl$Data;", "getJClass", "()Ljava/lang/Class;", "members", "Lkotlin/reflect/KCallable;", "getMembers", "methodOwner", "getMethodOwner", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "getScope", "()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;", "equals", "", "other", "", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", AppMeasurementSdk.ConditionalUserProperty.NAME, "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", FirebaseAnalytics.Param.INDEX, "", "getProperties", "hashCode", "toString", "", "Data", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKPackageImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPackageImpl.kt\nkotlin/reflect/jvm/internal/KPackageImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,117:1\n1#2:118\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KPackageImpl extends KDeclarationContainerImpl {
|
||||
private final Lazy<Data> data;
|
||||
private final Class<?> jClass;
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0082\u0004\u0018\u00002\u00060\u0001R\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003R\u001d\u0010\u0004\u001a\u0004\u0018\u00010\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\b\u0010\t\u001a\u0004\b\u0006\u0010\u0007R%\u0010\n\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\f0\u000b8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\t\u001a\u0004\b\r\u0010\u000eR/\u0010\u0010\u001a\u0016\u0012\u0004\u0012\u00020\u0012\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u00118FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0015\u0010\u0016R!\u0010\u0019\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001a8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u0018\u001a\u0004\b\u001b\u0010\u001cR\u001b\u0010\u001e\u001a\u00020\u001f8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\"\u0010\t\u001a\u0004\b \u0010!¨\u0006#"}, d2 = {"Lkotlin/reflect/jvm/internal/KPackageImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "(Lkotlin/reflect/jvm/internal/KPackageImpl;)V", "kotlinClass", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/ReflectKotlinClass;", "getKotlinClass", "()Lorg/jetbrains/kotlin/descriptors/runtime/components/ReflectKotlinClass;", "kotlinClass$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "members", "", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "getMembers", "()Ljava/util/Collection;", "members$delegate", "metadata", "Lkotlin/Triple;", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmNameResolver;", "Lkotlin/reflect/jvm/internal/impl/metadata/ProtoBuf$Package;", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMetadataVersion;", "getMetadata", "()Lkotlin/Triple;", "metadata$delegate", "Lkotlin/Lazy;", "multifileFacade", "Ljava/lang/Class;", "getMultifileFacade", "()Ljava/lang/Class;", "multifileFacade$delegate", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "getScope", "()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;", "scope$delegate", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Data extends KDeclarationContainerImpl.Data {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "kotlinClass", "getKotlinClass()Lorg/jetbrains/kotlin/descriptors/runtime/components/ReflectKotlinClass;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "scope", "getScope()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "members", "getMembers()Ljava/util/Collection;"))};
|
||||
|
||||
/* renamed from: kotlinClass$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal kotlinClass;
|
||||
|
||||
/* renamed from: members$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal members;
|
||||
|
||||
/* renamed from: metadata$delegate, reason: from kotlin metadata */
|
||||
private final Lazy metadata;
|
||||
|
||||
/* renamed from: multifileFacade$delegate, reason: from kotlin metadata */
|
||||
private final Lazy multifileFacade;
|
||||
|
||||
/* renamed from: scope$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal scope;
|
||||
|
||||
public Data() {
|
||||
super();
|
||||
this.kotlinClass = ReflectProperties.lazySoft(new Function0<ReflectKotlinClass>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$kotlinClass$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final ReflectKotlinClass invoke() {
|
||||
return ReflectKotlinClass.Factory.create(KPackageImpl.this.getJClass());
|
||||
}
|
||||
});
|
||||
this.scope = ReflectProperties.lazySoft(new Function0<MemberScope>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$scope$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final MemberScope invoke() {
|
||||
ReflectKotlinClass kotlinClass;
|
||||
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
|
||||
if (kotlinClass != null) {
|
||||
return KPackageImpl.Data.this.getModuleData().getPackagePartScopeCache().getPackagePartScope(kotlinClass);
|
||||
}
|
||||
return MemberScope.Empty.INSTANCE;
|
||||
}
|
||||
});
|
||||
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
|
||||
this.multifileFacade = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Class<?>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$multifileFacade$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Class<?> invoke() {
|
||||
ReflectKotlinClass kotlinClass;
|
||||
String replace$default;
|
||||
KotlinClassHeader classHeader;
|
||||
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
|
||||
String multifileClassName = (kotlinClass == null || (classHeader = kotlinClass.getClassHeader()) == null) ? null : classHeader.getMultifileClassName();
|
||||
if (multifileClassName == null || multifileClassName.length() <= 0) {
|
||||
return null;
|
||||
}
|
||||
ClassLoader classLoader = r2.getJClass().getClassLoader();
|
||||
replace$default = StringsKt__StringsJVMKt.replace$default(multifileClassName, '/', '.', false, 4, (Object) null);
|
||||
return classLoader.loadClass(replace$default);
|
||||
}
|
||||
});
|
||||
this.metadata = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Triple<? extends JvmNameResolver, ? extends ProtoBuf.Package, ? extends JvmMetadataVersion>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$metadata$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Triple<? extends JvmNameResolver, ? extends ProtoBuf.Package, ? extends JvmMetadataVersion> invoke() {
|
||||
ReflectKotlinClass kotlinClass;
|
||||
KotlinClassHeader classHeader;
|
||||
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
|
||||
if (kotlinClass != null && (classHeader = kotlinClass.getClassHeader()) != null) {
|
||||
String[] data = classHeader.getData();
|
||||
String[] strings = classHeader.getStrings();
|
||||
if (data != null && strings != null) {
|
||||
Pair<JvmNameResolver, ProtoBuf.Package> readPackageDataFrom = JvmProtoBufUtil.readPackageDataFrom(data, strings);
|
||||
return new Triple<>(readPackageDataFrom.component1(), readPackageDataFrom.component2(), classHeader.getMetadataVersion());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
});
|
||||
this.members = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$members$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Collection<? extends KCallableImpl<?>> invoke() {
|
||||
return KPackageImpl.this.getMembers(this.getScope(), KDeclarationContainerImpl.MemberBelonginess.DECLARED);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final ReflectKotlinClass getKotlinClass() {
|
||||
return (ReflectKotlinClass) this.kotlinClass.getValue(this, $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
public final Collection<KCallableImpl<?>> getMembers() {
|
||||
T value = this.members.getValue(this, $$delegatedProperties[2]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (Collection) value;
|
||||
}
|
||||
|
||||
public final Triple<JvmNameResolver, ProtoBuf.Package, JvmMetadataVersion> getMetadata() {
|
||||
return (Triple) this.metadata.getValue();
|
||||
}
|
||||
|
||||
public final Class<?> getMultifileFacade() {
|
||||
return (Class) this.multifileFacade.getValue();
|
||||
}
|
||||
|
||||
public final MemberScope getScope() {
|
||||
T value = this.scope.getValue(this, $$delegatedProperties[1]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (MemberScope) value;
|
||||
}
|
||||
}
|
||||
|
||||
public KPackageImpl(Class<?> jClass) {
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
this.jClass = jClass;
|
||||
this.data = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Data>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$data$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KPackageImpl.Data invoke() {
|
||||
return new KPackageImpl.Data();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final MemberScope getScope() {
|
||||
return this.data.getValue().getScope();
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof KPackageImpl) && Intrinsics.areEqual(getJClass(), ((KPackageImpl) other).getJClass());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<ConstructorDescriptor> getConstructorDescriptors() {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<FunctionDescriptor> getFunctions(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return getScope().getContributedFunctions(name, NoLookupLocation.FROM_REFLECTION);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ClassBasedDeclarationContainer
|
||||
public Class<?> getJClass() {
|
||||
return this.jClass;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public PropertyDescriptor getLocalProperty(int index) {
|
||||
Triple<JvmNameResolver, ProtoBuf.Package, JvmMetadataVersion> metadata = this.data.getValue().getMetadata();
|
||||
if (metadata != null) {
|
||||
JvmNameResolver component1 = metadata.component1();
|
||||
ProtoBuf.Package component2 = metadata.component2();
|
||||
JvmMetadataVersion component3 = metadata.component3();
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Package, List<ProtoBuf.Property>> packageLocalVariable = JvmProtoBuf.packageLocalVariable;
|
||||
Intrinsics.checkNotNullExpressionValue(packageLocalVariable, "packageLocalVariable");
|
||||
ProtoBuf.Property property = (ProtoBuf.Property) ProtoBufUtilKt.getExtensionOrNull(component2, packageLocalVariable, index);
|
||||
if (property != null) {
|
||||
Class<?> jClass = getJClass();
|
||||
ProtoBuf.TypeTable typeTable = component2.getTypeTable();
|
||||
Intrinsics.checkNotNullExpressionValue(typeTable, "getTypeTable(...)");
|
||||
return (PropertyDescriptor) UtilKt.deserializeToDescriptor(jClass, property, component1, new TypeTable(typeTable), component3, KPackageImpl$getLocalProperty$1$1$1.INSTANCE);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KDeclarationContainer
|
||||
public Collection<KCallable<?>> getMembers() {
|
||||
return this.data.getValue().getMembers();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Class<?> getMethodOwner() {
|
||||
Class<?> multifileFacade = this.data.getValue().getMultifileFacade();
|
||||
return multifileFacade == null ? getJClass() : multifileFacade;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
|
||||
public Collection<PropertyDescriptor> getProperties(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return getScope().getContributedVariables(name, NoLookupLocation.FROM_REFLECTION);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getJClass().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "file class " + ReflectClassUtilKt.getClassId(getJClass()).asSingleFqName();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.ArraysKt___ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.KotlinReflectionNotSupportedError;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KParameter;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCaller;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
@Metadata(d1 = {"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0004\b\u0000\u0018\u00002\u00020\u0001:\u00013B/\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\u0010\u000bJ!\u0010)\u001a\u00020*2\u0012\u0010+\u001a\n\u0012\u0006\b\u0001\u0012\u00020*0,\"\u00020*H\u0002¢\u0006\u0002\u0010-J\u0013\u0010.\u001a\u00020\u001c2\b\u0010/\u001a\u0004\u0018\u000100H\u0096\u0002J\b\u00101\u001a\u00020\u0005H\u0016J\b\u00102\u001a\u00020\"H\u0016R!\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u000e0\r8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u000f\u0010\u0010R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u001b\u0010\u0015\u001a\u00020\n8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0012\u001a\u0004\b\u0016\u0010\u0017R\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0014\u0010\u001b\u001a\u00020\u001c8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001dR\u0014\u0010\u001e\u001a\u00020\u001c8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001dR\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 R\u0016\u0010!\u001a\u0004\u0018\u00010\"8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b#\u0010$R\u0014\u0010%\u001a\u00020&8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b'\u0010(¨\u00064"}, d2 = {"Lkotlin/reflect/jvm/internal/KParameterImpl;", "Lkotlin/reflect/KParameter;", "callable", "Lkotlin/reflect/jvm/internal/KCallableImpl;", FirebaseAnalytics.Param.INDEX, "", "kind", "Lkotlin/reflect/KParameter$Kind;", "computeDescriptor", "Lkotlin/Function0;", "Lkotlin/reflect/jvm/internal/impl/descriptors/ParameterDescriptor;", "(Lkotlin/reflect/jvm/internal/KCallableImpl;ILkotlin/reflect/KParameter$Kind;Lkotlin/jvm/functions/Function0;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "annotations$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "getCallable", "()Lkotlin/reflect/jvm/internal/KCallableImpl;", "descriptor", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/ParameterDescriptor;", "descriptor$delegate", "getIndex", "()I", "isOptional", "", "()Z", "isVararg", "getKind", "()Lkotlin/reflect/KParameter$Kind;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "type", "Lkotlin/reflect/KType;", "getType", "()Lkotlin/reflect/KType;", "compoundType", "Ljava/lang/reflect/Type;", "types", "", "([Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;", "equals", "other", "", "hashCode", "toString", "CompoundTypeImpl", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKParameterImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KParameterImpl.kt\nkotlin/reflect/jvm/internal/KParameterImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,107:1\n1#2:108\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KParameterImpl implements KParameter {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KParameterImpl.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/ParameterDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KParameterImpl.class), "annotations", "getAnnotations()Ljava/util/List;"))};
|
||||
|
||||
/* renamed from: annotations$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal annotations;
|
||||
private final KCallableImpl<?> callable;
|
||||
|
||||
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal descriptor;
|
||||
private final int index;
|
||||
private final KParameter.Kind kind;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u000e\u0010\u0002\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00010\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\rH\u0096\u0002J\b\u0010\u000e\u001a\u00020\u000fH\u0016J\b\u0010\u0005\u001a\u00020\u0006H\u0016J\b\u0010\u0010\u001a\u00020\u000fH\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001b\u0010\u0002\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00010\u0003¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\u0007\u0010\b¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/jvm/internal/KParameterImpl$CompoundTypeImpl;", "Ljava/lang/reflect/Type;", "types", "", "([Ljava/lang/reflect/Type;)V", "hashCode", "", "getTypes", "()[Ljava/lang/reflect/Type;", "[Ljava/lang/reflect/Type;", "equals", "", "other", "", "getTypeName", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class CompoundTypeImpl implements Type {
|
||||
private final int hashCode;
|
||||
private final Type[] types;
|
||||
|
||||
public CompoundTypeImpl(Type[] types) {
|
||||
Intrinsics.checkNotNullParameter(types, "types");
|
||||
this.types = types;
|
||||
this.hashCode = Arrays.hashCode(types);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof CompoundTypeImpl) && Arrays.equals(this.types, ((CompoundTypeImpl) other).types);
|
||||
}
|
||||
|
||||
@Override // java.lang.reflect.Type
|
||||
public String getTypeName() {
|
||||
String joinToString$default;
|
||||
joinToString$default = ArraysKt___ArraysKt.joinToString$default(this.types, ", ", "[", "]", 0, (CharSequence) null, (Function1) null, 56, (Object) null);
|
||||
return joinToString$default;
|
||||
}
|
||||
|
||||
/* renamed from: hashCode, reason: from getter */
|
||||
public int getHashCode() {
|
||||
return this.hashCode;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return getTypeName();
|
||||
}
|
||||
}
|
||||
|
||||
public KParameterImpl(KCallableImpl<?> callable, int i, KParameter.Kind kind, Function0<? extends ParameterDescriptor> computeDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(callable, "callable");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(computeDescriptor, "computeDescriptor");
|
||||
this.callable = callable;
|
||||
this.index = i;
|
||||
this.kind = kind;
|
||||
this.descriptor = ReflectProperties.lazySoft(computeDescriptor);
|
||||
this.annotations = ReflectProperties.lazySoft(new Function0<List<? extends Annotation>>() { // from class: kotlin.reflect.jvm.internal.KParameterImpl$annotations$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends Annotation> invoke() {
|
||||
ParameterDescriptor descriptor;
|
||||
descriptor = KParameterImpl.this.getDescriptor();
|
||||
return UtilKt.computeAnnotations(descriptor);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final Type compoundType(Type... types) {
|
||||
int length = types.length;
|
||||
if (length != 0) {
|
||||
return length != 1 ? new CompoundTypeImpl(types) : (Type) ArraysKt.single(types);
|
||||
}
|
||||
throw new KotlinReflectionNotSupportedError("Expected at least 1 type for compound type");
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final ParameterDescriptor getDescriptor() {
|
||||
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (ParameterDescriptor) value;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof KParameterImpl)) {
|
||||
return false;
|
||||
}
|
||||
KParameterImpl kParameterImpl = (KParameterImpl) other;
|
||||
return Intrinsics.areEqual(this.callable, kParameterImpl.callable) && getIndex() == kParameterImpl.getIndex();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KAnnotatedElement
|
||||
public List<Annotation> getAnnotations() {
|
||||
T value = this.annotations.getValue(this, $$delegatedProperties[1]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (List) value;
|
||||
}
|
||||
|
||||
public final KCallableImpl<?> getCallable() {
|
||||
return this.callable;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public int getIndex() {
|
||||
return this.index;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public KParameter.Kind getKind() {
|
||||
return this.kind;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public String getName() {
|
||||
ParameterDescriptor descriptor = getDescriptor();
|
||||
ValueParameterDescriptor valueParameterDescriptor = descriptor instanceof ValueParameterDescriptor ? (ValueParameterDescriptor) descriptor : null;
|
||||
if (valueParameterDescriptor == null || valueParameterDescriptor.getContainingDeclaration().hasSynthesizedParameterNames()) {
|
||||
return null;
|
||||
}
|
||||
Name name = valueParameterDescriptor.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
if (name.isSpecial()) {
|
||||
return null;
|
||||
}
|
||||
return name.asString();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public KType getType() {
|
||||
KotlinType type = getDescriptor().getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
return new KTypeImpl(type, new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KParameterImpl$type$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Type invoke() {
|
||||
ParameterDescriptor descriptor;
|
||||
Type compoundType;
|
||||
Type compoundType2;
|
||||
descriptor = KParameterImpl.this.getDescriptor();
|
||||
if ((descriptor instanceof ReceiverParameterDescriptor) && Intrinsics.areEqual(UtilKt.getInstanceReceiverParameter(KParameterImpl.this.getCallable().getDescriptor()), descriptor) && KParameterImpl.this.getCallable().getDescriptor().getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE) {
|
||||
DeclarationDescriptor containingDeclaration = KParameterImpl.this.getCallable().getDescriptor().getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) containingDeclaration);
|
||||
if (javaClass != null) {
|
||||
return javaClass;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Cannot determine receiver Java type of inherited declaration: " + descriptor);
|
||||
}
|
||||
Caller<?> caller = KParameterImpl.this.getCallable().getCaller();
|
||||
if (caller instanceof ValueClassAwareCaller) {
|
||||
List slice = CollectionsKt.slice((List) caller.getParameterTypes(), ((ValueClassAwareCaller) caller).getRealSlicesOfParameters(KParameterImpl.this.getIndex()));
|
||||
KParameterImpl kParameterImpl = KParameterImpl.this;
|
||||
Type[] typeArr = (Type[]) slice.toArray(new Type[0]);
|
||||
compoundType2 = kParameterImpl.compoundType((Type[]) Arrays.copyOf(typeArr, typeArr.length));
|
||||
return compoundType2;
|
||||
}
|
||||
if (caller instanceof ValueClassAwareCaller.MultiFieldValueClassPrimaryConstructorCaller) {
|
||||
KParameterImpl kParameterImpl2 = KParameterImpl.this;
|
||||
Class[] clsArr = (Class[]) ((ValueClassAwareCaller.MultiFieldValueClassPrimaryConstructorCaller) caller).getOriginalParametersGroups().get(KParameterImpl.this.getIndex()).toArray(new Class[0]);
|
||||
compoundType = kParameterImpl2.compoundType((Type[]) Arrays.copyOf(clsArr, clsArr.length));
|
||||
return compoundType;
|
||||
}
|
||||
return caller.getParameterTypes().get(KParameterImpl.this.getIndex());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Integer.hashCode(getIndex()) + (this.callable.hashCode() * 31);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public boolean isOptional() {
|
||||
ParameterDescriptor descriptor = getDescriptor();
|
||||
ValueParameterDescriptor valueParameterDescriptor = descriptor instanceof ValueParameterDescriptor ? (ValueParameterDescriptor) descriptor : null;
|
||||
if (valueParameterDescriptor != null) {
|
||||
return DescriptorUtilsKt.declaresOrInheritsDefaultValue(valueParameterDescriptor);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KParameter
|
||||
public boolean isVararg() {
|
||||
ParameterDescriptor descriptor = getDescriptor();
|
||||
return (descriptor instanceof ValueParameterDescriptor) && ((ValueParameterDescriptor) descriptor).getVarargElementType() != null;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return ReflectionObjectRenderer.INSTANCE.renderParameter(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
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.KProperty0;
|
||||
import kotlin.reflect.jvm.internal.KProperty0Impl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\b\u0010\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u001aB\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\b\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\u0002\u0010\u000eJ\r\u0010\u0016\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0017J\n\u0010\u0018\u001a\u0004\u0018\u00010\rH\u0016J\u000e\u0010\u0019\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0017R\u001a\u0010\u000f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\r0\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001b"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty0Impl;", "V", "Lkotlin/reflect/KProperty0;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "_getter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "delegateValue", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "get", "()Ljava/lang/Object;", "getDelegate", "invoke", "Getter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public class KProperty0Impl<V> extends KPropertyImpl<V> implements KProperty0<V> {
|
||||
private final Lazy<Getter<V>> _getter;
|
||||
private final Lazy<Object> delegateValue;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0013\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005¢\u0006\u0002\u0010\u0006J\u000e\u0010\t\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\nR\u001a\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "R", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty0$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty0Impl;", "(Lkotlin/reflect/jvm/internal/KProperty0Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty0Impl;", "invoke", "()Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Getter<R> extends KPropertyImpl.Getter<R> implements KProperty0.Getter<R> {
|
||||
private final KProperty0Impl<R> property;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public Getter(KProperty0Impl<? extends R> property) {
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public R invoke() {
|
||||
return getProperty().get();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
||||
public KProperty0Impl<R> getProperty() {
|
||||
return this.property;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KProperty0Impl(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<? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$_getter$1
|
||||
final /* synthetic */ KProperty0Impl<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 KProperty0Impl.Getter<V> invoke() {
|
||||
return new KProperty0Impl.Getter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
this.delegateValue = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Object>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$delegateValue$1
|
||||
final /* synthetic */ KProperty0Impl<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 Object invoke() {
|
||||
KPropertyImpl kPropertyImpl = this.this$0;
|
||||
return kPropertyImpl.getDelegateImpl(kPropertyImpl.computeDelegateSource(), null, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KProperty0
|
||||
public V get() {
|
||||
return getGetter().call(new Object[0]);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KProperty0
|
||||
public Object getDelegate() {
|
||||
return this.delegateValue.getValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public V invoke() {
|
||||
return get();
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KProperty0Impl(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<? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$_getter$1
|
||||
final /* synthetic */ KProperty0Impl<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 KProperty0Impl.Getter<V> invoke() {
|
||||
return new KProperty0Impl.Getter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
this.delegateValue = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Object>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$delegateValue$1
|
||||
final /* synthetic */ KProperty0Impl<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 Object invoke() {
|
||||
KPropertyImpl kPropertyImpl = this.this$0;
|
||||
return kPropertyImpl.getDelegateImpl(kPropertyImpl.computeDelegateSource(), null, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
|
||||
public Getter<V> getGetter() {
|
||||
return this._getter.getValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
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.CallableReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KProperty2;
|
||||
import kotlin.reflect.jvm.internal.KProperty2Impl;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\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\b\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0010\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0006\b\u0002\u0010\u0003 \u00012\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00042\b\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u001eB\u001f\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ\u001d\u0010\u0017\u001a\u00028\u00022\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aJ\u001f\u0010\u001b\u001a\u0004\u0018\u00010\u001c2\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aJ\u001e\u0010\u001d\u001a\u00028\u00022\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\u001aR&\u0010\u000f\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\u0014\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016¨\u0006\u001f"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty2Impl;", "D", "E", "V", "Lkotlin/reflect/KProperty2;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;)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/KProperty2Impl$Getter;", "delegateSource", "Ljava/lang/reflect/Member;", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty2Impl$Getter;", "get", "receiver1", "receiver2", "(Ljava/lang/Object;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 KProperty2Impl<D, E, V> extends KPropertyImpl<V> implements KProperty2<D, E, V> {
|
||||
private final Lazy<Getter<D, E, V>> _getter;
|
||||
private final Lazy<Member> delegateSource;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0006\b\u0005\u0010\u0003 \u00012\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005B\u001f\u0012\u0018\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007¢\u0006\u0002\u0010\bJ\u001e\u0010\u000b\u001a\u00028\u00052\u0006\u0010\f\u001a\u00028\u00032\u0006\u0010\r\u001a\u00028\u0004H\u0096\u0002¢\u0006\u0002\u0010\u000eR&\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty2Impl$Getter;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty2$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty2Impl;", "(Lkotlin/reflect/jvm/internal/KProperty2Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty2Impl;", "invoke", "receiver1", "receiver2", "(Ljava/lang/Object;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<D, E, V> extends KPropertyImpl.Getter<V> implements KProperty2.Getter<D, E, V> {
|
||||
private final KProperty2Impl<D, E, V> property;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public Getter(KProperty2Impl<D, E, ? extends V> property) {
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public V invoke(D receiver1, E receiver2) {
|
||||
return getProperty().get(receiver1, receiver2);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
|
||||
public KProperty2Impl<D, E, V> getProperty() {
|
||||
return this.property;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KProperty2Impl(KDeclarationContainerImpl container, String name, String signature) {
|
||||
super(container, name, signature, CallableReference.NO_RECEIVER);
|
||||
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<D, E, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$_getter$1
|
||||
final /* synthetic */ KProperty2Impl<D, E, 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 KProperty2Impl.Getter<D, E, V> invoke() {
|
||||
return new KProperty2Impl.Getter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$delegateSource$1
|
||||
final /* synthetic */ KProperty2Impl<D, E, 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.KProperty2
|
||||
public V get(D receiver1, E receiver2) {
|
||||
return getGetter().call(receiver1, receiver2);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KProperty2
|
||||
public Object getDelegate(D receiver1, E receiver2) {
|
||||
return getDelegateImpl(this.delegateSource.getValue(), receiver1, receiver2);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public V invoke(D receiver1, E receiver2) {
|
||||
return get(receiver1, receiver2);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
|
||||
public Getter<D, E, V> getGetter() {
|
||||
return this._getter.getValue();
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KProperty2Impl(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<D, E, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$_getter$1
|
||||
final /* synthetic */ KProperty2Impl<D, E, 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 KProperty2Impl.Getter<D, E, V> invoke() {
|
||||
return new KProperty2Impl.Getter<>(this.this$0);
|
||||
}
|
||||
});
|
||||
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$delegateSource$1
|
||||
final /* synthetic */ KProperty2Impl<D, E, 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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,523 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import java.lang.reflect.AccessibleObject;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.CallableReference;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KFunction;
|
||||
import kotlin.reflect.KMutableProperty;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.full.IllegalPropertyDelegateAccessException;
|
||||
import kotlin.reflect.jvm.KCallablesJvm;
|
||||
import kotlin.reflect.jvm.internal.JvmPropertySignature;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCallerKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyAccessorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyGetterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertySetterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.DescriptorsJvmAbiUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorFactory;
|
||||
import kotlin.text.Typography;
|
||||
|
||||
@Metadata(d1 = {"\u0000j\n\u0002\u0018\u0002\n\u0000\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\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0006\b \u0018\u0000 @*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0004?@ABB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\b\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eB3\b\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\b\u0010\u000f\u001a\u0004\u0018\u00010\r\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u0011J\n\u00104\u001a\u0004\u0018\u000105H\u0004J\u0013\u00106\u001a\u00020)2\b\u00107\u001a\u0004\u0018\u00010\nH\u0096\u0002J(\u00108\u001a\u0004\u0018\u00010\n2\b\u00109\u001a\u0004\u0018\u0001052\b\u0010:\u001a\u0004\u0018\u00010\n2\b\u0010;\u001a\u0004\u0018\u00010\nH\u0004J\b\u0010<\u001a\u00020=H\u0016J\b\u0010>\u001a\u00020\u0007H\u0016R\u001c\u0010\u0012\u001a\u0010\u0012\f\u0012\n \u0014*\u0004\u0018\u00010\r0\r0\u0013X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0015\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0016X\u0082\u0004¢\u0006\u0002\n\u0000R\u0013\u0010\t\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019R\u0018\u0010\u001a\u001a\u0006\u0012\u0002\b\u00030\u001b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u001a\u0010 \u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b!\u0010\u001dR\u0014\u0010\f\u001a\u00020\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\"\u0010#R\u0018\u0010$\u001a\b\u0012\u0004\u0012\u00028\u00000%X¦\u0004¢\u0006\u0006\u001a\u0004\b&\u0010'R\u0014\u0010(\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b(\u0010*R\u0014\u0010+\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010*R\u0014\u0010,\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010*R\u0014\u0010-\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b-\u0010*R\u0013\u0010.\u001a\u0004\u0018\u00010\u00178F¢\u0006\u0006\u001a\u0004\b/\u00100R\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b1\u00102R\u0010\u0010\u0010\u001a\u0004\u0018\u00010\nX\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\b\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b3\u00102¨\u0006C"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl;", "V", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "Lkotlin/reflect/KProperty;", "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", "descriptorInitialValue", "rawBoundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Ljava/lang/Object;)V", "_descriptor", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "kotlin.jvm.PlatformType", "_javaField", "Lkotlin/Lazy;", "Ljava/lang/reflect/Field;", "getBoundReceiver", "()Ljava/lang/Object;", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "getDefaultCaller", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;", "getter", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "getGetter", "()Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "isBound", "", "()Z", "isConst", "isLateinit", "isSuspend", "javaField", "getJavaField", "()Ljava/lang/reflect/Field;", "getName", "()Ljava/lang/String;", "getSignature", "computeDelegateSource", "Ljava/lang/reflect/Member;", "equals", "other", "getDelegateImpl", "fieldOrMethod", "receiver1", "receiver2", "hashCode", "", "toString", "Accessor", "Companion", "Getter", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKPropertyImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPropertyImpl.kt\nkotlin/reflect/jvm/internal/KPropertyImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,334:1\n1#2:335\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class KPropertyImpl<V> extends KCallableImpl<V> implements KProperty<V> {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final Object EXTENSION_PROPERTY_DELEGATE = new Object();
|
||||
private final ReflectProperties.LazySoftVal<PropertyDescriptor> _descriptor;
|
||||
private final Lazy<Field> _javaField;
|
||||
private final KDeclarationContainerImpl container;
|
||||
private final String name;
|
||||
private final Object rawBoundReceiver;
|
||||
private final String signature;
|
||||
|
||||
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\b&\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u0001*\u0006\b\u0002\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00010\u00042\b\u0012\u0004\u0012\u0002H\u00020\u0005B\u0005¢\u0006\u0002\u0010\u0006R\u0014\u0010\u0007\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u001a\u0010\u000b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\f8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0012\u0010\u000f\u001a\u00020\u0010X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0013\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0015R\u0014\u0010\u0016\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0015R\u0014\u0010\u0017\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0015R\u0014\u0010\u0018\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0015R\u0014\u0010\u0019\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u0015R\u0014\u0010\u001a\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u0015R\u0018\u0010\u001b\u001a\b\u0012\u0004\u0012\u00028\u00010\u001cX¦\u0004¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u001e¨\u0006\u001f"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "PropertyType", "ReturnType", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "Lkotlin/reflect/KProperty$Accessor;", "Lkotlin/reflect/KFunction;", "()V", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getDefaultCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyAccessorDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyAccessorDescriptor;", "isBound", "", "()Z", "isExternal", "isInfix", "isInline", "isOperator", "isSuspend", "property", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "getProperty", "()Lkotlin/reflect/jvm/internal/KPropertyImpl;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Accessor<PropertyType, ReturnType> extends KCallableImpl<ReturnType> implements KFunction<ReturnType>, KProperty.Accessor<PropertyType> {
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public KDeclarationContainerImpl getContainer() {
|
||||
return getProperty().getContainer();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public Caller<?> getDefaultCaller() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public abstract PropertyAccessorDescriptor getDescriptor();
|
||||
|
||||
public abstract KPropertyImpl<PropertyType> getProperty();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public boolean isBound() {
|
||||
return getProperty().isBound();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KFunction
|
||||
public boolean isExternal() {
|
||||
return getDescriptor().isExternal();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KFunction
|
||||
public boolean isInfix() {
|
||||
return getDescriptor().isInfix();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KFunction
|
||||
public boolean isInline() {
|
||||
return getDescriptor().isInline();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KFunction
|
||||
public boolean isOperator() {
|
||||
return getDescriptor().isOperator();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KCallable
|
||||
public boolean isSuspend() {
|
||||
return getDescriptor().isSuspend();
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0001¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Companion;", "", "()V", "EXTENSION_PROPERTY_DELEGATE", "getEXTENSION_PROPERTY_DELEGATE", "()Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final Object getEXTENSION_PROPERTY_DELEGATE() {
|
||||
return KPropertyImpl.EXTENSION_PROPERTY_DELEGATE;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private KPropertyImpl(KDeclarationContainerImpl kDeclarationContainerImpl, String str, String str2, PropertyDescriptor propertyDescriptor, Object obj) {
|
||||
this.container = kDeclarationContainerImpl;
|
||||
this.name = str;
|
||||
this.signature = str2;
|
||||
this.rawBoundReceiver = obj;
|
||||
this._javaField = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Field>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$_javaField$1
|
||||
final /* synthetic */ KPropertyImpl<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 Field invoke() {
|
||||
Class<?> enclosingClass;
|
||||
JvmPropertySignature mapPropertySignature = RuntimeTypeMapper.INSTANCE.mapPropertySignature(this.this$0.getDescriptor());
|
||||
if (mapPropertySignature instanceof JvmPropertySignature.KotlinProperty) {
|
||||
JvmPropertySignature.KotlinProperty kotlinProperty = (JvmPropertySignature.KotlinProperty) mapPropertySignature;
|
||||
PropertyDescriptor descriptor = kotlinProperty.getDescriptor();
|
||||
JvmMemberSignature.Field jvmFieldSignature$default = JvmProtoBufUtil.getJvmFieldSignature$default(JvmProtoBufUtil.INSTANCE, kotlinProperty.getProto(), kotlinProperty.getNameResolver(), kotlinProperty.getTypeTable(), false, 8, null);
|
||||
if (jvmFieldSignature$default == null) {
|
||||
return null;
|
||||
}
|
||||
KCallableImpl kCallableImpl = this.this$0;
|
||||
if (!DescriptorsJvmAbiUtil.isPropertyWithBackingFieldInOuterClass(descriptor) && !JvmProtoBufUtil.isMovedFromInterfaceCompanion(kotlinProperty.getProto())) {
|
||||
DeclarationDescriptor containingDeclaration = descriptor.getContainingDeclaration();
|
||||
enclosingClass = containingDeclaration instanceof ClassDescriptor ? UtilKt.toJavaClass((ClassDescriptor) containingDeclaration) : kCallableImpl.getContainer().getJClass();
|
||||
} else {
|
||||
enclosingClass = kCallableImpl.getContainer().getJClass().getEnclosingClass();
|
||||
}
|
||||
if (enclosingClass == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return enclosingClass.getDeclaredField(jvmFieldSignature$default.getName());
|
||||
} catch (NoSuchFieldException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
if (mapPropertySignature instanceof JvmPropertySignature.JavaField) {
|
||||
return ((JvmPropertySignature.JavaField) mapPropertySignature).getField();
|
||||
}
|
||||
if ((mapPropertySignature instanceof JvmPropertySignature.JavaMethodProperty) || (mapPropertySignature instanceof JvmPropertySignature.MappedKotlinProperty)) {
|
||||
return null;
|
||||
}
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
});
|
||||
ReflectProperties.LazySoftVal<PropertyDescriptor> lazySoft = ReflectProperties.lazySoft(propertyDescriptor, new Function0<PropertyDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$_descriptor$1
|
||||
final /* synthetic */ KPropertyImpl<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 PropertyDescriptor invoke() {
|
||||
return this.this$0.getContainer().findPropertyDescriptor(this.this$0.getName(), this.this$0.getSignature());
|
||||
}
|
||||
});
|
||||
Intrinsics.checkNotNullExpressionValue(lazySoft, "lazySoft(...)");
|
||||
this._descriptor = lazySoft;
|
||||
}
|
||||
|
||||
public final Member computeDelegateSource() {
|
||||
if (!getDescriptor().isDelegated()) {
|
||||
return null;
|
||||
}
|
||||
JvmPropertySignature mapPropertySignature = RuntimeTypeMapper.INSTANCE.mapPropertySignature(getDescriptor());
|
||||
if (mapPropertySignature instanceof JvmPropertySignature.KotlinProperty) {
|
||||
JvmPropertySignature.KotlinProperty kotlinProperty = (JvmPropertySignature.KotlinProperty) mapPropertySignature;
|
||||
if (kotlinProperty.getSignature().hasDelegateMethod()) {
|
||||
JvmProtoBuf.JvmMethodSignature delegateMethod = kotlinProperty.getSignature().getDelegateMethod();
|
||||
if (!delegateMethod.hasName() || !delegateMethod.hasDesc()) {
|
||||
return null;
|
||||
}
|
||||
return getContainer().findMethodBySignature(kotlinProperty.getNameResolver().getString(delegateMethod.getName()), kotlinProperty.getNameResolver().getString(delegateMethod.getDesc()));
|
||||
}
|
||||
}
|
||||
return getJavaField();
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
KPropertyImpl<?> asKPropertyImpl = UtilKt.asKPropertyImpl(other);
|
||||
return asKPropertyImpl != null && Intrinsics.areEqual(getContainer(), asKPropertyImpl.getContainer()) && Intrinsics.areEqual(getName(), asKPropertyImpl.getName()) && Intrinsics.areEqual(this.signature, asKPropertyImpl.signature) && Intrinsics.areEqual(this.rawBoundReceiver, asKPropertyImpl.rawBoundReceiver);
|
||||
}
|
||||
|
||||
public final Object getBoundReceiver() {
|
||||
return ValueClassAwareCallerKt.coerceToExpectedReceiverType(this.rawBoundReceiver, getDescriptor());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public Caller<?> getCaller() {
|
||||
return getGetter().getCaller();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public KDeclarationContainerImpl getContainer() {
|
||||
return this.container;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public Caller<?> getDefaultCaller() {
|
||||
return getGetter().getDefaultCaller();
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final Object getDelegateImpl(Member fieldOrMethod, Object receiver1, Object receiver2) {
|
||||
try {
|
||||
Object obj = EXTENSION_PROPERTY_DELEGATE;
|
||||
if ((receiver1 == obj || receiver2 == obj) && getDescriptor().getExtensionReceiverParameter() == null) {
|
||||
throw new RuntimeException("'" + this + "' is not an extension property and thus getExtensionDelegate() is not going to work, use getDelegate() instead");
|
||||
}
|
||||
Object boundReceiver = isBound() ? getBoundReceiver() : receiver1;
|
||||
if (boundReceiver == obj) {
|
||||
boundReceiver = null;
|
||||
}
|
||||
if (!isBound()) {
|
||||
receiver1 = receiver2;
|
||||
}
|
||||
if (receiver1 == obj) {
|
||||
receiver1 = null;
|
||||
}
|
||||
AccessibleObject accessibleObject = fieldOrMethod instanceof AccessibleObject ? (AccessibleObject) fieldOrMethod : null;
|
||||
if (accessibleObject != null) {
|
||||
accessibleObject.setAccessible(KCallablesJvm.isAccessible(this));
|
||||
}
|
||||
if (fieldOrMethod == 0) {
|
||||
return null;
|
||||
}
|
||||
if (fieldOrMethod instanceof Field) {
|
||||
return ((Field) fieldOrMethod).get(boundReceiver);
|
||||
}
|
||||
if (!(fieldOrMethod instanceof Method)) {
|
||||
throw new AssertionError("delegate field/method " + fieldOrMethod + " neither field nor method");
|
||||
}
|
||||
int length = ((Method) fieldOrMethod).getParameterTypes().length;
|
||||
if (length == 0) {
|
||||
return ((Method) fieldOrMethod).invoke(null, new Object[0]);
|
||||
}
|
||||
if (length == 1) {
|
||||
Method method = (Method) fieldOrMethod;
|
||||
if (boundReceiver == null) {
|
||||
Class<?> cls = ((Method) fieldOrMethod).getParameterTypes()[0];
|
||||
Intrinsics.checkNotNullExpressionValue(cls, "get(...)");
|
||||
boundReceiver = UtilKt.defaultPrimitiveValue(cls);
|
||||
}
|
||||
return method.invoke(null, boundReceiver);
|
||||
}
|
||||
if (length != 2) {
|
||||
throw new AssertionError("delegate method " + fieldOrMethod + " should take 0, 1, or 2 parameters");
|
||||
}
|
||||
Method method2 = (Method) fieldOrMethod;
|
||||
if (receiver1 == null) {
|
||||
Class<?> cls2 = ((Method) fieldOrMethod).getParameterTypes()[1];
|
||||
Intrinsics.checkNotNullExpressionValue(cls2, "get(...)");
|
||||
receiver1 = UtilKt.defaultPrimitiveValue(cls2);
|
||||
}
|
||||
return method2.invoke(null, boundReceiver, receiver1);
|
||||
} catch (IllegalAccessException e4) {
|
||||
throw new IllegalPropertyDelegateAccessException(e4);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract Getter<V> getGetter();
|
||||
|
||||
public final Field getJavaField() {
|
||||
return this._javaField.getValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KCallable
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public final String getSignature() {
|
||||
return this.signature;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.signature.hashCode() + ((getName().hashCode() + (getContainer().hashCode() * 31)) * 31);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public boolean isBound() {
|
||||
return !Intrinsics.areEqual(this.rawBoundReceiver, CallableReference.NO_RECEIVER);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KProperty
|
||||
public boolean isConst() {
|
||||
return getDescriptor().isConst();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KProperty
|
||||
public boolean isLateinit() {
|
||||
return getDescriptor().isLateInit();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KCallable
|
||||
public boolean isSuspend() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return ReflectionObjectRenderer.INSTANCE.renderProperty(getDescriptor());
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b&\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0005¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018H\u0096\u0002J\b\u0010\u0019\u001a\u00020\u001aH\u0016J\b\u0010\u001b\u001a\u00020\u0012H\u0016R\u001f\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u00068VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\bR\u001b\u0010\u000b\u001a\u00020\f8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0011\u001a\u00020\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "Lkotlin/reflect/KProperty$Getter;", "()V", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/Lazy;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyGetterDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyGetterDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "equals", "", "other", "", "hashCode", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Getter<V> extends Accessor<V, V> implements KProperty.Getter<V> {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Getter.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/PropertyGetterDescriptor;"))};
|
||||
|
||||
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal descriptor = ReflectProperties.lazySoft(new Function0<PropertyGetterDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Getter$descriptor$2
|
||||
final /* synthetic */ KPropertyImpl.Getter<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 PropertyGetterDescriptor invoke() {
|
||||
PropertyGetterDescriptor getter = this.this$0.getProperty().getDescriptor().getGetter();
|
||||
return getter == null ? DescriptorFactory.createDefaultGetter(this.this$0.getProperty().getDescriptor(), Annotations.Companion.getEMPTY()) : getter;
|
||||
}
|
||||
});
|
||||
|
||||
/* renamed from: caller$delegate, reason: from kotlin metadata */
|
||||
private final Lazy caller = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Caller<?>>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Getter$caller$2
|
||||
final /* synthetic */ KPropertyImpl.Getter<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 Caller<?> invoke() {
|
||||
return KPropertyImplKt.access$computeCallerForAccessor(this.this$0, true);
|
||||
}
|
||||
});
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof Getter) && Intrinsics.areEqual(getProperty(), ((Getter) other).getProperty());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public Caller<?> getCaller() {
|
||||
return (Caller) this.caller.getValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KCallable
|
||||
public String getName() {
|
||||
return "<get-" + getProperty().getName() + Typography.greater;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getProperty().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "getter of " + getProperty();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public PropertyGetterDescriptor getDescriptor() {
|
||||
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (PropertyGetterDescriptor) value;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b&\u0018\u0000*\u0004\b\u0001\u0010\u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u00020\u00030\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0004B\u0005¢\u0006\u0002\u0010\u0005J\u0013\u0010\u0016\u001a\u00020\u00172\b\u0010\u0018\u001a\u0004\u0018\u00010\u0019H\u0096\u0002J\b\u0010\u001a\u001a\u00020\u001bH\u0016J\b\u0010\u001c\u001a\u00020\u0013H\u0016R\u001f\u0010\u0006\u001a\u0006\u0012\u0002\b\u00030\u00078VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\n\u0010\u000b\u001a\u0004\b\b\u0010\tR\u001b\u0010\f\u001a\u00020\r8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0012\u001a\u00020\u00138VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001d"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "", "Lkotlin/reflect/KMutableProperty$Setter;", "()V", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/Lazy;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertySetterDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertySetterDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "equals", "", "other", "", "hashCode", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Setter<V> extends Accessor<V, Unit> implements KMutableProperty.Setter<V> {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Setter.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/PropertySetterDescriptor;"))};
|
||||
|
||||
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal descriptor = ReflectProperties.lazySoft(new Function0<PropertySetterDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Setter$descriptor$2
|
||||
final /* synthetic */ KPropertyImpl.Setter<V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final PropertySetterDescriptor invoke() {
|
||||
PropertySetterDescriptor setter = this.this$0.getProperty().getDescriptor().getSetter();
|
||||
if (setter != null) {
|
||||
return setter;
|
||||
}
|
||||
PropertyDescriptor descriptor = this.this$0.getProperty().getDescriptor();
|
||||
Annotations.Companion companion = Annotations.Companion;
|
||||
return DescriptorFactory.createDefaultSetter(descriptor, companion.getEMPTY(), companion.getEMPTY());
|
||||
}
|
||||
});
|
||||
|
||||
/* renamed from: caller$delegate, reason: from kotlin metadata */
|
||||
private final Lazy caller = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Caller<?>>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Setter$caller$2
|
||||
final /* synthetic */ KPropertyImpl.Setter<V> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
this.this$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Caller<?> invoke() {
|
||||
return KPropertyImplKt.access$computeCallerForAccessor(this.this$0, false);
|
||||
}
|
||||
});
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof Setter) && Intrinsics.areEqual(getProperty(), ((Setter) other).getProperty());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public Caller<?> getCaller() {
|
||||
return (Caller) this.caller.getValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KCallable
|
||||
public String getName() {
|
||||
return "<set-" + getProperty().getName() + Typography.greater;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getProperty().hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "setter of " + getProperty();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public PropertySetterDescriptor getDescriptor() {
|
||||
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (PropertySetterDescriptor) value;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KCallableImpl
|
||||
public PropertyDescriptor getDescriptor() {
|
||||
PropertyDescriptor invoke = this._descriptor.invoke();
|
||||
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
|
||||
return invoke;
|
||||
}
|
||||
|
||||
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
||||
public KPropertyImpl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
|
||||
this(container, name, signature, null, obj);
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(signature, "signature");
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public KPropertyImpl(kotlin.reflect.jvm.internal.KDeclarationContainerImpl r8, kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "container"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.String r0 = "descriptor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
|
||||
kotlin.reflect.jvm.internal.impl.name.Name r0 = r9.getName()
|
||||
java.lang.String r3 = r0.asString()
|
||||
java.lang.String r0 = "asString(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
kotlin.reflect.jvm.internal.RuntimeTypeMapper r0 = kotlin.reflect.jvm.internal.RuntimeTypeMapper.INSTANCE
|
||||
kotlin.reflect.jvm.internal.JvmPropertySignature r0 = r0.mapPropertySignature(r9)
|
||||
java.lang.String r4 = r0.getString()
|
||||
java.lang.Object r6 = kotlin.jvm.internal.CallableReference.NO_RECEIVER
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r5 = r9
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KPropertyImpl.<init>(kotlin.reflect.jvm.internal.KDeclarationContainerImpl, kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor):void");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.calls.CallerImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a \u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u0006*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00022\u0006\u0010\u0007\u001a\u00020\bH\u0002\u001a\f\u0010\t\u001a\u00020\b*\u00020\nH\u0002\"\"\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u000b"}, d2 = {"boundReceiver", "", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "getBoundReceiver", "(Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;)Ljava/lang/Object;", "computeCallerForAccessor", "Lkotlin/reflect/jvm/internal/calls/Caller;", "isGetter", "", "isJvmFieldPropertyInCompanionObject", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKPropertyImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPropertyImpl.kt\nkotlin/reflect/jvm/internal/KPropertyImplKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,334:1\n1#2:335\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KPropertyImplKt {
|
||||
public static final /* synthetic */ Caller access$computeCallerForAccessor(KPropertyImpl.Accessor accessor, boolean z3) {
|
||||
return computeCallerForAccessor(accessor, z3);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:14:0x004b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0073 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:37:0x0112 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:54:0x0070 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final kotlin.reflect.jvm.internal.calls.Caller<?> computeCallerForAccessor(kotlin.reflect.jvm.internal.KPropertyImpl.Accessor<?, ?> r6, boolean r7) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 572
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KPropertyImplKt.computeCallerForAccessor(kotlin.reflect.jvm.internal.KPropertyImpl$Accessor, boolean):kotlin.reflect.jvm.internal.calls.Caller");
|
||||
}
|
||||
|
||||
private static final CallerImpl<Field> computeCallerForAccessor$computeFieldCaller(KPropertyImpl.Accessor<?, ?> accessor, boolean z3, Field field) {
|
||||
return (isJvmFieldPropertyInCompanionObject(accessor.getProperty().getDescriptor()) || !Modifier.isStatic(field.getModifiers())) ? z3 ? accessor.isBound() ? new CallerImpl.FieldGetter.BoundInstance(field, getBoundReceiver(accessor)) : new CallerImpl.FieldGetter.Instance(field) : accessor.isBound() ? new CallerImpl.FieldSetter.BoundInstance(field, computeCallerForAccessor$isNotNullProperty(accessor), getBoundReceiver(accessor)) : new CallerImpl.FieldSetter.Instance(field, computeCallerForAccessor$isNotNullProperty(accessor)) : computeCallerForAccessor$isJvmStaticProperty(accessor) ? z3 ? accessor.isBound() ? new CallerImpl.FieldGetter.BoundJvmStaticInObject(field) : new CallerImpl.FieldGetter.JvmStaticInObject(field) : accessor.isBound() ? new CallerImpl.FieldSetter.BoundJvmStaticInObject(field, computeCallerForAccessor$isNotNullProperty(accessor)) : new CallerImpl.FieldSetter.JvmStaticInObject(field, computeCallerForAccessor$isNotNullProperty(accessor)) : z3 ? new CallerImpl.FieldGetter.Static(field) : new CallerImpl.FieldSetter.Static(field, computeCallerForAccessor$isNotNullProperty(accessor));
|
||||
}
|
||||
|
||||
private static final boolean computeCallerForAccessor$isJvmStaticProperty(KPropertyImpl.Accessor<?, ?> accessor) {
|
||||
return accessor.getProperty().getDescriptor().getAnnotations().hasAnnotation(UtilKt.getJVM_STATIC());
|
||||
}
|
||||
|
||||
private static final boolean computeCallerForAccessor$isNotNullProperty(KPropertyImpl.Accessor<?, ?> accessor) {
|
||||
return !TypeUtils.isNullableType(accessor.getProperty().getDescriptor().getType());
|
||||
}
|
||||
|
||||
public static final Object getBoundReceiver(KPropertyImpl.Accessor<?, ?> accessor) {
|
||||
Intrinsics.checkNotNullParameter(accessor, "<this>");
|
||||
return accessor.getProperty().getBoundReceiver();
|
||||
}
|
||||
|
||||
private static final boolean isJvmFieldPropertyInCompanionObject(PropertyDescriptor propertyDescriptor) {
|
||||
DeclarationDescriptor containingDeclaration = propertyDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
|
||||
if (!DescriptorUtils.isCompanionObject(containingDeclaration)) {
|
||||
return false;
|
||||
}
|
||||
DeclarationDescriptor containingDeclaration2 = containingDeclaration.getContainingDeclaration();
|
||||
if (DescriptorUtils.isInterface(containingDeclaration2) || DescriptorUtils.isAnnotationClass(containingDeclaration2)) {
|
||||
return (propertyDescriptor instanceof DeserializedPropertyDescriptor) && JvmProtoBufUtil.isMovedFromInterfaceCompanion(((DeserializedPropertyDescriptor) propertyDescriptor).getProto());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.reflect.GenericArrayType;
|
||||
import java.lang.reflect.ParameterizedType;
|
||||
import java.lang.reflect.Type;
|
||||
import java.lang.reflect.WildcardType;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KTypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u0016\u0012\u0004\u0012\u00020\u0002 \u0003*\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u00010\u0001H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "Lkotlin/reflect/KTypeProjection;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKTypeImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl$arguments$2\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,136:1\n1559#2:137\n1590#2,4:138\n*S KotlinDebug\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl$arguments$2\n*L\n81#1:137\n81#1:138,4\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KTypeImpl$arguments$2 extends Lambda implements Function0<List<? extends KTypeProjection>> {
|
||||
final /* synthetic */ Function0<Type> $computeJavaType;
|
||||
final /* synthetic */ KTypeImpl this$0;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Variance.values().length];
|
||||
try {
|
||||
iArr[Variance.INVARIANT.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Variance.IN_VARIANCE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Variance.OUT_VARIANCE.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public KTypeImpl$arguments$2(KTypeImpl kTypeImpl, Function0<? extends Type> function0) {
|
||||
super(0);
|
||||
this.this$0 = kTypeImpl;
|
||||
this.$computeJavaType = function0;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final List<Type> invoke$lambda$0(Lazy<? extends List<? extends Type>> lazy) {
|
||||
return (List) lazy.getValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends KTypeProjection> invoke() {
|
||||
int collectionSizeOrDefault;
|
||||
KTypeProjection invariant;
|
||||
List<TypeProjection> arguments = this.this$0.getType().getArguments();
|
||||
if (arguments.isEmpty()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
|
||||
final KTypeImpl kTypeImpl = this.this$0;
|
||||
final Lazy lazy = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<List<? extends Type>>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$arguments$2$parameterizedTypeArguments$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends Type> invoke() {
|
||||
Type javaType = KTypeImpl.this.getJavaType();
|
||||
Intrinsics.checkNotNull(javaType);
|
||||
return ReflectClassUtilKt.getParameterizedTypeArguments(javaType);
|
||||
}
|
||||
});
|
||||
List<TypeProjection> list = arguments;
|
||||
Function0<Type> function0 = this.$computeJavaType;
|
||||
final KTypeImpl kTypeImpl2 = this.this$0;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
final int i = 0;
|
||||
for (Object obj : list) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
TypeProjection typeProjection = (TypeProjection) obj;
|
||||
if (typeProjection.isStarProjection()) {
|
||||
invariant = KTypeProjection.INSTANCE.getSTAR();
|
||||
} else {
|
||||
KotlinType type = typeProjection.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
KTypeImpl kTypeImpl3 = new KTypeImpl(type, function0 == null ? null : new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$arguments$2$1$type$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Type invoke() {
|
||||
List invoke$lambda$0;
|
||||
Type javaType = KTypeImpl.this.getJavaType();
|
||||
if (javaType instanceof Class) {
|
||||
Class cls = (Class) javaType;
|
||||
Class componentType = cls.isArray() ? cls.getComponentType() : Object.class;
|
||||
Intrinsics.checkNotNull(componentType);
|
||||
return componentType;
|
||||
}
|
||||
if (javaType instanceof GenericArrayType) {
|
||||
if (i == 0) {
|
||||
Type genericComponentType = ((GenericArrayType) javaType).getGenericComponentType();
|
||||
Intrinsics.checkNotNull(genericComponentType);
|
||||
return genericComponentType;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Array type has been queried for a non-0th argument: " + KTypeImpl.this);
|
||||
}
|
||||
if (javaType instanceof ParameterizedType) {
|
||||
invoke$lambda$0 = KTypeImpl$arguments$2.invoke$lambda$0(lazy);
|
||||
Type type2 = (Type) invoke$lambda$0.get(i);
|
||||
if (type2 instanceof WildcardType) {
|
||||
WildcardType wildcardType = (WildcardType) type2;
|
||||
Type[] lowerBounds = wildcardType.getLowerBounds();
|
||||
Intrinsics.checkNotNullExpressionValue(lowerBounds, "getLowerBounds(...)");
|
||||
Type type3 = (Type) ArraysKt.firstOrNull(lowerBounds);
|
||||
if (type3 == null) {
|
||||
Type[] upperBounds = wildcardType.getUpperBounds();
|
||||
Intrinsics.checkNotNullExpressionValue(upperBounds, "getUpperBounds(...)");
|
||||
type2 = (Type) ArraysKt.first(upperBounds);
|
||||
} else {
|
||||
type2 = type3;
|
||||
}
|
||||
}
|
||||
Intrinsics.checkNotNull(type2);
|
||||
return type2;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Non-generic type has been queried for arguments: " + KTypeImpl.this);
|
||||
}
|
||||
});
|
||||
int i5 = WhenMappings.$EnumSwitchMapping$0[typeProjection.getProjectionKind().ordinal()];
|
||||
if (i5 == 1) {
|
||||
invariant = KTypeProjection.INSTANCE.invariant(kTypeImpl3);
|
||||
} else if (i5 != 2) {
|
||||
if (i5 != 3) {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
invariant = KTypeProjection.INSTANCE.covariant(kTypeImpl3);
|
||||
} else {
|
||||
invariant = KTypeProjection.INSTANCE.contravariant(kTypeImpl3);
|
||||
}
|
||||
}
|
||||
arrayList.add(invariant);
|
||||
i = i4;
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NotImplementedError;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.KTypeBase;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.KClassifier;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.KTypeProjection;
|
||||
import kotlin.reflect.jvm.KTypesJvm;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.FlexibleTypesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
|
||||
|
||||
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0000\u0018\u00002\u00020\u0001B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0010\b\u0002\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0002\u0010\u0007J\u0012\u0010 \u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0013\u0010!\u001a\u00020\u00192\b\u0010\"\u001a\u0004\u0018\u00010#H\u0096\u0002J\b\u0010$\u001a\u00020%H\u0016J\u0015\u0010&\u001a\u00020\u00002\u0006\u0010'\u001a\u00020\u0019H\u0000¢\u0006\u0002\b(J\b\u0010)\u001a\u00020*H\u0016R\u001a\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR!\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000e0\t8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u000f\u0010\fR\u001d\u0010\u0012\u001a\u0004\u0018\u00010\u00138VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\u0011\u001a\u0004\b\u0014\u0010\u0015R\u0016\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0017X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0018\u001a\u00020\u00198VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u001aR\u0016\u0010\u001b\u001a\u0004\u0018\u00010\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001f¨\u0006+²\u0006\u0010\u0010,\u001a\b\u0012\u0004\u0012\u00020\u00060\tX\u008a\u0084\u0002"}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeImpl;", "Lkotlin/jvm/internal/KTypeBase;", "type", "Lkotlin/reflect/jvm/internal/impl/types/KotlinType;", "computeJavaType", "Lkotlin/Function0;", "Ljava/lang/reflect/Type;", "(Lorg/jetbrains/kotlin/types/KotlinType;Lkotlin/jvm/functions/Function0;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "arguments", "Lkotlin/reflect/KTypeProjection;", "getArguments", "arguments$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "classifier", "Lkotlin/reflect/KClassifier;", "getClassifier", "()Lkotlin/reflect/KClassifier;", "classifier$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "isMarkedNullable", "", "()Z", "javaType", "getJavaType", "()Ljava/lang/reflect/Type;", "getType", "()Lorg/jetbrains/kotlin/types/KotlinType;", "convert", "equals", "other", "", "hashCode", "", "makeNullableAsSpecified", "nullable", "makeNullableAsSpecified$kotlin_reflection", "toString", "", "kotlin-reflection", "parameterizedTypeArguments"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKTypeImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,136:1\n1#2:137\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KTypeImpl implements KTypeBase {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeImpl.class), "classifier", "getClassifier()Lkotlin/reflect/KClassifier;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeImpl.class), "arguments", "getArguments()Ljava/util/List;"))};
|
||||
|
||||
/* renamed from: arguments$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal arguments;
|
||||
|
||||
/* renamed from: classifier$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal classifier;
|
||||
private final ReflectProperties.LazySoftVal<Type> computeJavaType;
|
||||
private final KotlinType type;
|
||||
|
||||
public KTypeImpl(KotlinType type, Function0<? extends Type> function0) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
this.type = type;
|
||||
ReflectProperties.LazySoftVal<Type> lazySoftVal = null;
|
||||
ReflectProperties.LazySoftVal<Type> lazySoftVal2 = function0 instanceof ReflectProperties.LazySoftVal ? (ReflectProperties.LazySoftVal) function0 : null;
|
||||
if (lazySoftVal2 != null) {
|
||||
lazySoftVal = lazySoftVal2;
|
||||
} else if (function0 != null) {
|
||||
lazySoftVal = ReflectProperties.lazySoft(function0);
|
||||
}
|
||||
this.computeJavaType = lazySoftVal;
|
||||
this.classifier = ReflectProperties.lazySoft(new Function0<KClassifier>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$classifier$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KClassifier invoke() {
|
||||
KClassifier convert;
|
||||
KTypeImpl kTypeImpl = KTypeImpl.this;
|
||||
convert = kTypeImpl.convert(kTypeImpl.getType());
|
||||
return convert;
|
||||
}
|
||||
});
|
||||
this.arguments = ReflectProperties.lazySoft(new KTypeImpl$arguments$2(this, function0));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final KClassifier convert(KotlinType type) {
|
||||
KotlinType type2;
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = type.getConstructor().mo1394getDeclarationDescriptor();
|
||||
if (!(mo1394getDeclarationDescriptor instanceof ClassDescriptor)) {
|
||||
if (mo1394getDeclarationDescriptor instanceof TypeParameterDescriptor) {
|
||||
return new KTypeParameterImpl(null, (TypeParameterDescriptor) mo1394getDeclarationDescriptor);
|
||||
}
|
||||
if (mo1394getDeclarationDescriptor instanceof TypeAliasDescriptor) {
|
||||
throw new NotImplementedError("An operation is not implemented: Type alias classifiers are not yet supported");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) mo1394getDeclarationDescriptor);
|
||||
if (javaClass == null) {
|
||||
return null;
|
||||
}
|
||||
if (!javaClass.isArray()) {
|
||||
if (TypeUtils.isNullableType(type)) {
|
||||
return new KClassImpl(javaClass);
|
||||
}
|
||||
Class<?> primitiveByWrapper = ReflectClassUtilKt.getPrimitiveByWrapper(javaClass);
|
||||
if (primitiveByWrapper != null) {
|
||||
javaClass = primitiveByWrapper;
|
||||
}
|
||||
return new KClassImpl(javaClass);
|
||||
}
|
||||
TypeProjection typeProjection = (TypeProjection) CollectionsKt.singleOrNull((List) type.getArguments());
|
||||
if (typeProjection == null || (type2 = typeProjection.getType()) == null) {
|
||||
return new KClassImpl(javaClass);
|
||||
}
|
||||
KClassifier convert = convert(type2);
|
||||
if (convert != null) {
|
||||
return new KClassImpl(UtilKt.createArrayType(JvmClassMappingKt.getJavaClass((KClass) KTypesJvm.getJvmErasure(convert))));
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Cannot determine classifier for array element type: " + this);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof KTypeImpl)) {
|
||||
return false;
|
||||
}
|
||||
KTypeImpl kTypeImpl = (KTypeImpl) other;
|
||||
return Intrinsics.areEqual(this.type, kTypeImpl.type) && Intrinsics.areEqual(getClassifier(), kTypeImpl.getClassifier()) && Intrinsics.areEqual(getArguments(), kTypeImpl.getArguments());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KAnnotatedElement
|
||||
public List<Annotation> getAnnotations() {
|
||||
return UtilKt.computeAnnotations(this.type);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KType
|
||||
public List<KTypeProjection> getArguments() {
|
||||
T value = this.arguments.getValue(this, $$delegatedProperties[1]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (List) value;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KType
|
||||
public KClassifier getClassifier() {
|
||||
return (KClassifier) this.classifier.getValue(this, $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.KTypeBase
|
||||
public Type getJavaType() {
|
||||
ReflectProperties.LazySoftVal<Type> lazySoftVal = this.computeJavaType;
|
||||
if (lazySoftVal != null) {
|
||||
return lazySoftVal.invoke();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final KotlinType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int hashCode = this.type.hashCode() * 31;
|
||||
KClassifier classifier = getClassifier();
|
||||
return getArguments().hashCode() + ((hashCode + (classifier != null ? classifier.hashCode() : 0)) * 31);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KType
|
||||
public boolean isMarkedNullable() {
|
||||
return this.type.isMarkedNullable();
|
||||
}
|
||||
|
||||
public final KTypeImpl makeNullableAsSpecified$kotlin_reflection(boolean nullable) {
|
||||
if (!FlexibleTypesKt.isFlexible(this.type) && isMarkedNullable() == nullable) {
|
||||
return this;
|
||||
}
|
||||
KotlinType makeNullableAsSpecified = TypeUtils.makeNullableAsSpecified(this.type, nullable);
|
||||
Intrinsics.checkNotNullExpressionValue(makeNullableAsSpecified, "makeNullableAsSpecified(...)");
|
||||
return new KTypeImpl(makeNullableAsSpecified, this.computeJavaType);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return ReflectionObjectRenderer.INSTANCE.renderType(this.type);
|
||||
}
|
||||
|
||||
public /* synthetic */ KTypeImpl(KotlinType kotlinType, Function0 function0, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(kotlinType, (i & 2) != 0 ? null : function0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.TypeParameterReference;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.KTypeParameter;
|
||||
import kotlin.reflect.KVariance;
|
||||
import kotlin.reflect.jvm.internal.ReflectProperties;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmPackagePartSource;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
|
||||
@Metadata(d1 = {"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0013\u0010\u001c\u001a\u00020\u000b2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001eH\u0096\u0002J\b\u0010\u001f\u001a\u00020 H\u0016J\b\u0010!\u001a\u00020\u000eH\u0016J\u0010\u0010\"\u001a\u0006\u0012\u0002\b\u00030#*\u00020$H\u0002J\u0010\u0010%\u001a\u0006\u0012\u0002\b\u00030&*\u00020'H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0014\u0010\n\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\fR\u0014\u0010\r\u001a\u00020\u000e8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R!\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00130\u00128VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0018\u001a\u00020\u00198VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006("}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeParameterImpl;", "Lkotlin/reflect/KTypeParameter;", "Lkotlin/reflect/jvm/internal/KClassifierImpl;", "container", "Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/TypeParameterDescriptor;", "(Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;Lorg/jetbrains/kotlin/descriptors/TypeParameterDescriptor;)V", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/TypeParameterDescriptor;", "isReified", "", "()Z", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "upperBounds", "", "Lkotlin/reflect/KType;", "getUpperBounds", "()Ljava/util/List;", "upperBounds$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "variance", "Lkotlin/reflect/KVariance;", "getVariance", "()Lkotlin/reflect/KVariance;", "equals", "other", "", "hashCode", "", "toString", "getContainerClass", "Ljava/lang/Class;", "Lkotlin/reflect/jvm/internal/impl/serialization/deserialization/descriptors/DeserializedMemberDescriptor;", "toKClassImpl", "Lkotlin/reflect/jvm/internal/KClassImpl;", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KTypeParameterImpl implements KTypeParameter, KClassifierImpl {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeParameterImpl.class), "upperBounds", "getUpperBounds()Ljava/util/List;"))};
|
||||
private final KTypeParameterOwnerImpl container;
|
||||
private final TypeParameterDescriptor descriptor;
|
||||
|
||||
/* renamed from: upperBounds$delegate, reason: from kotlin metadata */
|
||||
private final ReflectProperties.LazySoftVal upperBounds;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Variance.values().length];
|
||||
try {
|
||||
iArr[Variance.INVARIANT.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Variance.IN_VARIANCE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Variance.OUT_VARIANCE.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public KTypeParameterImpl(KTypeParameterOwnerImpl kTypeParameterOwnerImpl, TypeParameterDescriptor descriptor) {
|
||||
KClassImpl<?> kClassImpl;
|
||||
Object accept;
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
this.descriptor = descriptor;
|
||||
this.upperBounds = ReflectProperties.lazySoft(new Function0<List<? extends KTypeImpl>>() { // from class: kotlin.reflect.jvm.internal.KTypeParameterImpl$upperBounds$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends KTypeImpl> invoke() {
|
||||
int collectionSizeOrDefault;
|
||||
List<KotlinType> upperBounds = KTypeParameterImpl.this.getDescriptor().getUpperBounds();
|
||||
Intrinsics.checkNotNullExpressionValue(upperBounds, "getUpperBounds(...)");
|
||||
List<KotlinType> list = upperBounds;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(new KTypeImpl((KotlinType) it.next(), null, 2, null));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
});
|
||||
if (kTypeParameterOwnerImpl == null) {
|
||||
DeclarationDescriptor containingDeclaration = getDescriptor().getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
|
||||
if (containingDeclaration instanceof ClassDescriptor) {
|
||||
accept = toKClassImpl((ClassDescriptor) containingDeclaration);
|
||||
} else {
|
||||
if (!(containingDeclaration instanceof CallableMemberDescriptor)) {
|
||||
throw new KotlinReflectionInternalError("Unknown type parameter container: " + containingDeclaration);
|
||||
}
|
||||
DeclarationDescriptor containingDeclaration2 = ((CallableMemberDescriptor) containingDeclaration).getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration2, "getContainingDeclaration(...)");
|
||||
if (containingDeclaration2 instanceof ClassDescriptor) {
|
||||
kClassImpl = toKClassImpl((ClassDescriptor) containingDeclaration2);
|
||||
} else {
|
||||
DeserializedMemberDescriptor deserializedMemberDescriptor = containingDeclaration instanceof DeserializedMemberDescriptor ? (DeserializedMemberDescriptor) containingDeclaration : null;
|
||||
if (deserializedMemberDescriptor == null) {
|
||||
throw new KotlinReflectionInternalError("Non-class callable descriptor must be deserialized: " + containingDeclaration);
|
||||
}
|
||||
KClass kotlinClass = JvmClassMappingKt.getKotlinClass(getContainerClass(deserializedMemberDescriptor));
|
||||
Intrinsics.checkNotNull(kotlinClass, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<*>");
|
||||
kClassImpl = (KClassImpl) kotlinClass;
|
||||
}
|
||||
accept = containingDeclaration.accept(new CreateKCallableVisitor(kClassImpl), Unit.INSTANCE);
|
||||
}
|
||||
Intrinsics.checkNotNull(accept);
|
||||
kTypeParameterOwnerImpl = (KTypeParameterOwnerImpl) accept;
|
||||
}
|
||||
this.container = kTypeParameterOwnerImpl;
|
||||
}
|
||||
|
||||
private final Class<?> getContainerClass(DeserializedMemberDescriptor deserializedMemberDescriptor) {
|
||||
Class<?> klass;
|
||||
DeserializedContainerSource containerSource = deserializedMemberDescriptor.getContainerSource();
|
||||
JvmPackagePartSource jvmPackagePartSource = containerSource instanceof JvmPackagePartSource ? (JvmPackagePartSource) containerSource : null;
|
||||
Object knownJvmBinaryClass = jvmPackagePartSource != null ? jvmPackagePartSource.getKnownJvmBinaryClass() : null;
|
||||
ReflectKotlinClass reflectKotlinClass = knownJvmBinaryClass instanceof ReflectKotlinClass ? (ReflectKotlinClass) knownJvmBinaryClass : null;
|
||||
if (reflectKotlinClass != null && (klass = reflectKotlinClass.getKlass()) != null) {
|
||||
return klass;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Container of deserialized member is not resolved: " + deserializedMemberDescriptor);
|
||||
}
|
||||
|
||||
private final KClassImpl<?> toKClassImpl(ClassDescriptor classDescriptor) {
|
||||
Class<?> javaClass = UtilKt.toJavaClass(classDescriptor);
|
||||
KClassImpl<?> kClassImpl = (KClassImpl) (javaClass != null ? JvmClassMappingKt.getKotlinClass(javaClass) : null);
|
||||
if (kClassImpl != null) {
|
||||
return kClassImpl;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Type parameter container is not resolved: " + classDescriptor.getContainingDeclaration());
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof KTypeParameterImpl)) {
|
||||
return false;
|
||||
}
|
||||
KTypeParameterImpl kTypeParameterImpl = (KTypeParameterImpl) other;
|
||||
return Intrinsics.areEqual(this.container, kTypeParameterImpl.container) && Intrinsics.areEqual(getName(), kTypeParameterImpl.getName());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KTypeParameter
|
||||
public String getName() {
|
||||
String asString = getDescriptor().getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return asString;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KTypeParameter
|
||||
public List<KType> getUpperBounds() {
|
||||
T value = this.upperBounds.getValue(this, $$delegatedProperties[0]);
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return (List) value;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KTypeParameter
|
||||
public KVariance getVariance() {
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[getDescriptor().getVariance().ordinal()];
|
||||
if (i == 1) {
|
||||
return KVariance.INVARIANT;
|
||||
}
|
||||
if (i == 2) {
|
||||
return KVariance.IN;
|
||||
}
|
||||
if (i == 3) {
|
||||
return KVariance.OUT;
|
||||
}
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getName().hashCode() + (this.container.hashCode() * 31);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.KTypeParameter
|
||||
/* renamed from: isReified */
|
||||
public boolean getIsReified() {
|
||||
return getDescriptor().isReified();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return TypeParameterReference.INSTANCE.toString(this);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.KClassifierImpl
|
||||
public TypeParameterDescriptor getDescriptor() {
|
||||
return this.descriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001R\u0018\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "", "typeParameters", "", "Lkotlin/reflect/KTypeParameter;", "getTypeParameters", "()Ljava/util/List;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface KTypeParameterOwnerImpl {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KotlinReflectionInternalError;", "Ljava/lang/Error;", "Lkotlin/Error;", "message", "", "(Ljava/lang/String;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KotlinReflectionInternalError extends Error {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public KotlinReflectionInternalError(String message) {
|
||||
super(message);
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\b\u0010\u0005\u001a\u00020\u0006H\u0000\u001a\u0010\u0010\u0007\u001a\u00020\u0004*\u0006\u0012\u0002\b\u00030\bH\u0000\" \u0010\u0000\u001a\u0014\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040\u00030\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"moduleByClassLoader", "Ljava/util/concurrent/ConcurrentMap;", "Lkotlin/reflect/jvm/internal/WeakClassLoaderBox;", "Ljava/lang/ref/WeakReference;", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/RuntimeModuleData;", "clearModuleByClassLoaderCache", "", "getOrCreateModule", "Ljava/lang/Class;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nmoduleByClassLoader.kt\nKotlin\n*S Kotlin\n*F\n+ 1 moduleByClassLoader.kt\nkotlin/reflect/jvm/internal/ModuleByClassLoaderKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,75:1\n1#2:76\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ModuleByClassLoaderKt {
|
||||
private static final ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> moduleByClassLoader = new ConcurrentHashMap();
|
||||
|
||||
public static final void clearModuleByClassLoaderCache() {
|
||||
moduleByClassLoader.clear();
|
||||
}
|
||||
|
||||
public static final RuntimeModuleData getOrCreateModule(Class<?> cls) {
|
||||
Intrinsics.checkNotNullParameter(cls, "<this>");
|
||||
ClassLoader safeClassLoader = ReflectClassUtilKt.getSafeClassLoader(cls);
|
||||
WeakClassLoaderBox weakClassLoaderBox = new WeakClassLoaderBox(safeClassLoader);
|
||||
ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> concurrentMap = moduleByClassLoader;
|
||||
WeakReference<RuntimeModuleData> weakReference = concurrentMap.get(weakClassLoaderBox);
|
||||
if (weakReference != null) {
|
||||
RuntimeModuleData runtimeModuleData = weakReference.get();
|
||||
if (runtimeModuleData != null) {
|
||||
return runtimeModuleData;
|
||||
}
|
||||
concurrentMap.remove(weakClassLoaderBox, weakReference);
|
||||
}
|
||||
RuntimeModuleData create = RuntimeModuleData.Companion.create(safeClassLoader);
|
||||
while (true) {
|
||||
try {
|
||||
ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> concurrentMap2 = moduleByClassLoader;
|
||||
WeakReference<RuntimeModuleData> putIfAbsent = concurrentMap2.putIfAbsent(weakClassLoaderBox, new WeakReference<>(create));
|
||||
if (putIfAbsent == null) {
|
||||
return create;
|
||||
}
|
||||
RuntimeModuleData runtimeModuleData2 = putIfAbsent.get();
|
||||
if (runtimeModuleData2 != null) {
|
||||
return runtimeModuleData2;
|
||||
}
|
||||
concurrentMap2.remove(weakClassLoaderBox, putIfAbsent);
|
||||
} finally {
|
||||
weakClassLoaderBox.setTemporaryStrongRef(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class ReflectProperties {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static class LazySoftVal<T> extends Val<T> implements Function0<T> {
|
||||
private final Function0<T> initializer;
|
||||
private volatile SoftReference<Object> value;
|
||||
|
||||
private static /* synthetic */ void $$$reportNull$$$0(int i) {
|
||||
throw new IllegalArgumentException("Argument for @NotNull parameter 'initializer' of kotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal.<init> must not be null");
|
||||
}
|
||||
|
||||
public LazySoftVal(T t2, Function0<T> function0) {
|
||||
if (function0 == null) {
|
||||
$$$reportNull$$$0(0);
|
||||
}
|
||||
this.value = null;
|
||||
this.initializer = function0;
|
||||
if (t2 != null) {
|
||||
this.value = new SoftReference<>(escape(t2));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.ReflectProperties.Val, kotlin.jvm.functions.Function0
|
||||
public T invoke() {
|
||||
Object obj;
|
||||
SoftReference<Object> softReference = this.value;
|
||||
if (softReference != null && (obj = softReference.get()) != null) {
|
||||
return unescape(obj);
|
||||
}
|
||||
T invoke = this.initializer.invoke();
|
||||
this.value = new SoftReference<>(escape(invoke));
|
||||
return invoke;
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Val<T> {
|
||||
private static final Object NULL_VALUE = new Object() { // from class: kotlin.reflect.jvm.internal.ReflectProperties.Val.1
|
||||
};
|
||||
|
||||
public Object escape(T t2) {
|
||||
return t2 == null ? NULL_VALUE : t2;
|
||||
}
|
||||
|
||||
public final T getValue(Object obj, Object obj2) {
|
||||
return invoke();
|
||||
}
|
||||
|
||||
public abstract T invoke();
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public T unescape(Object obj) {
|
||||
if (obj == NULL_VALUE) {
|
||||
return null;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
||||
private static /* synthetic */ void $$$reportNull$$$0(int i) {
|
||||
throw new IllegalArgumentException("Argument for @NotNull parameter 'initializer' of kotlin/reflect/jvm/internal/ReflectProperties.lazySoft must not be null");
|
||||
}
|
||||
|
||||
public static <T> LazySoftVal<T> lazySoft(T t2, Function0<T> function0) {
|
||||
if (function0 == null) {
|
||||
$$$reportNull$$$0(0);
|
||||
}
|
||||
return new LazySoftVal<>(t2, function0);
|
||||
}
|
||||
|
||||
public static <T> LazySoftVal<T> lazySoft(Function0<T> function0) {
|
||||
if (function0 == null) {
|
||||
$$$reportNull$$$0(1);
|
||||
}
|
||||
return lazySoft(null, function0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.CallableReference;
|
||||
import kotlin.jvm.internal.ClassBasedDeclarationContainer;
|
||||
import kotlin.jvm.internal.FunctionBase;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import kotlin.jvm.internal.MutablePropertyReference0;
|
||||
import kotlin.jvm.internal.MutablePropertyReference1;
|
||||
import kotlin.jvm.internal.MutablePropertyReference2;
|
||||
import kotlin.jvm.internal.PropertyReference0;
|
||||
import kotlin.jvm.internal.PropertyReference1;
|
||||
import kotlin.jvm.internal.PropertyReference2;
|
||||
import kotlin.jvm.internal.ReflectionFactory;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.KClassifier;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.KFunction;
|
||||
import kotlin.reflect.KMutableProperty0;
|
||||
import kotlin.reflect.KMutableProperty1;
|
||||
import kotlin.reflect.KMutableProperty2;
|
||||
import kotlin.reflect.KProperty0;
|
||||
import kotlin.reflect.KProperty1;
|
||||
import kotlin.reflect.KProperty2;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.KTypeParameter;
|
||||
import kotlin.reflect.KTypeProjection;
|
||||
import kotlin.reflect.KVariance;
|
||||
import kotlin.reflect.full.KClassifiers;
|
||||
import kotlin.reflect.jvm.ReflectLambdaKt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class ReflectionFactoryImpl extends ReflectionFactory {
|
||||
public static void clearCaches() {
|
||||
CachesKt.clearCaches();
|
||||
ModuleByClassLoaderKt.clearModuleByClassLoaderCache();
|
||||
}
|
||||
|
||||
private static KDeclarationContainerImpl getOwner(CallableReference callableReference) {
|
||||
KDeclarationContainer owner = callableReference.getOwner();
|
||||
return owner instanceof KDeclarationContainerImpl ? (KDeclarationContainerImpl) owner : EmptyContainerForLocal.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KClass createKotlinClass(Class cls) {
|
||||
return new KClassImpl(cls);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KFunction function(FunctionReference functionReference) {
|
||||
return new KFunctionImpl(getOwner(functionReference), functionReference.getName(), functionReference.getSignature(), functionReference.getBoundReceiver());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KClass getOrCreateKotlinClass(Class cls) {
|
||||
return CachesKt.getOrCreateKotlinClass(cls);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KDeclarationContainer getOrCreateKotlinPackage(Class cls, String str) {
|
||||
return CachesKt.getOrCreateKotlinPackage(cls);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KType mutableCollectionType(KType kType) {
|
||||
return TypeOfImplKt.createMutableCollectionKType(kType);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KMutableProperty0 mutableProperty0(MutablePropertyReference0 mutablePropertyReference0) {
|
||||
return new KMutableProperty0Impl(getOwner(mutablePropertyReference0), mutablePropertyReference0.getName(), mutablePropertyReference0.getSignature(), mutablePropertyReference0.getBoundReceiver());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KMutableProperty1 mutableProperty1(MutablePropertyReference1 mutablePropertyReference1) {
|
||||
return new KMutableProperty1Impl(getOwner(mutablePropertyReference1), mutablePropertyReference1.getName(), mutablePropertyReference1.getSignature(), mutablePropertyReference1.getBoundReceiver());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KMutableProperty2 mutableProperty2(MutablePropertyReference2 mutablePropertyReference2) {
|
||||
return new KMutableProperty2Impl(getOwner(mutablePropertyReference2), mutablePropertyReference2.getName(), mutablePropertyReference2.getSignature());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KType nothingType(KType kType) {
|
||||
return TypeOfImplKt.createNothingType(kType);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KType platformType(KType kType, KType kType2) {
|
||||
return TypeOfImplKt.createPlatformKType(kType, kType2);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KProperty0 property0(PropertyReference0 propertyReference0) {
|
||||
return new KProperty0Impl(getOwner(propertyReference0), propertyReference0.getName(), propertyReference0.getSignature(), propertyReference0.getBoundReceiver());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KProperty1 property1(PropertyReference1 propertyReference1) {
|
||||
return new KProperty1Impl(getOwner(propertyReference1), propertyReference1.getName(), propertyReference1.getSignature(), propertyReference1.getBoundReceiver());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KProperty2 property2(PropertyReference2 propertyReference2) {
|
||||
return new KProperty2Impl(getOwner(propertyReference2), propertyReference2.getName(), propertyReference2.getSignature());
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public String renderLambdaToString(Lambda lambda) {
|
||||
return renderLambdaToString((FunctionBase) lambda);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public void setUpperBounds(KTypeParameter kTypeParameter, List<KType> list) {
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KType typeOf(KClassifier kClassifier, List<KTypeProjection> list, boolean z3) {
|
||||
return kClassifier instanceof ClassBasedDeclarationContainer ? CachesKt.getOrCreateKType(((ClassBasedDeclarationContainer) kClassifier).getJClass(), list, z3) : KClassifiers.createType(kClassifier, list, z3, Collections.EMPTY_LIST);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KTypeParameter typeParameter(Object obj, String str, KVariance kVariance, boolean z3) {
|
||||
List<KTypeParameter> typeParameters;
|
||||
if (obj instanceof KClass) {
|
||||
typeParameters = ((KClass) obj).getTypeParameters();
|
||||
} else {
|
||||
if (!(obj instanceof KCallable)) {
|
||||
throw new IllegalArgumentException("Type parameter container must be a class or a callable: " + obj);
|
||||
}
|
||||
typeParameters = ((KCallable) obj).getTypeParameters();
|
||||
}
|
||||
for (KTypeParameter kTypeParameter : typeParameters) {
|
||||
if (kTypeParameter.getName().equals(str)) {
|
||||
return kTypeParameter;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Type parameter " + str + " is not found in container: " + obj);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KClass createKotlinClass(Class cls, String str) {
|
||||
return new KClassImpl(cls);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public KClass getOrCreateKotlinClass(Class cls, String str) {
|
||||
return CachesKt.getOrCreateKotlinClass(cls);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.ReflectionFactory
|
||||
public String renderLambdaToString(FunctionBase functionBase) {
|
||||
KFunctionImpl asKFunctionImpl;
|
||||
KFunction reflect = ReflectLambdaKt.reflect(functionBase);
|
||||
if (reflect != null && (asKFunctionImpl = UtilKt.asKFunctionImpl(reflect)) != null) {
|
||||
return ReflectionObjectRenderer.INSTANCE.renderLambda(asKFunctionImpl.getDescriptor());
|
||||
}
|
||||
return super.renderLambdaToString(functionBase);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KParameter;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.renderer.DescriptorRenderer;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0002J\u000e\u0010\t\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\nJ\u000e\u0010\u000b\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\nJ\u000e\u0010\r\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\u000fJ\u000e\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0011J\u000e\u0010\u0012\u001a\u00020\u00062\u0006\u0010\u0013\u001a\u00020\u0014J\u001a\u0010\u0015\u001a\u00020\u0016*\u00060\u0017j\u0002`\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0002J\u0018\u0010\u001b\u001a\u00020\u0016*\u00060\u0017j\u0002`\u00182\u0006\u0010\u001c\u001a\u00020\bH\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001d"}, d2 = {"Lkotlin/reflect/jvm/internal/ReflectionObjectRenderer;", "", "()V", "renderer", "Lkotlin/reflect/jvm/internal/impl/renderer/DescriptorRenderer;", "renderCallable", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableDescriptor;", "renderFunction", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "renderLambda", "invoke", "renderParameter", "parameter", "Lkotlin/reflect/jvm/internal/KParameterImpl;", "renderProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "renderType", "type", "Lkotlin/reflect/jvm/internal/impl/types/KotlinType;", "appendReceiverType", "", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "receiver", "Lkotlin/reflect/jvm/internal/impl/descriptors/ReceiverParameterDescriptor;", "appendReceivers", "callable", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ReflectionObjectRenderer {
|
||||
public static final ReflectionObjectRenderer INSTANCE = new ReflectionObjectRenderer();
|
||||
private static final DescriptorRenderer renderer = DescriptorRenderer.FQ_NAMES_IN_TYPES;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[KParameter.Kind.values().length];
|
||||
try {
|
||||
iArr[KParameter.Kind.EXTENSION_RECEIVER.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[KParameter.Kind.INSTANCE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[KParameter.Kind.VALUE.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
private ReflectionObjectRenderer() {
|
||||
}
|
||||
|
||||
private final void appendReceiverType(StringBuilder sb, ReceiverParameterDescriptor receiverParameterDescriptor) {
|
||||
if (receiverParameterDescriptor != null) {
|
||||
KotlinType type = receiverParameterDescriptor.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
sb.append(renderType(type));
|
||||
sb.append(".");
|
||||
}
|
||||
}
|
||||
|
||||
private final void appendReceivers(StringBuilder sb, CallableDescriptor callableDescriptor) {
|
||||
ReceiverParameterDescriptor instanceReceiverParameter = UtilKt.getInstanceReceiverParameter(callableDescriptor);
|
||||
ReceiverParameterDescriptor extensionReceiverParameter = callableDescriptor.getExtensionReceiverParameter();
|
||||
appendReceiverType(sb, instanceReceiverParameter);
|
||||
boolean z3 = (instanceReceiverParameter == null || extensionReceiverParameter == null) ? false : true;
|
||||
if (z3) {
|
||||
sb.append("(");
|
||||
}
|
||||
appendReceiverType(sb, extensionReceiverParameter);
|
||||
if (z3) {
|
||||
sb.append(")");
|
||||
}
|
||||
}
|
||||
|
||||
private final String renderCallable(CallableDescriptor descriptor) {
|
||||
if (descriptor instanceof PropertyDescriptor) {
|
||||
return renderProperty((PropertyDescriptor) descriptor);
|
||||
}
|
||||
if (descriptor instanceof FunctionDescriptor) {
|
||||
return renderFunction((FunctionDescriptor) descriptor);
|
||||
}
|
||||
throw new IllegalStateException(("Illegal callable: " + descriptor).toString());
|
||||
}
|
||||
|
||||
public final String renderFunction(FunctionDescriptor descriptor) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("fun ");
|
||||
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
|
||||
reflectionObjectRenderer.appendReceivers(sb, descriptor);
|
||||
DescriptorRenderer descriptorRenderer = renderer;
|
||||
Name name = descriptor.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
sb.append(descriptorRenderer.renderName(name, true));
|
||||
List<ValueParameterDescriptor> valueParameters = descriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
CollectionsKt___CollectionsKt.joinTo$default(valueParameters, sb, ", ", "(", ")", 0, null, new Function1<ValueParameterDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.ReflectionObjectRenderer$renderFunction$1$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(ValueParameterDescriptor valueParameterDescriptor) {
|
||||
ReflectionObjectRenderer reflectionObjectRenderer2 = ReflectionObjectRenderer.INSTANCE;
|
||||
KotlinType type = valueParameterDescriptor.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
return reflectionObjectRenderer2.renderType(type);
|
||||
}
|
||||
}, 48, null);
|
||||
sb.append(": ");
|
||||
KotlinType returnType = descriptor.getReturnType();
|
||||
Intrinsics.checkNotNull(returnType);
|
||||
sb.append(reflectionObjectRenderer.renderType(returnType));
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public final String renderLambda(FunctionDescriptor invoke) {
|
||||
Intrinsics.checkNotNullParameter(invoke, "invoke");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
|
||||
reflectionObjectRenderer.appendReceivers(sb, invoke);
|
||||
List<ValueParameterDescriptor> valueParameters = invoke.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
CollectionsKt___CollectionsKt.joinTo$default(valueParameters, sb, ", ", "(", ")", 0, null, new Function1<ValueParameterDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.ReflectionObjectRenderer$renderLambda$1$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(ValueParameterDescriptor valueParameterDescriptor) {
|
||||
ReflectionObjectRenderer reflectionObjectRenderer2 = ReflectionObjectRenderer.INSTANCE;
|
||||
KotlinType type = valueParameterDescriptor.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
return reflectionObjectRenderer2.renderType(type);
|
||||
}
|
||||
}, 48, null);
|
||||
sb.append(" -> ");
|
||||
KotlinType returnType = invoke.getReturnType();
|
||||
Intrinsics.checkNotNull(returnType);
|
||||
sb.append(reflectionObjectRenderer.renderType(returnType));
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public final String renderParameter(KParameterImpl parameter) {
|
||||
Intrinsics.checkNotNullParameter(parameter, "parameter");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[parameter.getKind().ordinal()];
|
||||
if (i == 1) {
|
||||
sb.append("extension receiver parameter");
|
||||
} else if (i == 2) {
|
||||
sb.append("instance parameter");
|
||||
} else if (i == 3) {
|
||||
sb.append("parameter #" + parameter.getIndex() + ' ' + parameter.getName());
|
||||
}
|
||||
sb.append(" of ");
|
||||
sb.append(INSTANCE.renderCallable(parameter.getCallable().getDescriptor()));
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public final String renderProperty(PropertyDescriptor descriptor) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(descriptor.isVar() ? "var " : "val ");
|
||||
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
|
||||
reflectionObjectRenderer.appendReceivers(sb, descriptor);
|
||||
DescriptorRenderer descriptorRenderer = renderer;
|
||||
Name name = descriptor.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
sb.append(descriptorRenderer.renderName(name, true));
|
||||
sb.append(": ");
|
||||
KotlinType type = descriptor.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
sb.append(reflectionObjectRenderer.renderType(type));
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public final String renderType(KotlinType type) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
return renderer.renderType(type);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
|
||||
import kotlin.reflect.jvm.internal.JvmPropertySignature;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.CloneableClassScope;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyGetterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertySetterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaField;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaMethod;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.JvmAbi;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.SpecialBuiltinMembers;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.descriptors.JavaPropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.sources.JavaSourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.structure.JavaElement;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.MethodSignatureMappingKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
|
||||
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002J\u0012\u0010\u000e\u001a\u00020\u00042\n\u0010\u000f\u001a\u0006\u0012\u0002\b\u00030\u0007J\u0010\u0010\u0010\u001a\u00020\u00112\u0006\u0010\f\u001a\u00020\rH\u0002J\u0010\u0010\u0012\u001a\u00020\u00132\u0006\u0010\f\u001a\u00020\u0014H\u0002J\u000e\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0018J\u000e\u0010\u0019\u001a\u00020\u001a2\u0006\u0010\u001b\u001a\u00020\rR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u0005\u001a\u0004\u0018\u00010\u0006*\u0006\u0012\u0002\b\u00030\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/RuntimeTypeMapper;", "", "()V", "JAVA_LANG_VOID", "Lkotlin/reflect/jvm/internal/impl/name/ClassId;", "primitiveType", "Lkotlin/reflect/jvm/internal/impl/builtins/PrimitiveType;", "Ljava/lang/Class;", "getPrimitiveType", "(Ljava/lang/Class;)Lorg/jetbrains/kotlin/builtins/PrimitiveType;", "isKnownBuiltInFunction", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "mapJvmClassToKotlinClassId", "klass", "mapJvmFunctionSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "mapName", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "mapPropertySignature", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "possiblyOverriddenProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "mapSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "possiblySubstitutedFunction", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/RuntimeTypeMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,302:1\n1#2:303\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RuntimeTypeMapper {
|
||||
public static final RuntimeTypeMapper INSTANCE = new RuntimeTypeMapper();
|
||||
private static final ClassId JAVA_LANG_VOID;
|
||||
|
||||
static {
|
||||
ClassId classId = ClassId.topLevel(new FqName("java.lang.Void"));
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
JAVA_LANG_VOID = classId;
|
||||
}
|
||||
|
||||
private RuntimeTypeMapper() {
|
||||
}
|
||||
|
||||
private final PrimitiveType getPrimitiveType(Class<?> cls) {
|
||||
if (cls.isPrimitive()) {
|
||||
return JvmPrimitiveType.get(cls.getSimpleName()).getPrimitiveType();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final boolean isKnownBuiltInFunction(FunctionDescriptor descriptor) {
|
||||
if (DescriptorFactory.isEnumValueOfMethod(descriptor) || DescriptorFactory.isEnumValuesMethod(descriptor)) {
|
||||
return true;
|
||||
}
|
||||
return Intrinsics.areEqual(descriptor.getName(), CloneableClassScope.Companion.getCLONE_NAME()) && descriptor.getValueParameters().isEmpty();
|
||||
}
|
||||
|
||||
private final JvmFunctionSignature.KotlinFunction mapJvmFunctionSignature(FunctionDescriptor descriptor) {
|
||||
return new JvmFunctionSignature.KotlinFunction(new JvmMemberSignature.Method(mapName(descriptor), MethodSignatureMappingKt.computeJvmDescriptor$default(descriptor, false, false, 1, null)));
|
||||
}
|
||||
|
||||
private final String mapName(CallableMemberDescriptor descriptor) {
|
||||
String jvmMethodNameIfSpecial = SpecialBuiltinMembers.getJvmMethodNameIfSpecial(descriptor);
|
||||
if (jvmMethodNameIfSpecial != null) {
|
||||
return jvmMethodNameIfSpecial;
|
||||
}
|
||||
if (descriptor instanceof PropertyGetterDescriptor) {
|
||||
String asString = DescriptorUtilsKt.getPropertyIfAccessor(descriptor).getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return JvmAbi.getterName(asString);
|
||||
}
|
||||
if (descriptor instanceof PropertySetterDescriptor) {
|
||||
String asString2 = DescriptorUtilsKt.getPropertyIfAccessor(descriptor).getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString2, "asString(...)");
|
||||
return JvmAbi.setterName(asString2);
|
||||
}
|
||||
String asString3 = descriptor.getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString3, "asString(...)");
|
||||
return asString3;
|
||||
}
|
||||
|
||||
public final ClassId mapJvmClassToKotlinClassId(Class<?> klass) {
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
if (klass.isArray()) {
|
||||
Class<?> componentType = klass.getComponentType();
|
||||
Intrinsics.checkNotNullExpressionValue(componentType, "getComponentType(...)");
|
||||
PrimitiveType primitiveType = getPrimitiveType(componentType);
|
||||
if (primitiveType != null) {
|
||||
return new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, primitiveType.getArrayTypeName());
|
||||
}
|
||||
ClassId classId = ClassId.topLevel(StandardNames.FqNames.array.toSafe());
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
return classId;
|
||||
}
|
||||
if (Intrinsics.areEqual(klass, Void.TYPE)) {
|
||||
return JAVA_LANG_VOID;
|
||||
}
|
||||
PrimitiveType primitiveType2 = getPrimitiveType(klass);
|
||||
if (primitiveType2 != null) {
|
||||
return new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, primitiveType2.getTypeName());
|
||||
}
|
||||
ClassId classId2 = ReflectClassUtilKt.getClassId(klass);
|
||||
if (!classId2.isLocal()) {
|
||||
JavaToKotlinClassMap javaToKotlinClassMap = JavaToKotlinClassMap.INSTANCE;
|
||||
FqName asSingleFqName = classId2.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
|
||||
ClassId mapJavaToKotlin = javaToKotlinClassMap.mapJavaToKotlin(asSingleFqName);
|
||||
if (mapJavaToKotlin != null) {
|
||||
return mapJavaToKotlin;
|
||||
}
|
||||
}
|
||||
return classId2;
|
||||
}
|
||||
|
||||
public final JvmPropertySignature mapPropertySignature(PropertyDescriptor possiblyOverriddenProperty) {
|
||||
Intrinsics.checkNotNullParameter(possiblyOverriddenProperty, "possiblyOverriddenProperty");
|
||||
PropertyDescriptor original = ((PropertyDescriptor) DescriptorUtils.unwrapFakeOverride(possiblyOverriddenProperty)).getOriginal();
|
||||
Intrinsics.checkNotNullExpressionValue(original, "getOriginal(...)");
|
||||
if (original instanceof DeserializedPropertyDescriptor) {
|
||||
DeserializedPropertyDescriptor deserializedPropertyDescriptor = (DeserializedPropertyDescriptor) original;
|
||||
ProtoBuf.Property proto = deserializedPropertyDescriptor.getProto();
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, JvmProtoBuf.JvmPropertySignature> propertySignature = JvmProtoBuf.propertySignature;
|
||||
Intrinsics.checkNotNullExpressionValue(propertySignature, "propertySignature");
|
||||
JvmProtoBuf.JvmPropertySignature jvmPropertySignature = (JvmProtoBuf.JvmPropertySignature) ProtoBufUtilKt.getExtensionOrNull(proto, propertySignature);
|
||||
if (jvmPropertySignature != null) {
|
||||
return new JvmPropertySignature.KotlinProperty(original, proto, jvmPropertySignature, deserializedPropertyDescriptor.getNameResolver(), deserializedPropertyDescriptor.getTypeTable());
|
||||
}
|
||||
} else if (original instanceof JavaPropertyDescriptor) {
|
||||
SourceElement source = ((JavaPropertyDescriptor) original).getSource();
|
||||
JavaSourceElement javaSourceElement = source instanceof JavaSourceElement ? (JavaSourceElement) source : null;
|
||||
JavaElement javaElement = javaSourceElement != null ? javaSourceElement.getJavaElement() : null;
|
||||
if (javaElement instanceof ReflectJavaField) {
|
||||
return new JvmPropertySignature.JavaField(((ReflectJavaField) javaElement).getMember());
|
||||
}
|
||||
if (!(javaElement instanceof ReflectJavaMethod)) {
|
||||
throw new KotlinReflectionInternalError("Incorrect resolution sequence for Java field " + original + " (source = " + javaElement + ')');
|
||||
}
|
||||
Method member = ((ReflectJavaMethod) javaElement).getMember();
|
||||
PropertySetterDescriptor setter = original.getSetter();
|
||||
SourceElement source2 = setter != null ? setter.getSource() : null;
|
||||
JavaSourceElement javaSourceElement2 = source2 instanceof JavaSourceElement ? (JavaSourceElement) source2 : null;
|
||||
JavaElement javaElement2 = javaSourceElement2 != null ? javaSourceElement2.getJavaElement() : null;
|
||||
ReflectJavaMethod reflectJavaMethod = javaElement2 instanceof ReflectJavaMethod ? (ReflectJavaMethod) javaElement2 : null;
|
||||
return new JvmPropertySignature.JavaMethodProperty(member, reflectJavaMethod != null ? reflectJavaMethod.getMember() : null);
|
||||
}
|
||||
PropertyGetterDescriptor getter = original.getGetter();
|
||||
Intrinsics.checkNotNull(getter);
|
||||
JvmFunctionSignature.KotlinFunction mapJvmFunctionSignature = mapJvmFunctionSignature(getter);
|
||||
PropertySetterDescriptor setter2 = original.getSetter();
|
||||
return new JvmPropertySignature.MappedKotlinProperty(mapJvmFunctionSignature, setter2 != null ? mapJvmFunctionSignature(setter2) : null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:25:0x0095, code lost:
|
||||
|
||||
if (r8 != false) goto L36;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final kotlin.reflect.jvm.internal.JvmFunctionSignature mapSignature(kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor r9) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 518
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.RuntimeTypeMapper.mapSignature(kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor):kotlin.reflect.jvm.internal.JvmFunctionSignature");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt___ArraysKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"signature", "", "Ljava/lang/reflect/Method;", "getSignature", "(Ljava/lang/reflect/Method;)Ljava/lang/String;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RuntimeTypeMapperKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final String getSignature(Method method) {
|
||||
String joinToString$default;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(method.getName());
|
||||
Class<?>[] parameterTypes = method.getParameterTypes();
|
||||
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
|
||||
joinToString$default = ArraysKt___ArraysKt.joinToString$default(parameterTypes, "", "(", ")", 0, (CharSequence) null, new Function1<Class<?>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.RuntimeTypeMapperKt$signature$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final CharSequence invoke(Class<?> cls) {
|
||||
Intrinsics.checkNotNull(cls);
|
||||
return ReflectClassUtilKt.getDesc(cls);
|
||||
}
|
||||
}, 24, (Object) null);
|
||||
sb.append(joinToString$default);
|
||||
Class<?> returnType = method.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
sb.append(ReflectClassUtilKt.getDesc(returnType));
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0000\u001a\u0010\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0000\u001a\u0018\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u0001H\u0000\u001a\f\u0010\u0007\u001a\u00020\b*\u00020\bH\u0002¨\u0006\t"}, d2 = {"createMutableCollectionKType", "Lkotlin/reflect/KType;", "type", "createNothingType", "createPlatformKType", "lowerBound", "upperBound", "readOnlyToMutable", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\ntypeOfImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 typeOfImpl.kt\nkotlin/reflect/jvm/internal/TypeOfImplKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,51:1\n1#2:52\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TypeOfImplKt {
|
||||
public static final KType createMutableCollectionKType(KType type) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
KotlinType type2 = ((KTypeImpl) type).getType();
|
||||
if (!(type2 instanceof SimpleType)) {
|
||||
throw new IllegalArgumentException(("Non-simple type cannot be a mutable collection type: " + type).toString());
|
||||
}
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = type2.getConstructor().mo1394getDeclarationDescriptor();
|
||||
ClassDescriptor classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
|
||||
if (classDescriptor == null) {
|
||||
throw new IllegalArgumentException("Non-class type cannot be a mutable collection type: " + type);
|
||||
}
|
||||
SimpleType simpleType = (SimpleType) type2;
|
||||
TypeConstructor typeConstructor = readOnlyToMutable(classDescriptor).getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
|
||||
return new KTypeImpl(KotlinTypeFactory.simpleType$default(simpleType, (TypeAttributes) null, typeConstructor, (List) null, false, 26, (Object) null), null, 2, null);
|
||||
}
|
||||
|
||||
public static final KType createNothingType(KType type) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
KotlinType type2 = ((KTypeImpl) type).getType();
|
||||
if (!(type2 instanceof SimpleType)) {
|
||||
throw new IllegalArgumentException(("Non-simple type cannot be a Nothing type: " + type).toString());
|
||||
}
|
||||
SimpleType simpleType = (SimpleType) type2;
|
||||
TypeConstructor typeConstructor = TypeUtilsKt.getBuiltIns(type2).getNothing().getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
|
||||
return new KTypeImpl(KotlinTypeFactory.simpleType$default(simpleType, (TypeAttributes) null, typeConstructor, (List) null, false, 26, (Object) null), null, 2, null);
|
||||
}
|
||||
|
||||
public static final KType createPlatformKType(KType lowerBound, KType upperBound) {
|
||||
Intrinsics.checkNotNullParameter(lowerBound, "lowerBound");
|
||||
Intrinsics.checkNotNullParameter(upperBound, "upperBound");
|
||||
KotlinType type = ((KTypeImpl) lowerBound).getType();
|
||||
Intrinsics.checkNotNull(type, "null cannot be cast to non-null type org.jetbrains.kotlin.types.SimpleType");
|
||||
KotlinType type2 = ((KTypeImpl) upperBound).getType();
|
||||
Intrinsics.checkNotNull(type2, "null cannot be cast to non-null type org.jetbrains.kotlin.types.SimpleType");
|
||||
return new KTypeImpl(KotlinTypeFactory.flexibleType((SimpleType) type, (SimpleType) type2), null, 2, null);
|
||||
}
|
||||
|
||||
private static final ClassDescriptor readOnlyToMutable(ClassDescriptor classDescriptor) {
|
||||
FqName readOnlyToMutable = JavaToKotlinClassMap.INSTANCE.readOnlyToMutable(DescriptorUtilsKt.getFqNameUnsafe(classDescriptor));
|
||||
if (readOnlyToMutable != null) {
|
||||
ClassDescriptor builtInClassByFqName = DescriptorUtilsKt.getBuiltIns(classDescriptor).getBuiltInClassByFqName(readOnlyToMutable);
|
||||
Intrinsics.checkNotNullExpressionValue(builtInClassByFqName, "getBuiltInClassByFqName(...)");
|
||||
return builtInClassByFqName;
|
||||
}
|
||||
throw new IllegalArgumentException("Not a readonly collection: " + classDescriptor);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
class Util {
|
||||
public static Object getEnumConstantByName(Class<? extends Enum<?>> cls, String str) {
|
||||
return Enum.valueOf(cls, str);
|
||||
}
|
||||
}
|
||||
693
apk_decompiled/sources/kotlin/reflect/jvm/internal/UtilKt.java
Normal file
693
apk_decompiled/sources/kotlin/reflect/jvm/internal/UtilKt.java
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0014\u001a\u00020\u0006H\u0016J\b\u0010\u0015\u001a\u00020\u0016H\u0016R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0017\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00030\n¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u001c\u0010\r\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0004¨\u0006\u0017"}, d2 = {"Lkotlin/reflect/jvm/internal/WeakClassLoaderBox;", "", "classLoader", "Ljava/lang/ClassLoader;", "(Ljava/lang/ClassLoader;)V", "identityHashCode", "", "getIdentityHashCode", "()I", "ref", "Ljava/lang/ref/WeakReference;", "getRef", "()Ljava/lang/ref/WeakReference;", "temporaryStrongRef", "getTemporaryStrongRef", "()Ljava/lang/ClassLoader;", "setTemporaryStrongRef", "equals", "", "other", "hashCode", "toString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
final class WeakClassLoaderBox {
|
||||
private final int identityHashCode;
|
||||
private final WeakReference<ClassLoader> ref;
|
||||
private ClassLoader temporaryStrongRef;
|
||||
|
||||
public WeakClassLoaderBox(ClassLoader classLoader) {
|
||||
Intrinsics.checkNotNullParameter(classLoader, "classLoader");
|
||||
this.ref = new WeakReference<>(classLoader);
|
||||
this.identityHashCode = System.identityHashCode(classLoader);
|
||||
this.temporaryStrongRef = classLoader;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
return (other instanceof WeakClassLoaderBox) && this.ref.get() == ((WeakClassLoaderBox) other).ref.get();
|
||||
}
|
||||
|
||||
/* renamed from: hashCode, reason: from getter */
|
||||
public int getIdentityHashCode() {
|
||||
return this.identityHashCode;
|
||||
}
|
||||
|
||||
public final void setTemporaryStrongRef(ClassLoader classLoader) {
|
||||
this.temporaryStrongRef = classLoader;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String obj;
|
||||
ClassLoader classLoader = this.ref.get();
|
||||
return (classLoader == null || (obj = classLoader.toString()) == null) ? "<null>" : obj;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package kotlin.reflect.jvm.internal;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract /* synthetic */ class a {
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0011\n\u0002\b\u0004\b\u0000\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001:\u0002 !B?\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b\u0012\u000e\b\u0002\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u0006¢\u0006\u0002\u0010\u000eJ\u001b\u0010\u001c\u001a\u0004\u0018\u00010\u00102\n\u0010\u001d\u001a\u0006\u0012\u0002\b\u00030\u001eH\u0016¢\u0006\u0002\u0010\u001fR\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u000f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00100\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0011\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00040\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\u0004\u0018\u00010\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00160\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006\""}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "", "jClass", "Ljava/lang/Class;", "parameterNames", "", "", "callMode", "Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;", "origin", "Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;", "methods", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/util/List;Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;Ljava/util/List;)V", "defaultValues", "", "erasedParameterTypes", "member", "getMember", "()Ljava/lang/Void;", "parameterTypes", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "CallMode", "Origin", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nAnnotationConstructorCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,181:1\n1549#2:182\n1620#2,3:183\n1549#2:186\n1620#2,2:187\n1622#2:190\n1549#2:191\n1620#2,3:192\n1549#2:195\n1620#2,3:196\n1#3:189\n11155#4:199\n11266#4,4:200\n*S KotlinDebug\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller\n*L\n28#1:182\n28#1:183,3\n35#1:186\n35#1:187,2\n35#1:190\n37#1:191\n37#1:192,3\n20#1:195\n20#1:196,3\n53#1:199\n53#1:200,4\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class AnnotationConstructorCaller implements Caller {
|
||||
private final CallMode callMode;
|
||||
private final List<Object> defaultValues;
|
||||
private final List<Class<?>> erasedParameterTypes;
|
||||
private final Class<?> jClass;
|
||||
private final List<Method> methods;
|
||||
private final List<String> parameterNames;
|
||||
private final List<Type> parameterTypes;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;", "", "(Ljava/lang/String;I)V", "CALL_BY_NAME", "POSITIONAL_CALL", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class CallMode {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ CallMode[] $VALUES;
|
||||
public static final CallMode CALL_BY_NAME = new CallMode("CALL_BY_NAME", 0);
|
||||
public static final CallMode POSITIONAL_CALL = new CallMode("POSITIONAL_CALL", 1);
|
||||
|
||||
private static final /* synthetic */ CallMode[] $values() {
|
||||
return new CallMode[]{CALL_BY_NAME, POSITIONAL_CALL};
|
||||
}
|
||||
|
||||
static {
|
||||
CallMode[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private CallMode(String str, int i) {
|
||||
}
|
||||
|
||||
public static CallMode valueOf(String str) {
|
||||
return (CallMode) Enum.valueOf(CallMode.class, str);
|
||||
}
|
||||
|
||||
public static CallMode[] values() {
|
||||
return (CallMode[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;", "", "(Ljava/lang/String;I)V", "JAVA", "KOTLIN", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Origin {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ Origin[] $VALUES;
|
||||
public static final Origin JAVA = new Origin("JAVA", 0);
|
||||
public static final Origin KOTLIN = new Origin("KOTLIN", 1);
|
||||
|
||||
private static final /* synthetic */ Origin[] $values() {
|
||||
return new Origin[]{JAVA, KOTLIN};
|
||||
}
|
||||
|
||||
static {
|
||||
Origin[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private Origin(String str, int i) {
|
||||
}
|
||||
|
||||
public static Origin valueOf(String str) {
|
||||
return (Origin) Enum.valueOf(Origin.class, str);
|
||||
}
|
||||
|
||||
public static Origin[] values() {
|
||||
return (Origin[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
|
||||
public AnnotationConstructorCaller(Class<?> jClass, List<String> parameterNames, CallMode callMode, Origin origin, List<Method> methods) {
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
int collectionSizeOrDefault3;
|
||||
Intrinsics.checkNotNullParameter(jClass, "jClass");
|
||||
Intrinsics.checkNotNullParameter(parameterNames, "parameterNames");
|
||||
Intrinsics.checkNotNullParameter(callMode, "callMode");
|
||||
Intrinsics.checkNotNullParameter(origin, "origin");
|
||||
Intrinsics.checkNotNullParameter(methods, "methods");
|
||||
this.jClass = jClass;
|
||||
this.parameterNames = parameterNames;
|
||||
this.callMode = callMode;
|
||||
this.methods = methods;
|
||||
List<Method> list = methods;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((Method) it.next()).getGenericReturnType());
|
||||
}
|
||||
this.parameterTypes = arrayList;
|
||||
List<Method> list2 = this.methods;
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
Class<?> returnType = ((Method) it2.next()).getReturnType();
|
||||
Intrinsics.checkNotNull(returnType);
|
||||
Class<?> wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(returnType);
|
||||
if (wrapperByPrimitive != null) {
|
||||
returnType = wrapperByPrimitive;
|
||||
}
|
||||
arrayList2.add(returnType);
|
||||
}
|
||||
this.erasedParameterTypes = arrayList2;
|
||||
List<Method> list3 = this.methods;
|
||||
collectionSizeOrDefault3 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list3, 10);
|
||||
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault3);
|
||||
Iterator<T> it3 = list3.iterator();
|
||||
while (it3.hasNext()) {
|
||||
arrayList3.add(((Method) it3.next()).getDefaultValue());
|
||||
}
|
||||
this.defaultValues = arrayList3;
|
||||
if (this.callMode == CallMode.POSITIONAL_CALL && origin == Origin.JAVA && !CollectionsKt.minus(this.parameterNames, "value").isEmpty()) {
|
||||
throw new UnsupportedOperationException("Positional call of a Java annotation constructor is allowed only if there are no parameters or one parameter named \"value\". This restriction exists because Java annotations (in contrast to Kotlin)do not impose any order on their arguments. Use KCallable#callBy instead.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
ArrayList arrayList = new ArrayList(args.length);
|
||||
int length = args.length;
|
||||
int i = 0;
|
||||
int i4 = 0;
|
||||
while (i < length) {
|
||||
Object obj = args[i];
|
||||
int i5 = i4 + 1;
|
||||
Object transformKotlinToJvm = (obj == null && this.callMode == CallMode.CALL_BY_NAME) ? this.defaultValues.get(i4) : AnnotationConstructorCallerKt.transformKotlinToJvm(obj, this.erasedParameterTypes.get(i4));
|
||||
if (transformKotlinToJvm == null) {
|
||||
AnnotationConstructorCallerKt.throwIllegalArgumentType(i4, this.parameterNames.get(i4), this.erasedParameterTypes.get(i4));
|
||||
throw null;
|
||||
}
|
||||
arrayList.add(transformKotlinToJvm);
|
||||
i++;
|
||||
i4 = i5;
|
||||
}
|
||||
return AnnotationConstructorCallerKt.createAnnotationInstance(this.jClass, MapsKt.toMap(CollectionsKt.zip(this.parameterNames, arrayList)), this.methods);
|
||||
}
|
||||
|
||||
public void checkArguments(Object[] objArr) {
|
||||
Caller.DefaultImpls.checkArguments(this, objArr);
|
||||
}
|
||||
|
||||
public Void getMember() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public List<Type> getParameterTypes() {
|
||||
return this.parameterTypes;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Type getReturnType() {
|
||||
return this.jClass;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember, reason: collision with other method in class */
|
||||
public /* bridge */ /* synthetic */ Member mo1386getMember() {
|
||||
return (Member) getMember();
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public /* synthetic */ AnnotationConstructorCaller(java.lang.Class r7, java.util.List r8, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.CallMode r9, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.Origin r10, java.util.List r11, int r12, kotlin.jvm.internal.DefaultConstructorMarker r13) {
|
||||
/*
|
||||
r6 = this;
|
||||
r12 = r12 & 16
|
||||
if (r12 == 0) goto L32
|
||||
r11 = r8
|
||||
java.lang.Iterable r11 = (java.lang.Iterable) r11
|
||||
java.util.ArrayList r12 = new java.util.ArrayList
|
||||
int r13 = kotlin.collections.CollectionsKt.g(r11)
|
||||
r12.<init>(r13)
|
||||
java.util.Iterator r11 = r11.iterator()
|
||||
L14:
|
||||
boolean r13 = r11.hasNext()
|
||||
if (r13 == 0) goto L2b
|
||||
java.lang.Object r13 = r11.next()
|
||||
java.lang.String r13 = (java.lang.String) r13
|
||||
r0 = 0
|
||||
java.lang.Class[] r0 = new java.lang.Class[r0]
|
||||
java.lang.reflect.Method r13 = r7.getDeclaredMethod(r13, r0)
|
||||
r12.add(r13)
|
||||
goto L14
|
||||
L2b:
|
||||
r5 = r12
|
||||
L2c:
|
||||
r0 = r6
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r3 = r9
|
||||
r4 = r10
|
||||
goto L34
|
||||
L32:
|
||||
r5 = r11
|
||||
goto L2c
|
||||
L34:
|
||||
r0.<init>(r1, r2, r3, r4, r5)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.<init>(java.lang.Class, java.util.List, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller$CallMode, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller$Origin, java.util.List, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,336 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
|
||||
import kotlin.text.Typography;
|
||||
import kotlinx.coroutines.scheduling.WorkQueueKt;
|
||||
|
||||
@Metadata(d1 = {"\u00004\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\u001aI\u0010\u0000\u001a\u0002H\u0001\"\b\b\u0000\u0010\u0001*\u00020\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00010\u00042\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00020\u00062\u000e\b\u0002\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\tH\u0000¢\u0006\u0002\u0010\u000b\u001a$\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u00072\n\u0010\u0011\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0002\u001a\u001c\u0010\u0012\u001a\u0004\u0018\u00010\u0002*\u0004\u0018\u00010\u00022\n\u0010\u0013\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0002¨\u0006\u0014²\u0006\u0014\u0010\u0015\u001a\u00020\u000f\"\b\b\u0000\u0010\u0001*\u00020\u0002X\u008a\u0084\u0002²\u0006\u0014\u0010\u0016\u001a\u00020\u0007\"\b\b\u0000\u0010\u0001*\u00020\u0002X\u008a\u0084\u0002"}, d2 = {"createAnnotationInstance", "T", "", "annotationClass", "Ljava/lang/Class;", "values", "", "", "methods", "", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/util/Map;Ljava/util/List;)Ljava/lang/Object;", "throwIllegalArgumentType", "", FirebaseAnalytics.Param.INDEX, "", AppMeasurementSdk.ConditionalUserProperty.NAME, "expectedJvmType", "transformKotlinToJvm", "expectedType", "kotlin-reflection", "hashCode", "toString"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nAnnotationConstructorCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCallerKt\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,181:1\n11065#2:182\n11400#2,3:183\n37#3,2:186\n18#3:195\n1549#4:188\n1620#4,3:189\n1726#4,3:192\n26#5:196\n*S KotlinDebug\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCallerKt\n*L\n75#1:182\n75#1:183,3\n75#1:186,2\n173#1:195\n102#1:188\n102#1:189,3\n106#1:192,3\n173#1:196\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class AnnotationConstructorCallerKt {
|
||||
public static final <T> T createAnnotationInstance(final Class<T> annotationClass, final Map<String, ? extends Object> values, List<Method> methods) {
|
||||
Intrinsics.checkNotNullParameter(annotationClass, "annotationClass");
|
||||
Intrinsics.checkNotNullParameter(values, "values");
|
||||
Intrinsics.checkNotNullParameter(methods, "methods");
|
||||
Lazy lazy = LazyKt.lazy(new Function0<Integer>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$hashCode$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Integer invoke() {
|
||||
int hashCode;
|
||||
Iterator<T> it = values.entrySet().iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
Map.Entry entry = (Map.Entry) it.next();
|
||||
String str = (String) entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
if (value instanceof boolean[]) {
|
||||
hashCode = Arrays.hashCode((boolean[]) value);
|
||||
} else if (value instanceof char[]) {
|
||||
hashCode = Arrays.hashCode((char[]) value);
|
||||
} else if (value instanceof byte[]) {
|
||||
hashCode = Arrays.hashCode((byte[]) value);
|
||||
} else if (value instanceof short[]) {
|
||||
hashCode = Arrays.hashCode((short[]) value);
|
||||
} else if (value instanceof int[]) {
|
||||
hashCode = Arrays.hashCode((int[]) value);
|
||||
} else if (value instanceof float[]) {
|
||||
hashCode = Arrays.hashCode((float[]) value);
|
||||
} else if (value instanceof long[]) {
|
||||
hashCode = Arrays.hashCode((long[]) value);
|
||||
} else if (value instanceof double[]) {
|
||||
hashCode = Arrays.hashCode((double[]) value);
|
||||
} else {
|
||||
hashCode = value instanceof Object[] ? Arrays.hashCode((Object[]) value) : value.hashCode();
|
||||
}
|
||||
i += hashCode ^ (str.hashCode() * WorkQueueKt.MASK);
|
||||
}
|
||||
return Integer.valueOf(i);
|
||||
}
|
||||
});
|
||||
T t2 = (T) Proxy.newProxyInstance(annotationClass.getClassLoader(), new Class[]{annotationClass}, new InvocationHandler(annotationClass, values, LazyKt.lazy(new Function0<String>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$toString$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final String invoke() {
|
||||
Class<T> cls = annotationClass;
|
||||
Map<String, Object> map = values;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append('@');
|
||||
sb.append(cls.getCanonicalName());
|
||||
CollectionsKt___CollectionsKt.joinTo$default(map.entrySet(), sb, ", ", "(", ")", 0, null, new Function1<Map.Entry<? extends String, ? extends Object>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$toString$2$1$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ CharSequence invoke(Map.Entry<? extends String, ? extends Object> entry) {
|
||||
return invoke2((Map.Entry<String, ? extends Object>) entry);
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public final CharSequence invoke2(Map.Entry<String, ? extends Object> entry) {
|
||||
String obj;
|
||||
Intrinsics.checkNotNullParameter(entry, "entry");
|
||||
String key = entry.getKey();
|
||||
Object value = entry.getValue();
|
||||
if (value instanceof boolean[]) {
|
||||
obj = Arrays.toString((boolean[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof char[]) {
|
||||
obj = Arrays.toString((char[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof byte[]) {
|
||||
obj = Arrays.toString((byte[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof short[]) {
|
||||
obj = Arrays.toString((short[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof int[]) {
|
||||
obj = Arrays.toString((int[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof float[]) {
|
||||
obj = Arrays.toString((float[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof long[]) {
|
||||
obj = Arrays.toString((long[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof double[]) {
|
||||
obj = Arrays.toString((double[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else if (value instanceof Object[]) {
|
||||
obj = Arrays.toString((Object[]) value);
|
||||
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
|
||||
} else {
|
||||
obj = value.toString();
|
||||
}
|
||||
return key + '=' + obj;
|
||||
}
|
||||
}, 48, null);
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
}), lazy, methods) { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$$Lambda$0
|
||||
private final Class arg$0;
|
||||
private final Map arg$1;
|
||||
private final Lazy arg$2;
|
||||
private final Lazy arg$3;
|
||||
private final List arg$4;
|
||||
|
||||
{
|
||||
this.arg$0 = annotationClass;
|
||||
this.arg$1 = values;
|
||||
this.arg$2 = r3;
|
||||
this.arg$3 = lazy;
|
||||
this.arg$4 = methods;
|
||||
}
|
||||
|
||||
@Override // java.lang.reflect.InvocationHandler
|
||||
public Object invoke(Object obj, Method method, Object[] objArr) {
|
||||
Object createAnnotationInstance$lambda$4;
|
||||
createAnnotationInstance$lambda$4 = AnnotationConstructorCallerKt.createAnnotationInstance$lambda$4(this.arg$0, this.arg$1, this.arg$2, this.arg$3, this.arg$4, obj, method, objArr);
|
||||
return createAnnotationInstance$lambda$4;
|
||||
}
|
||||
});
|
||||
Intrinsics.checkNotNull(t2, "null cannot be cast to non-null type T of kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt.createAnnotationInstance");
|
||||
return t2;
|
||||
}
|
||||
|
||||
public static /* synthetic */ Object createAnnotationInstance$default(Class cls, Map map, List list, int i, Object obj) {
|
||||
int collectionSizeOrDefault;
|
||||
if ((i & 4) != 0) {
|
||||
Set keySet = map.keySet();
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(keySet, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = keySet.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(cls.getDeclaredMethod((String) it.next(), new Class[0]));
|
||||
}
|
||||
list = arrayList;
|
||||
}
|
||||
return createAnnotationInstance(cls, map, list);
|
||||
}
|
||||
|
||||
private static final <T> boolean createAnnotationInstance$equals(Class<T> cls, List<Method> list, Map<String, ? extends Object> map, Object obj) {
|
||||
boolean areEqual;
|
||||
boolean z3;
|
||||
KClass annotationClass;
|
||||
Class cls2 = null;
|
||||
Annotation annotation = obj instanceof Annotation ? (Annotation) obj : null;
|
||||
if (annotation != null && (annotationClass = JvmClassMappingKt.getAnnotationClass(annotation)) != null) {
|
||||
cls2 = JvmClassMappingKt.getJavaClass(annotationClass);
|
||||
}
|
||||
if (Intrinsics.areEqual(cls2, cls)) {
|
||||
List<Method> list2 = list;
|
||||
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
|
||||
for (Method method : list2) {
|
||||
Object obj2 = map.get(method.getName());
|
||||
Object invoke = method.invoke(obj, new Object[0]);
|
||||
if (obj2 instanceof boolean[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.BooleanArray");
|
||||
areEqual = Arrays.equals((boolean[]) obj2, (boolean[]) invoke);
|
||||
} else if (obj2 instanceof char[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.CharArray");
|
||||
areEqual = Arrays.equals((char[]) obj2, (char[]) invoke);
|
||||
} else if (obj2 instanceof byte[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.ByteArray");
|
||||
areEqual = Arrays.equals((byte[]) obj2, (byte[]) invoke);
|
||||
} else if (obj2 instanceof short[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.ShortArray");
|
||||
areEqual = Arrays.equals((short[]) obj2, (short[]) invoke);
|
||||
} else if (obj2 instanceof int[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.IntArray");
|
||||
areEqual = Arrays.equals((int[]) obj2, (int[]) invoke);
|
||||
} else if (obj2 instanceof float[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.FloatArray");
|
||||
areEqual = Arrays.equals((float[]) obj2, (float[]) invoke);
|
||||
} else if (obj2 instanceof long[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.LongArray");
|
||||
areEqual = Arrays.equals((long[]) obj2, (long[]) invoke);
|
||||
} else if (obj2 instanceof double[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.DoubleArray");
|
||||
areEqual = Arrays.equals((double[]) obj2, (double[]) invoke);
|
||||
} else if (obj2 instanceof Object[]) {
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<*>");
|
||||
areEqual = Arrays.equals((Object[]) obj2, (Object[]) invoke);
|
||||
} else {
|
||||
areEqual = Intrinsics.areEqual(obj2, invoke);
|
||||
}
|
||||
if (!areEqual) {
|
||||
z3 = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
z3 = true;
|
||||
if (z3) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static final int createAnnotationInstance$lambda$2(Lazy<Integer> lazy) {
|
||||
return lazy.getValue().intValue();
|
||||
}
|
||||
|
||||
private static final String createAnnotationInstance$lambda$3(Lazy<String> lazy) {
|
||||
return lazy.getValue();
|
||||
}
|
||||
|
||||
public static final Object createAnnotationInstance$lambda$4(Class annotationClass, Map values, Lazy toString$delegate, Lazy hashCode$delegate, List methods, Object obj, Method method, Object[] objArr) {
|
||||
Intrinsics.checkNotNullParameter(annotationClass, "$annotationClass");
|
||||
Intrinsics.checkNotNullParameter(values, "$values");
|
||||
Intrinsics.checkNotNullParameter(toString$delegate, "$toString$delegate");
|
||||
Intrinsics.checkNotNullParameter(hashCode$delegate, "$hashCode$delegate");
|
||||
Intrinsics.checkNotNullParameter(methods, "$methods");
|
||||
String name = method.getName();
|
||||
if (name != null) {
|
||||
int hashCode = name.hashCode();
|
||||
if (hashCode != -1776922004) {
|
||||
if (hashCode != 147696667) {
|
||||
if (hashCode == 1444986633 && name.equals("annotationType")) {
|
||||
return annotationClass;
|
||||
}
|
||||
} else if (name.equals("hashCode")) {
|
||||
return Integer.valueOf(createAnnotationInstance$lambda$2(hashCode$delegate));
|
||||
}
|
||||
} else if (name.equals("toString")) {
|
||||
return createAnnotationInstance$lambda$3(toString$delegate);
|
||||
}
|
||||
}
|
||||
if (Intrinsics.areEqual(name, "equals") && objArr != null && objArr.length == 1) {
|
||||
Intrinsics.checkNotNull(objArr);
|
||||
return Boolean.valueOf(createAnnotationInstance$equals(annotationClass, methods, values, ArraysKt.single(objArr)));
|
||||
}
|
||||
if (values.containsKey(name)) {
|
||||
return values.get(name);
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Method is not supported: ");
|
||||
sb.append(method);
|
||||
sb.append(" (args: ");
|
||||
if (objArr == null) {
|
||||
objArr = new Object[0];
|
||||
}
|
||||
sb.append(ArraysKt.toList(objArr));
|
||||
sb.append(')');
|
||||
throw new KotlinReflectionInternalError(sb.toString());
|
||||
}
|
||||
|
||||
public static final Void throwIllegalArgumentType(int i, String str, Class<?> cls) {
|
||||
String qualifiedName;
|
||||
KClass orCreateKotlinClass = Intrinsics.areEqual(cls, Class.class) ? Reflection.getOrCreateKotlinClass(KClass.class) : (cls.isArray() && Intrinsics.areEqual(cls.getComponentType(), Class.class)) ? Reflection.getOrCreateKotlinClass(KClass[].class) : JvmClassMappingKt.getKotlinClass(cls);
|
||||
if (Intrinsics.areEqual(orCreateKotlinClass.getQualifiedName(), Reflection.getOrCreateKotlinClass(Object[].class).getQualifiedName())) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(orCreateKotlinClass.getQualifiedName());
|
||||
sb.append(Typography.less);
|
||||
Class<?> componentType = JvmClassMappingKt.getJavaClass(orCreateKotlinClass).getComponentType();
|
||||
Intrinsics.checkNotNullExpressionValue(componentType, "getComponentType(...)");
|
||||
sb.append(JvmClassMappingKt.getKotlinClass(componentType).getQualifiedName());
|
||||
sb.append(Typography.greater);
|
||||
qualifiedName = sb.toString();
|
||||
} else {
|
||||
qualifiedName = orCreateKotlinClass.getQualifiedName();
|
||||
}
|
||||
throw new IllegalArgumentException("Argument #" + i + ' ' + str + " is not of the required type " + qualifiedName);
|
||||
}
|
||||
|
||||
public static final Object transformKotlinToJvm(Object obj, Class<?> cls) {
|
||||
if (obj instanceof Class) {
|
||||
return null;
|
||||
}
|
||||
if (obj instanceof KClass) {
|
||||
obj = JvmClassMappingKt.getJavaClass((KClass) obj);
|
||||
} else if (obj instanceof Object[]) {
|
||||
Object[] objArr = (Object[]) obj;
|
||||
if (objArr instanceof Class[]) {
|
||||
return null;
|
||||
}
|
||||
if (objArr instanceof KClass[]) {
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.Array<kotlin.reflect.KClass<*>>");
|
||||
KClass[] kClassArr = (KClass[]) obj;
|
||||
ArrayList arrayList = new ArrayList(kClassArr.length);
|
||||
for (KClass kClass : kClassArr) {
|
||||
arrayList.add(JvmClassMappingKt.getJavaClass(kClass));
|
||||
}
|
||||
obj = arrayList.toArray(new Class[0]);
|
||||
} else {
|
||||
obj = objArr;
|
||||
}
|
||||
}
|
||||
if (cls.isInstance(obj)) {
|
||||
return obj;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bf\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface BoundCaller {
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\b`\u0018\u0000*\f\b\u0000\u0010\u0001 \u0001*\u0004\u0018\u00010\u00022\u00020\u0003J\u001b\u0010\u000f\u001a\u0004\u0018\u00010\u00032\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0011H&¢\u0006\u0002\u0010\u0012J\u0019\u0010\u0013\u001a\u00020\u00142\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0011H\u0016¢\u0006\u0002\u0010\u0015R\u0012\u0010\u0004\u001a\u00028\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0018\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0012\u0010\f\u001a\u00020\tX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e¨\u0006\u0016"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/Caller;", "M", "Ljava/lang/reflect/Member;", "", "member", "getMember", "()Ljava/lang/reflect/Member;", "parameterTypes", "", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "checkArguments", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface Caller<M extends Member> {
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class DefaultImpls {
|
||||
public static <M extends Member> void checkArguments(Caller<? extends M> caller, Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
if (CallerKt.getArity(caller) == args.length) {
|
||||
return;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Callable expects ");
|
||||
sb.append(CallerKt.getArity(caller));
|
||||
sb.append(" arguments, but ");
|
||||
throw new IllegalArgumentException(a.m(sb, args.length, " were provided."));
|
||||
}
|
||||
}
|
||||
|
||||
Object call(Object[] args);
|
||||
|
||||
/* renamed from: getMember */
|
||||
M mo1386getMember();
|
||||
|
||||
List<Type> getParameterTypes();
|
||||
|
||||
Type getReturnType();
|
||||
}
|
||||
@@ -0,0 +1,850 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.SpreadBuilder;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
|
||||
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u0000 \u001e*\n\b\u0000\u0010\u0001 \u0001*\u00020\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\b\u001b\u001c\u001d\u001e\u001f !\"B3\b\u0004\u0012\u0006\u0010\u0004\u001a\u00028\u0000\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0002\b\u0003\u0018\u00010\b\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00060\n¢\u0006\u0002\u0010\u000bJ\u0012\u0010\u0017\u001a\u00020\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0004R\u0017\u0010\u0007\u001a\b\u0012\u0002\b\u0003\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0013\u0010\u0004\u001a\u00028\u0000¢\u0006\n\n\u0002\u0010\u0010\u001a\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00060\u0012X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016\u0082\u0001\u0007#$%&'()¨\u0006*"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "M", "Ljava/lang/reflect/Member;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "member", "returnType", "Ljava/lang/reflect/Type;", "instanceClass", "Ljava/lang/Class;", "valueParameterTypes", "", "(Ljava/lang/reflect/Member;Ljava/lang/reflect/Type;Ljava/lang/Class;[Ljava/lang/reflect/Type;)V", "getInstanceClass", "()Ljava/lang/Class;", "getMember", "()Ljava/lang/reflect/Member;", "Ljava/lang/reflect/Member;", "parameterTypes", "", "getParameterTypes", "()Ljava/util/List;", "getReturnType", "()Ljava/lang/reflect/Type;", "checkObjectInstance", "", "obj", "", "AccessorForHiddenBoundConstructor", "AccessorForHiddenConstructor", "BoundConstructor", "Companion", "Constructor", "FieldGetter", "FieldSetter", "Method", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$BoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Constructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,265:1\n1#2:266\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class CallerImpl<M extends Member> implements Caller<M> {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private final Class<?> instanceClass;
|
||||
private final M member;
|
||||
private final List<Type> parameterTypes;
|
||||
private final Type returnType;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u00012\u00020\u0003B\u001b\u0012\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0002\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "constructor", "boundReceiver", "", "(Ljava/lang/reflect/Constructor;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n262#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor\n*L\n76#1:266\n76#1:267\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class AccessorForHiddenBoundConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public AccessorForHiddenBoundConstructor(java.lang.reflect.Constructor<?> r8, java.lang.Object r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "constructor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.Class r3 = r8.getDeclaringClass()
|
||||
java.lang.String r0 = "getDeclaringClass(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
java.lang.reflect.Type[] r0 = r8.getGenericParameterTypes()
|
||||
java.lang.String r1 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
|
||||
int r1 = r0.length
|
||||
r2 = 2
|
||||
if (r1 > r2) goto L1f
|
||||
r0 = 0
|
||||
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r0]
|
||||
goto L26
|
||||
L1f:
|
||||
int r1 = r0.length
|
||||
r2 = 1
|
||||
int r1 = r1 - r2
|
||||
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r2, r1)
|
||||
L26:
|
||||
r5 = r0
|
||||
java.lang.reflect.Type[] r5 = (java.lang.reflect.Type[]) r5
|
||||
r6 = 0
|
||||
r4 = 0
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
r1.boundReceiver = r9
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.AccessorForHiddenBoundConstructor.<init>(java.lang.reflect.Constructor, java.lang.Object):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
|
||||
SpreadBuilder spreadBuilder = new SpreadBuilder(3);
|
||||
spreadBuilder.add(this.boundReceiver);
|
||||
spreadBuilder.addSpread(args);
|
||||
spreadBuilder.add(null);
|
||||
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001B\u0011\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0002¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "(Ljava/lang/reflect/Constructor;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n258#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor\n*L\n62#1:266\n62#1:267\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class AccessorForHiddenConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> {
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public AccessorForHiddenConstructor(java.lang.reflect.Constructor<?> r8) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "constructor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.Class r3 = r8.getDeclaringClass()
|
||||
java.lang.String r0 = "getDeclaringClass(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
java.lang.reflect.Type[] r0 = r8.getGenericParameterTypes()
|
||||
java.lang.String r1 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
|
||||
int r1 = r0.length
|
||||
r2 = 0
|
||||
r4 = 1
|
||||
if (r1 > r4) goto L1f
|
||||
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r2]
|
||||
goto L25
|
||||
L1f:
|
||||
int r1 = r0.length
|
||||
int r1 = r1 - r4
|
||||
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r2, r1)
|
||||
L25:
|
||||
r5 = r0
|
||||
java.lang.reflect.Type[] r5 = (java.lang.reflect.Type[]) r5
|
||||
r6 = 0
|
||||
r4 = 0
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.AccessorForHiddenConstructor.<init>(java.lang.reflect.Constructor):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
|
||||
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
|
||||
spreadBuilder.addSpread(args);
|
||||
spreadBuilder.add(null);
|
||||
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00030\u0002B\u001b\u0012\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$BoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "boundReceiver", "", "(Ljava/lang/reflect/Constructor;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public BoundConstructor(java.lang.reflect.Constructor<?> r8, java.lang.Object r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "constructor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.Class r3 = r8.getDeclaringClass()
|
||||
java.lang.String r0 = "getDeclaringClass(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
java.lang.reflect.Type[] r5 = r8.getGenericParameterTypes()
|
||||
java.lang.String r0 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
|
||||
r6 = 0
|
||||
r4 = 0
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
r1.boundReceiver = r9
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.BoundConstructor.<init>(java.lang.reflect.Constructor, java.lang.Object):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
|
||||
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
|
||||
spreadBuilder.add(this.boundReceiver);
|
||||
spreadBuilder.addSpread(args);
|
||||
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J(\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006J(\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006J(\u0010\b\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Companion;", "", "()V", "dropFirst", "", "T", "([Ljava/lang/Object;)[Ljava/lang/Object;", "dropFirstAndLast", "dropLast", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 2 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n26#2:266\n26#2:267\n26#2:268\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n*L\n254#1:266\n258#1:267\n262#1:268\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001B\u0011\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0002¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Constructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "(Ljava/lang/reflect/Constructor;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Constructor extends CallerImpl<java.lang.reflect.Constructor<?>> {
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public Constructor(java.lang.reflect.Constructor<?> r8) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "constructor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.Class r3 = r8.getDeclaringClass()
|
||||
java.lang.String r0 = "getDeclaringClass(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
java.lang.Class r0 = r8.getDeclaringClass()
|
||||
java.lang.Class r1 = r0.getDeclaringClass()
|
||||
if (r1 == 0) goto L24
|
||||
int r0 = r0.getModifiers()
|
||||
boolean r0 = java.lang.reflect.Modifier.isStatic(r0)
|
||||
if (r0 != 0) goto L24
|
||||
L22:
|
||||
r4 = r1
|
||||
goto L26
|
||||
L24:
|
||||
r1 = 0
|
||||
goto L22
|
||||
L26:
|
||||
java.lang.reflect.Type[] r5 = r8.getGenericParameterTypes()
|
||||
java.lang.String r0 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
|
||||
r6 = 0
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Constructor.<init>(java.lang.reflect.Constructor):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return mo1386getMember().newInstance(Arrays.copyOf(args, args.length));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0005\f\r\u000e\u000f\u0010B\u0017\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u001b\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000b\u0082\u0001\u0005\u0011\u0012\u0013\u0014\u0015¨\u0006\u0016"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Field;", "field", "requiresInstance", "", "(Ljava/lang/reflect/Field;Z)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "BoundInstance", "BoundJvmStaticInObject", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter\n+ 2 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n26#2:266\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter\n*L\n172#1:266\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class FieldGetter extends CallerImpl<Field> {
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "boundReceiver", "", "(Ljava/lang/reflect/Field;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundInstance extends FieldGetter implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundInstance(Field field, Object obj) {
|
||||
super(field, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
this.boundReceiver = obj;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldGetter, kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return mo1386getMember().get(this.boundReceiver);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundJvmStaticInObject extends FieldGetter implements BoundCaller {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundJvmStaticInObject(Field field) {
|
||||
super(field, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Instance extends FieldGetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Instance(Field field) {
|
||||
super(field, true, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0019\u0010\u0005\u001a\u00020\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "checkArguments", "", "args", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JvmStaticInObject extends FieldGetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JvmStaticInObject(Field field) {
|
||||
super(field, true, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl
|
||||
public void checkArguments(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
super.checkArguments(args);
|
||||
checkObjectInstance(ArraysKt.firstOrNull(args));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Static extends FieldGetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Static(Field field) {
|
||||
super(field, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ FieldGetter(Field field, boolean z3, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(field, z3);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return mo1386getMember().get(getInstanceClass() != null ? ArraysKt.first(args) : null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private FieldGetter(java.lang.reflect.Field r7, boolean r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.reflect.Type r2 = r7.getGenericType()
|
||||
java.lang.String r0 = "getGenericType(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
|
||||
if (r8 == 0) goto L11
|
||||
java.lang.Class r8 = r7.getDeclaringClass()
|
||||
Lf:
|
||||
r3 = r8
|
||||
goto L13
|
||||
L11:
|
||||
r8 = 0
|
||||
goto Lf
|
||||
L13:
|
||||
r8 = 0
|
||||
java.lang.reflect.Type[] r4 = new java.lang.reflect.Type[r8]
|
||||
r5 = 0
|
||||
r0 = r6
|
||||
r1 = r7
|
||||
r0.<init>(r1, r2, r3, r4, r5)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.FieldGetter.<init>(java.lang.reflect.Field, boolean):void");
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0005\u0010\u0011\u0012\u0013\u0014B\u001f\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\t2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\fJ\u0019\u0010\r\u001a\u00020\u000e2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\u000fR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u0005\u0015\u0016\u0017\u0018\u0019¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Field;", "field", "notNull", "", "requiresInstance", "(Ljava/lang/reflect/Field;ZZ)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "checkArguments", "", "([Ljava/lang/Object;)V", "BoundInstance", "BoundJvmStaticInObject", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class FieldSetter extends CallerImpl<Field> {
|
||||
private final boolean notNull;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u001f\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\u0002\u0010\tJ\u0019\u0010\n\u001a\u00020\b2\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\fH\u0016¢\u0006\u0002\u0010\rR\u0010\u0010\u0007\u001a\u0004\u0018\u00010\bX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "boundReceiver", "", "(Ljava/lang/reflect/Field;ZLjava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundInstance extends FieldSetter implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundInstance(Field field, boolean z3, Object obj) {
|
||||
super(field, z3, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
this.boundReceiver = obj;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
mo1386getMember().set(this.boundReceiver, ArraysKt.first(args));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0019\u0010\b\u001a\u00020\t2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\f¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundJvmStaticInObject extends FieldSetter implements BoundCaller {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundJvmStaticInObject(Field field, boolean z3) {
|
||||
super(field, z3, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
mo1386getMember().set(null, ArraysKt.last(args));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Instance extends FieldSetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Instance(Field field, boolean z3) {
|
||||
super(field, z3, true, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0019\u0010\u0007\u001a\u00020\b2\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000b¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "checkArguments", "", "args", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JvmStaticInObject extends FieldSetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JvmStaticInObject(Field field, boolean z3) {
|
||||
super(field, z3, true, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.CallerImpl
|
||||
public void checkArguments(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
super.checkArguments(args);
|
||||
checkObjectInstance(ArraysKt.firstOrNull(args));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Static extends FieldSetter {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Static(Field field, boolean z3) {
|
||||
super(field, z3, false, null);
|
||||
Intrinsics.checkNotNullParameter(field, "field");
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ FieldSetter(Field field, boolean z3, boolean z4, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(field, z3, z4);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
mo1386getMember().set(getInstanceClass() != null ? ArraysKt.first(args) : null, ArraysKt.last(args));
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl
|
||||
public void checkArguments(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
super.checkArguments(args);
|
||||
if (this.notNull && ArraysKt.last(args) == null) {
|
||||
throw new IllegalArgumentException("null is not allowed as a value for this property.");
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private FieldSetter(java.lang.reflect.Field r8, boolean r9, boolean r10) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.String r0 = "TYPE"
|
||||
java.lang.Class r3 = java.lang.Void.TYPE
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
if (r10 == 0) goto Lf
|
||||
java.lang.Class r10 = r8.getDeclaringClass()
|
||||
Ld:
|
||||
r4 = r10
|
||||
goto L11
|
||||
Lf:
|
||||
r10 = 0
|
||||
goto Ld
|
||||
L11:
|
||||
java.lang.reflect.Type r10 = r8.getGenericType()
|
||||
java.lang.String r0 = "getGenericType(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r10, r0)
|
||||
r0 = 1
|
||||
java.lang.reflect.Type[] r5 = new java.lang.reflect.Type[r0]
|
||||
r0 = 0
|
||||
r5[r0] = r10
|
||||
r6 = 0
|
||||
r1 = r7
|
||||
r2 = r8
|
||||
r1.<init>(r2, r3, r4, r5, r6)
|
||||
r1.notNull = r9
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter.<init>(java.lang.reflect.Field, boolean, boolean):void");
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0007\u0010\u0011\u0012\u0013\u0014\u0015\u0016B)\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\u000e\b\u0002\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\u0002\u0010\tJ%\u0010\u000b\u001a\u0004\u0018\u00010\f2\b\u0010\r\u001a\u0004\u0018\u00010\f2\n\u0010\u000e\u001a\u0006\u0012\u0002\b\u00030\u0007H\u0004¢\u0006\u0002\u0010\u000fR\u000e\u0010\n\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u0007\u0017\u0018\u0019\u001a\u001b\u001c\u001d¨\u0006\u001e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Method;", FirebaseAnalytics.Param.METHOD, "requiresInstance", "", "parameterTypes", "", "Ljava/lang/reflect/Type;", "(Ljava/lang/reflect/Method;Z[Ljava/lang/reflect/Type;)V", "isVoidMethod", "callMethod", "", "instance", "args", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;", "BoundInstance", "BoundJvmStaticInObject", "BoundStatic", "BoundStaticMultiFieldValueClass", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static abstract class Method extends CallerImpl<java.lang.reflect.Method> {
|
||||
private final boolean isVoidMethod;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiver", "", "(Ljava/lang/reflect/Method;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundInstance extends Method implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundInstance(java.lang.reflect.Method method, Object obj) {
|
||||
super(method, false, null, 4, null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
this.boundReceiver = obj;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return callMethod(this.boundReceiver, args);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u001b\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\u0010\b\u001a\u0006\u0012\u0002\b\u00030\tH\u0016¢\u0006\u0002\u0010\n¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundJvmStaticInObject extends Method implements BoundCaller {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public BoundJvmStaticInObject(java.lang.reflect.Method method) {
|
||||
super(method, false, null, 4, null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return callMethod(null, args);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\n\u001a\u0004\u0018\u00010\u00062\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\fH\u0016¢\u0006\u0002\u0010\rR\u0016\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiver", "", "(Ljava/lang/reflect/Method;Ljava/lang/Object;)V", "getBoundReceiver$kotlin_reflection", "()Ljava/lang/Object;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic\n*L\n126#1:266\n126#1:267\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundStatic extends Method implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public BoundStatic(java.lang.reflect.Method r5, java.lang.Object r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
java.lang.String r0 = "method"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
|
||||
java.lang.reflect.Type[] r0 = r5.getGenericParameterTypes()
|
||||
java.lang.String r1 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
|
||||
int r1 = r0.length
|
||||
r2 = 0
|
||||
r3 = 1
|
||||
if (r1 > r3) goto L16
|
||||
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r2]
|
||||
goto L1b
|
||||
L16:
|
||||
int r1 = r0.length
|
||||
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r3, r1)
|
||||
L1b:
|
||||
java.lang.reflect.Type[] r0 = (java.lang.reflect.Type[]) r0
|
||||
r1 = 0
|
||||
r4.<init>(r5, r2, r0, r1)
|
||||
r4.boundReceiver = r6
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStatic.<init>(java.lang.reflect.Method, java.lang.Object):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
|
||||
spreadBuilder.add(this.boundReceiver);
|
||||
spreadBuilder.addSpread(args);
|
||||
return callMethod(null, spreadBuilder.toArray(new Object[spreadBuilder.size()]));
|
||||
}
|
||||
|
||||
/* renamed from: getBoundReceiver$kotlin_reflection, reason: from getter */
|
||||
public final Object getBoundReceiver() {
|
||||
return this.boundReceiver;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0006\u0018\u00002\u00020\u00012\u00020\u0002B\u001d\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u000e\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006¢\u0006\u0002\u0010\bJ\u001b\u0010\u0010\u001a\u0004\u0018\u00010\u00072\n\u0010\u0011\u001a\u0006\u0012\u0002\b\u00030\u0006H\u0016¢\u0006\u0002\u0010\u0012R\u001e\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006X\u0080\u0004¢\u0006\n\n\u0002\u0010\u000b\u001a\u0004\b\t\u0010\nR\u0011\u0010\f\u001a\u00020\r8F¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0013"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiverComponents", "", "", "(Ljava/lang/reflect/Method;[Ljava/lang/Object;)V", "getBoundReceiverComponents$kotlin_reflection", "()[Ljava/lang/Object;", "[Ljava/lang/Object;", "receiverComponentsCount", "", "getReceiverComponentsCount", "()I", "call", "args", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,265:1\n37#2,2:266\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass\n*L\n139#1:266,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoundStaticMultiFieldValueClass extends Method implements BoundCaller {
|
||||
private final Object[] boundReceiverComponents;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public BoundStaticMultiFieldValueClass(java.lang.reflect.Method r4, java.lang.Object[] r5) {
|
||||
/*
|
||||
r3 = this;
|
||||
java.lang.String r0 = "method"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r0)
|
||||
java.lang.String r0 = "boundReceiverComponents"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
|
||||
java.lang.reflect.Type[] r0 = r4.getGenericParameterTypes()
|
||||
java.lang.String r1 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
|
||||
int r1 = r5.length
|
||||
java.util.List r0 = kotlin.collections.ArraysKt.drop(r0, r1)
|
||||
java.util.Collection r0 = (java.util.Collection) r0
|
||||
r1 = 0
|
||||
java.lang.reflect.Type[] r2 = new java.lang.reflect.Type[r1]
|
||||
java.lang.Object[] r0 = r0.toArray(r2)
|
||||
java.lang.reflect.Type[] r0 = (java.lang.reflect.Type[]) r0
|
||||
r2 = 0
|
||||
r3.<init>(r4, r1, r0, r2)
|
||||
r3.boundReceiverComponents = r5
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStaticMultiFieldValueClass.<init>(java.lang.reflect.Method, java.lang.Object[]):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
|
||||
spreadBuilder.addSpread(this.boundReceiverComponents);
|
||||
spreadBuilder.addSpread(args);
|
||||
return callMethod(null, spreadBuilder.toArray(new Object[spreadBuilder.size()]));
|
||||
}
|
||||
|
||||
/* renamed from: getBoundReceiverComponents$kotlin_reflection, reason: from getter */
|
||||
public final Object[] getBoundReceiverComponents() {
|
||||
return this.boundReceiverComponents;
|
||||
}
|
||||
|
||||
public final int getReceiverComponentsCount() {
|
||||
return this.boundReceiverComponents.length;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance\n*L\n113#1:266\n113#1:267\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Instance extends Method {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Instance(java.lang.reflect.Method method) {
|
||||
super(method, false, null, 6, null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return callMethod(args[0], args.length <= 1 ? new Object[0] : ArraysKt.copyOfRange(args, 1, args.length));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject\n*L\n121#1:266\n121#1:267\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JvmStaticInObject extends Method {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JvmStaticInObject(java.lang.reflect.Method method) {
|
||||
super(method, true, null, 4, null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
checkObjectInstance(ArraysKt.firstOrNull(args));
|
||||
return callMethod(null, args.length <= 1 ? new Object[0] : ArraysKt.copyOfRange(args, 1, args.length));
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Static extends Method {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Static(java.lang.reflect.Method method) {
|
||||
super(method, false, null, 6, null);
|
||||
Intrinsics.checkNotNullParameter(method, "method");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return callMethod(null, args);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ Method(java.lang.reflect.Method method, boolean z3, Type[] typeArr, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(method, z3, typeArr);
|
||||
}
|
||||
|
||||
public final Object callMethod(Object instance, Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
return this.isVoidMethod ? Unit.INSTANCE : mo1386getMember().invoke(instance, Arrays.copyOf(args, args.length));
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public /* synthetic */ Method(java.lang.reflect.Method r1, boolean r2, java.lang.reflect.Type[] r3, int r4, kotlin.jvm.internal.DefaultConstructorMarker r5) {
|
||||
/*
|
||||
r0 = this;
|
||||
r5 = r4 & 2
|
||||
if (r5 == 0) goto Le
|
||||
int r2 = r1.getModifiers()
|
||||
boolean r2 = java.lang.reflect.Modifier.isStatic(r2)
|
||||
r2 = r2 ^ 1
|
||||
Le:
|
||||
r4 = r4 & 4
|
||||
if (r4 == 0) goto L1b
|
||||
java.lang.reflect.Type[] r3 = r1.getGenericParameterTypes()
|
||||
java.lang.String r4 = "getGenericParameterTypes(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r4)
|
||||
L1b:
|
||||
r4 = 0
|
||||
r0.<init>(r1, r2, r3, r4)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.<init>(java.lang.reflect.Method, boolean, java.lang.reflect.Type[], int, kotlin.jvm.internal.DefaultConstructorMarker):void");
|
||||
}
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private Method(java.lang.reflect.Method r7, boolean r8, java.lang.reflect.Type[] r9) {
|
||||
/*
|
||||
r6 = this;
|
||||
java.lang.reflect.Type r2 = r7.getGenericReturnType()
|
||||
java.lang.String r0 = "getGenericReturnType(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
|
||||
if (r8 == 0) goto L11
|
||||
java.lang.Class r8 = r7.getDeclaringClass()
|
||||
Lf:
|
||||
r3 = r8
|
||||
goto L13
|
||||
L11:
|
||||
r8 = 0
|
||||
goto Lf
|
||||
L13:
|
||||
r5 = 0
|
||||
r0 = r6
|
||||
r1 = r7
|
||||
r4 = r9
|
||||
r0.<init>(r1, r2, r3, r4, r5)
|
||||
java.lang.reflect.Type r6 = r0.getReturnType()
|
||||
java.lang.Class r7 = java.lang.Void.TYPE
|
||||
boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual(r6, r7)
|
||||
r0.isVoidMethod = r6
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.<init>(java.lang.reflect.Method, boolean, java.lang.reflect.Type[]):void");
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ CallerImpl(Member member, Type type, Class cls, Type[] typeArr, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(member, type, cls, typeArr);
|
||||
}
|
||||
|
||||
public void checkArguments(Object[] objArr) {
|
||||
Caller.DefaultImpls.checkArguments(this, objArr);
|
||||
}
|
||||
|
||||
public final void checkObjectInstance(Object obj) {
|
||||
if (obj == null || !this.member.getDeclaringClass().isInstance(obj)) {
|
||||
throw new IllegalArgumentException("An object member requires the object instance passed as the first argument.");
|
||||
}
|
||||
}
|
||||
|
||||
public final Class<?> getInstanceClass() {
|
||||
return this.instanceClass;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember */
|
||||
public final M mo1386getMember() {
|
||||
return this.member;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public List<Type> getParameterTypes() {
|
||||
return this.parameterTypes;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public final Type getReturnType() {
|
||||
return this.returnType;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:4:0x0025, code lost:
|
||||
|
||||
if (r1 == null) goto L6;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private CallerImpl(M r1, java.lang.reflect.Type r2, java.lang.Class<?> r3, java.lang.reflect.Type[] r4) {
|
||||
/*
|
||||
r0 = this;
|
||||
r0.<init>()
|
||||
r0.member = r1
|
||||
r0.returnType = r2
|
||||
r0.instanceClass = r3
|
||||
if (r3 == 0) goto L27
|
||||
kotlin.jvm.internal.SpreadBuilder r1 = new kotlin.jvm.internal.SpreadBuilder
|
||||
r2 = 2
|
||||
r1.<init>(r2)
|
||||
r1.add(r3)
|
||||
r1.addSpread(r4)
|
||||
int r2 = r1.size()
|
||||
java.lang.reflect.Type[] r2 = new java.lang.reflect.Type[r2]
|
||||
java.lang.Object[] r1 = r1.toArray(r2)
|
||||
java.util.List r1 = kotlin.collections.CollectionsKt.listOf(r1)
|
||||
if (r1 != 0) goto L2b
|
||||
L27:
|
||||
java.util.List r1 = kotlin.collections.ArraysKt.toList(r4)
|
||||
L2b:
|
||||
r0.parameterTypes = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.<init>(java.lang.reflect.Member, java.lang.reflect.Type, java.lang.Class, java.lang.reflect.Type[]):void");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u001c\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"arity", "", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getArity", "(Lkotlin/reflect/jvm/internal/calls/Caller;)I", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CallerKt {
|
||||
public static final int getArity(Caller<?> caller) {
|
||||
Intrinsics.checkNotNullParameter(caller, "<this>");
|
||||
return caller.getParameterTypes().size();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.calls.Caller;
|
||||
import kotlin.reflect.jvm.internal.calls.CallerImpl;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001:\u0002\u0016\u0017B\u001d\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0002\u0010\u0007J%\u0010\u0010\u001a\u0004\u0018\u00010\u00112\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\n\u0010\u0013\u001a\u0006\u0012\u0002\b\u00030\u0014H\u0004¢\u0006\u0002\u0010\u0015R\u0013\u0010\b\u001a\u0004\u0018\u00010\u00028F¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0017\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\r\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u000e\u0010\u0003\u001a\u00020\u0002X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u0002\u0018\u0019¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "Ljava/lang/reflect/Method;", "unboxMethod", "parameterTypes", "", "Ljava/lang/reflect/Type;", "(Ljava/lang/reflect/Method;Ljava/util/List;)V", "member", "getMember", "()Ljava/lang/reflect/Method;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "callMethod", "", "instance", "args", "", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;", "Bound", "Unbound", "Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Bound;", "Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Unbound;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class InternalUnderlyingValOfInlineClass implements Caller<Method> {
|
||||
private final List<Type> parameterTypes;
|
||||
private final Type returnType;
|
||||
private final Method unboxMethod;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Bound;", "Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "unboxMethod", "Ljava/lang/reflect/Method;", "boundReceiver", "", "(Ljava/lang/reflect/Method;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Bound extends InternalUnderlyingValOfInlineClass implements BoundCaller {
|
||||
private final Object boundReceiver;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Bound(Method unboxMethod, Object obj) {
|
||||
super(unboxMethod, CollectionsKt.emptyList(), null);
|
||||
Intrinsics.checkNotNullParameter(unboxMethod, "unboxMethod");
|
||||
this.boundReceiver = obj;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
return callMethod(this.boundReceiver, args);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Unbound;", "Lkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass;", "unboxMethod", "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nInternalUnderlyingValOfInlineClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 InternalUnderlyingValOfInlineClass.kt\nkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Unbound\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,45:1\n254#2:46\n26#3:47\n*S KotlinDebug\n*F\n+ 1 InternalUnderlyingValOfInlineClass.kt\nkotlin/reflect/jvm/internal/calls/InternalUnderlyingValOfInlineClass$Unbound\n*L\n31#1:46\n31#1:47\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Unbound extends InternalUnderlyingValOfInlineClass {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Unbound(Method unboxMethod) {
|
||||
super(unboxMethod, CollectionsKt.listOf(unboxMethod.getDeclaringClass()), null);
|
||||
Intrinsics.checkNotNullParameter(unboxMethod, "unboxMethod");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
checkArguments(args);
|
||||
Object obj = args[0];
|
||||
CallerImpl.Companion companion = CallerImpl.INSTANCE;
|
||||
return callMethod(obj, args.length <= 1 ? new Object[0] : ArraysKt.copyOfRange(args, 1, args.length));
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ InternalUnderlyingValOfInlineClass(Method method, List list, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(method, list);
|
||||
}
|
||||
|
||||
public final Object callMethod(Object instance, Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
return this.unboxMethod.invoke(instance, Arrays.copyOf(args, args.length));
|
||||
}
|
||||
|
||||
public void checkArguments(Object[] objArr) {
|
||||
Caller.DefaultImpls.checkArguments(this, objArr);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember, reason: avoid collision after fix types in other method */
|
||||
public final Method mo1386getMember() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public final List<Type> getParameterTypes() {
|
||||
return this.parameterTypes;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public final Type getReturnType() {
|
||||
return this.returnType;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private InternalUnderlyingValOfInlineClass(Method method, List<? extends Type> list) {
|
||||
this.unboxMethod = method;
|
||||
this.parameterTypes = list;
|
||||
Class<?> returnType = method.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
this.returnType = returnType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0003J\u001b\u0010\u000f\u001a\u0004\u0018\u00010\u00102\n\u0010\u0011\u001a\u0006\u0012\u0002\b\u00030\u0012H\u0016¢\u0006\u0002\u0010\u0013R\u0016\u0010\u0004\u001a\u0004\u0018\u00010\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u001a\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\f\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e¨\u0006\u0014"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/ThrowingCaller;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "", "()V", "member", "getMember", "()Ljava/lang/Void;", "parameterTypes", "", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ThrowingCaller implements Caller {
|
||||
public static final ThrowingCaller INSTANCE = new ThrowingCaller();
|
||||
|
||||
private ThrowingCaller() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
throw new UnsupportedOperationException("call/callBy are not supported for this declaration.");
|
||||
}
|
||||
|
||||
public Void getMember() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public List<Type> getParameterTypes() {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Type getReturnType() {
|
||||
Class TYPE = Void.TYPE;
|
||||
Intrinsics.checkNotNullExpressionValue(TYPE, "TYPE");
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember */
|
||||
public /* bridge */ /* synthetic */ Member mo1386getMember() {
|
||||
return (Member) getMember();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,352 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.reflect.jvm.internal.KDeclarationContainerImpl;
|
||||
import kotlin.reflect.jvm.internal.UtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\b\u0000\u0018\u0000*\f\b\u0000\u0010\u0001 \u0001*\u0004\u0018\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0002%&B#\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003\u0012\u0006\u0010\u0007\u001a\u00020\b¢\u0006\u0002\u0010\tJ\u001b\u0010\u001e\u001a\u0004\u0018\u00010\u001f2\n\u0010 \u001a\u0006\u0012\u0002\b\u00030\u001bH\u0016¢\u0006\u0002\u0010!J\u000e\u0010\"\u001a\u00020\u001c2\u0006\u0010#\u001a\u00020$R\u0014\u0010\n\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\fX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u000e\u001a\u00028\u0000X\u0096\u0004¢\u0006\n\n\u0002\u0010\u0011\u001a\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\u00140\u00138VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u0014\u0010\u0017\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019R\u0016\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u001c0\u001bX\u0082\u0004¢\u0006\u0004\n\u0002\u0010\u001d¨\u0006'"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller;", "M", "Ljava/lang/reflect/Member;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "oldCaller", "isDefault", "", "(Lorg/jetbrains/kotlin/descriptors/CallableMemberDescriptor;Lkotlin/reflect/jvm/internal/calls/Caller;Z)V", "caller", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "Lkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller$BoxUnboxData;", "hasMfvcParameters", "member", "getMember", "()Ljava/lang/reflect/Member;", "Ljava/lang/reflect/Member;", "parameterTypes", "", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "slices", "", "Lkotlin/ranges/IntRange;", "[Lkotlin/ranges/IntRange;", "call", "", "args", "([Ljava/lang/Object;)Ljava/lang/Object;", "getRealSlicesOfParameters", FirebaseAnalytics.Param.INDEX, "", "BoxUnboxData", "MultiFieldValueClassPrimaryConstructorCaller", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nValueClassAwareCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 5 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,363:1\n1549#2:364\n1620#2,3:365\n1747#2,3:374\n1620#2,3:377\n37#3,2:368\n37#3,2:372\n37#3,2:380\n1#4:370\n26#5:371\n*S KotlinDebug\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller\n*L\n43#1:364\n43#1:365,3\n156#1:374,3\n174#1:377,3\n43#1:368,2\n145#1:372,2\n182#1:380,2\n79#1:371\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ValueClassAwareCaller<M extends Member> implements Caller<M> {
|
||||
private final Caller<M> caller;
|
||||
private final BoxUnboxData data;
|
||||
private final boolean hasMfvcParameters;
|
||||
private final boolean isDefault;
|
||||
private final M member;
|
||||
private final IntRange[] slices;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\n\b\u0002\u0018\u00002\u00020\u0001B-\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0014\u0010\u0004\u001a\u0010\u0012\f\u0012\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00060\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0013\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR!\u0010\u0004\u001a\u0010\u0012\f\u0012\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00060\u0005¢\u0006\n\n\u0002\u0010\u0010\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller$BoxUnboxData;", "", "argumentRange", "Lkotlin/ranges/IntRange;", "unboxParameters", "", "", "Ljava/lang/reflect/Method;", "box", "(Lkotlin/ranges/IntRange;[Ljava/util/List;Ljava/lang/reflect/Method;)V", "getArgumentRange", "()Lkotlin/ranges/IntRange;", "getBox", "()Ljava/lang/reflect/Method;", "getUnboxParameters", "()[Ljava/util/List;", "[Ljava/util/List;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BoxUnboxData {
|
||||
private final IntRange argumentRange;
|
||||
private final Method box;
|
||||
private final List<Method>[] unboxParameters;
|
||||
|
||||
public BoxUnboxData(IntRange argumentRange, List<Method>[] unboxParameters, Method method) {
|
||||
Intrinsics.checkNotNullParameter(argumentRange, "argumentRange");
|
||||
Intrinsics.checkNotNullParameter(unboxParameters, "unboxParameters");
|
||||
this.argumentRange = argumentRange;
|
||||
this.unboxParameters = unboxParameters;
|
||||
this.box = method;
|
||||
}
|
||||
|
||||
public final IntRange getArgumentRange() {
|
||||
return this.argumentRange;
|
||||
}
|
||||
|
||||
public final Method getBox() {
|
||||
return this.box;
|
||||
}
|
||||
|
||||
public final List<Method>[] getUnboxParameters() {
|
||||
return this.unboxParameters;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001B+\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n¢\u0006\u0002\u0010\fJ\u001b\u0010\u001e\u001a\u0004\u0018\u00010\u001f2\n\u0010 \u001a\u0006\u0012\u0002\b\u00030!H\u0016¢\u0006\u0002\u0010\"R\u000e\u0010\r\u001a\u00020\u000eX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u000eX\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0010\u001a\u0004\u0018\u00010\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R!\u0010\u0013\u001a\u0012\u0012\u000e\u0012\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00140\n0\n¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u001a\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00180\nX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0016R\u001c\u0010\u001a\u001a\u0010\u0012\f\u0012\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\n0\nX\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u001b\u001a\u00020\u00188VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001d¨\u0006#"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller$MultiFieldValueClassPrimaryConstructorCaller;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "constructorDesc", "", "originalParameters", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ParameterDescriptor;", "(Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/util/List;)V", "boxMethod", "Ljava/lang/reflect/Method;", "constructorImpl", "member", "getMember", "()Ljava/lang/Void;", "originalParametersGroups", "Ljava/lang/Class;", "getOriginalParametersGroups", "()Ljava/util/List;", "parameterTypes", "Ljava/lang/reflect/Type;", "getParameterTypes", "parameterUnboxMethods", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nValueClassAwareCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller$MultiFieldValueClassPrimaryConstructorCaller\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,363:1\n1549#2:364\n1620#2,3:365\n1559#2:368\n1590#2,3:369\n1549#2:372\n1620#2,3:373\n1593#2:376\n1360#2:377\n1446#2,2:378\n1549#2:380\n1620#2,3:381\n1448#2,3:384\n37#3,2:387\n*S KotlinDebug\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCaller$MultiFieldValueClassPrimaryConstructorCaller\n*L\n214#1:364\n214#1:365,3\n222#1:368\n222#1:369,3\n224#1:372\n224#1:373,3\n222#1:376\n231#1:377\n231#1:378,2\n231#1:380\n231#1:381,3\n231#1:384,3\n231#1:387,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class MultiFieldValueClassPrimaryConstructorCaller implements Caller {
|
||||
private final Method boxMethod;
|
||||
private final Method constructorImpl;
|
||||
private final List<List<Class<?>>> originalParametersGroups;
|
||||
private final List<Type> parameterTypes;
|
||||
private final List<List<Method>> parameterUnboxMethods;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r6v10, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r6v11, types: [java.util.ArrayList] */
|
||||
/* JADX WARN: Type inference failed for: r6v9, types: [java.util.List] */
|
||||
public MultiFieldValueClassPrimaryConstructorCaller(FunctionDescriptor descriptor, KDeclarationContainerImpl container, String constructorDesc, List<? extends ParameterDescriptor> originalParameters) {
|
||||
String removeSuffix;
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
?? listOf;
|
||||
int collectionSizeOrDefault3;
|
||||
List valueClassUnboxMethods;
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(constructorDesc, "constructorDesc");
|
||||
Intrinsics.checkNotNullParameter(originalParameters, "originalParameters");
|
||||
Method findMethodBySignature = container.findMethodBySignature("constructor-impl", constructorDesc);
|
||||
Intrinsics.checkNotNull(findMethodBySignature);
|
||||
this.constructorImpl = findMethodBySignature;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
removeSuffix = StringsKt__StringsKt.removeSuffix(constructorDesc, (CharSequence) "V");
|
||||
sb.append(removeSuffix);
|
||||
sb.append(ReflectClassUtilKt.getDesc(container.getJClass()));
|
||||
Method findMethodBySignature2 = container.findMethodBySignature("box-impl", sb.toString());
|
||||
Intrinsics.checkNotNull(findMethodBySignature2);
|
||||
this.boxMethod = findMethodBySignature2;
|
||||
List<? extends ParameterDescriptor> list = originalParameters;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
KotlinType type = ((ParameterDescriptor) it.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
valueClassUnboxMethods = ValueClassAwareCallerKt.getValueClassUnboxMethods(TypeSubstitutionKt.asSimpleType(type), descriptor);
|
||||
arrayList.add(valueClassUnboxMethods);
|
||||
}
|
||||
this.parameterUnboxMethods = arrayList;
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
int i = 0;
|
||||
for (Object obj : list) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = ((ParameterDescriptor) obj).getType().getConstructor().mo1394getDeclarationDescriptor();
|
||||
Intrinsics.checkNotNull(mo1394getDeclarationDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
ClassDescriptor classDescriptor = (ClassDescriptor) mo1394getDeclarationDescriptor;
|
||||
List<Method> list2 = this.parameterUnboxMethods.get(i);
|
||||
if (list2 != null) {
|
||||
List<Method> list3 = list2;
|
||||
collectionSizeOrDefault3 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list3, 10);
|
||||
listOf = new ArrayList(collectionSizeOrDefault3);
|
||||
Iterator it2 = list3.iterator();
|
||||
while (it2.hasNext()) {
|
||||
listOf.add(((Method) it2.next()).getReturnType());
|
||||
}
|
||||
} else {
|
||||
Class<?> javaClass = UtilKt.toJavaClass(classDescriptor);
|
||||
Intrinsics.checkNotNull(javaClass);
|
||||
listOf = CollectionsKt.listOf(javaClass);
|
||||
}
|
||||
arrayList2.add(listOf);
|
||||
i = i4;
|
||||
}
|
||||
this.originalParametersGroups = arrayList2;
|
||||
this.parameterTypes = CollectionsKt.flatten(arrayList2);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r4v0, types: [java.util.List] */
|
||||
/* JADX WARN: Type inference failed for: r4v1 */
|
||||
/* JADX WARN: Type inference failed for: r4v3, types: [java.util.ArrayList] */
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
?? listOf;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
List<Pair> zip = ArraysKt.zip(args, this.parameterUnboxMethods);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Pair pair : zip) {
|
||||
Object component1 = pair.component1();
|
||||
List list = (List) pair.component2();
|
||||
if (list != null) {
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
listOf = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
listOf.add(((Method) it.next()).invoke(component1, new Object[0]));
|
||||
}
|
||||
} else {
|
||||
listOf = CollectionsKt.listOf(component1);
|
||||
}
|
||||
CollectionsKt__MutableCollectionsKt.addAll(arrayList, (Iterable) listOf);
|
||||
}
|
||||
Object[] array = arrayList.toArray(new Object[0]);
|
||||
this.constructorImpl.invoke(null, Arrays.copyOf(array, array.length));
|
||||
return this.boxMethod.invoke(null, Arrays.copyOf(array, array.length));
|
||||
}
|
||||
|
||||
public Void getMember() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public final List<List<Class<?>>> getOriginalParametersGroups() {
|
||||
return this.originalParametersGroups;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public List<Type> getParameterTypes() {
|
||||
return this.parameterTypes;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Type getReturnType() {
|
||||
Class<?> returnType = this.boxMethod.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
return returnType;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember */
|
||||
public /* bridge */ /* synthetic */ Member mo1386getMember() {
|
||||
return (Member) getMember();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:121:0x00a5, code lost:
|
||||
|
||||
r13 = kotlin.reflect.jvm.internal.calls.ValueClassAwareCallerKt.toInlineClass(r13);
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:77:0x00d4, code lost:
|
||||
|
||||
if ((r12 instanceof kotlin.reflect.jvm.internal.calls.BoundCaller) != false) goto L52;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public ValueClassAwareCaller(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor r11, kotlin.reflect.jvm.internal.calls.Caller<? extends M> r12, boolean r13) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 546
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.ValueClassAwareCaller.<init>(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor, kotlin.reflect.jvm.internal.calls.Caller, boolean):void");
|
||||
}
|
||||
|
||||
private static final int data$lambda$3$typeSize(KotlinType kotlinType) {
|
||||
List<Method> mfvcUnboxMethods = ValueClassAwareCallerKt.getMfvcUnboxMethods(TypeSubstitutionKt.asSimpleType(kotlinType));
|
||||
if (mfvcUnboxMethods != null) {
|
||||
return mfvcUnboxMethods.size();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Object call(Object[] args) {
|
||||
Object invoke;
|
||||
Object obj;
|
||||
Object defaultPrimitiveValue;
|
||||
Intrinsics.checkNotNullParameter(args, "args");
|
||||
IntRange argumentRange = this.data.getArgumentRange();
|
||||
List<Method>[] unboxParameters = this.data.getUnboxParameters();
|
||||
Method box = this.data.getBox();
|
||||
if (!argumentRange.isEmpty()) {
|
||||
if (this.hasMfvcParameters) {
|
||||
List createListBuilder = CollectionsKt.createListBuilder(args.length);
|
||||
int first = argumentRange.getFirst();
|
||||
for (int i = 0; i < first; i++) {
|
||||
createListBuilder.add(args[i]);
|
||||
}
|
||||
int first2 = argumentRange.getFirst();
|
||||
int last = argumentRange.getLast();
|
||||
if (first2 <= last) {
|
||||
while (true) {
|
||||
List<Method> list = unboxParameters[first2];
|
||||
Object obj2 = args[first2];
|
||||
if (list != null) {
|
||||
for (Method method : list) {
|
||||
List list2 = createListBuilder;
|
||||
if (obj2 != null) {
|
||||
defaultPrimitiveValue = method.invoke(obj2, new Object[0]);
|
||||
} else {
|
||||
Class<?> returnType = method.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
defaultPrimitiveValue = UtilKt.defaultPrimitiveValue(returnType);
|
||||
}
|
||||
list2.add(defaultPrimitiveValue);
|
||||
}
|
||||
} else {
|
||||
createListBuilder.add(obj2);
|
||||
}
|
||||
if (first2 == last) {
|
||||
break;
|
||||
}
|
||||
first2++;
|
||||
}
|
||||
}
|
||||
int last2 = argumentRange.getLast() + 1;
|
||||
int lastIndex = ArraysKt.getLastIndex(args);
|
||||
if (last2 <= lastIndex) {
|
||||
while (true) {
|
||||
createListBuilder.add(args[last2]);
|
||||
if (last2 == lastIndex) {
|
||||
break;
|
||||
}
|
||||
last2++;
|
||||
}
|
||||
}
|
||||
args = CollectionsKt.build(createListBuilder).toArray(new Object[0]);
|
||||
} else {
|
||||
int length = args.length;
|
||||
Object[] objArr = new Object[length];
|
||||
for (int i4 = 0; i4 < length; i4++) {
|
||||
int first3 = argumentRange.getFirst();
|
||||
if (i4 > argumentRange.getLast() || first3 > i4) {
|
||||
obj = args[i4];
|
||||
} else {
|
||||
List<Method> list3 = unboxParameters[i4];
|
||||
Method method2 = list3 != null ? (Method) CollectionsKt.single((List) list3) : null;
|
||||
obj = args[i4];
|
||||
if (method2 != null) {
|
||||
if (obj != null) {
|
||||
obj = method2.invoke(obj, new Object[0]);
|
||||
} else {
|
||||
Class<?> returnType2 = method2.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType2, "getReturnType(...)");
|
||||
obj = UtilKt.defaultPrimitiveValue(returnType2);
|
||||
}
|
||||
}
|
||||
}
|
||||
objArr[i4] = obj;
|
||||
}
|
||||
args = objArr;
|
||||
}
|
||||
}
|
||||
Object call = this.caller.call(args);
|
||||
return (call == IntrinsicsKt.getCOROUTINE_SUSPENDED() || box == null || (invoke = box.invoke(null, call)) == null) ? call : invoke;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
/* renamed from: getMember */
|
||||
public M mo1386getMember() {
|
||||
return this.member;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public List<Type> getParameterTypes() {
|
||||
return this.caller.getParameterTypes();
|
||||
}
|
||||
|
||||
public final IntRange getRealSlicesOfParameters(int index) {
|
||||
if (index >= 0) {
|
||||
IntRange[] intRangeArr = this.slices;
|
||||
if (index < intRangeArr.length) {
|
||||
return intRangeArr[index];
|
||||
}
|
||||
}
|
||||
IntRange[] intRangeArr2 = this.slices;
|
||||
if (intRangeArr2.length == 0) {
|
||||
return new IntRange(index, index);
|
||||
}
|
||||
int last = ((IntRange) ArraysKt.last(intRangeArr2)).getLast() + 1 + (index - intRangeArr2.length);
|
||||
return new IntRange(last, last);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.calls.Caller
|
||||
public Type getReturnType() {
|
||||
return this.caller.getReturnType();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
package kotlin.reflect.jvm.internal.calls;
|
||||
|
||||
import java.lang.reflect.Member;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
|
||||
import kotlin.reflect.jvm.internal.UtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.MultiFieldValueClassRepresentation;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.VariableDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.ClassMapperLite;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
|
||||
|
||||
@Metadata(d1 = {"\u0000j\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\u001a\u0018\u0010\u0005\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00062\u0006\u0010\b\u001a\u00020\tH\u0000\u001a \u0010\n\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\u00062\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\u0002H\u0002\u001a/\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u00010\u00062\u0006\u0010\u000b\u001a\u00020\u00022\u0017\u0010\r\u001a\u0013\u0012\u0004\u0012\u00020\u000f\u0012\u0004\u0012\u00020\u00100\u000e¢\u0006\u0002\b\u0011H\u0002\u001a(\u0010\u0012\u001a\u00020\u0013*\u0006\u0012\u0002\b\u00030\u00142\u0006\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u000b\u001a\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u0010H\u0002\u001a\u0018\u0010\u0018\u001a\u0004\u0018\u00010\u0019*\u0004\u0018\u00010\u00192\u0006\u0010\u000b\u001a\u00020\u0002H\u0000\u001a6\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u001b0\u0014\"\n\b\u0000\u0010\u001b*\u0004\u0018\u00010\u001c*\b\u0012\u0004\u0012\u0002H\u001b0\u00142\u0006\u0010\u000b\u001a\u00020\u00022\b\b\u0002\u0010\u0017\u001a\u00020\u0010H\u0000\u001a\u0018\u0010\u001d\u001a\u00020\u0007*\u0006\u0012\u0002\b\u00030\u001e2\u0006\u0010\u000b\u001a\u00020\u0002H\u0002\u001a\u0018\u0010\u001f\u001a\u00020\u0007*\u0006\u0012\u0002\b\u00030\u001e2\u0006\u0010\u000b\u001a\u00020\u0002H\u0000\u001a\f\u0010 \u001a\u00020\u0010*\u00020\u0002H\u0002\u001a\u0014\u0010!\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001e*\u0004\u0018\u00010\"H\u0000\u001a\u0012\u0010!\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001e*\u00020\u0001H\u0002\u001a\f\u0010#\u001a\u00020$*\u00020%H\u0000\"\u001a\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006&"}, d2 = {"expectedReceiverType", "Lkotlin/reflect/jvm/internal/impl/types/KotlinType;", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "getExpectedReceiverType", "(Lorg/jetbrains/kotlin/descriptors/CallableMemberDescriptor;)Lorg/jetbrains/kotlin/types/KotlinType;", "getMfvcUnboxMethods", "", "Ljava/lang/reflect/Method;", "type", "Lkotlin/reflect/jvm/internal/impl/types/SimpleType;", "getValueClassUnboxMethods", "descriptor", "makeKotlinParameterTypes", "isSpecificClass", "Lkotlin/Function1;", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "", "Lkotlin/ExtensionFunctionType;", "checkParametersSize", "", "Lkotlin/reflect/jvm/internal/calls/Caller;", "expectedArgsSize", "", "isDefault", "coerceToExpectedReceiverType", "", "createValueClassAwareCallerIfNeeded", "M", "Ljava/lang/reflect/Member;", "getBoxMethod", "Ljava/lang/Class;", "getInlineClassUnboxMethod", "hasValueClassReceiver", "toInlineClass", "Lkotlin/reflect/jvm/internal/impl/descriptors/DeclarationDescriptor;", "toJvmDescriptor", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassifierDescriptor;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nValueClassAwareCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCallerKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,363:1\n1#2:364\n1549#3:365\n1620#3,3:366\n1549#3:369\n1620#3,3:370\n1620#3,3:373\n1747#3,3:376\n1747#3,3:379\n1360#3:382\n1446#3,2:383\n1549#3:385\n1620#3,3:386\n1448#3,3:389\n*S KotlinDebug\n*F\n+ 1 ValueClassAwareCaller.kt\nkotlin/reflect/jvm/internal/calls/ValueClassAwareCallerKt\n*L\n252#1:365\n252#1:366,3\n254#1:369\n254#1:370,3\n290#1:373,3\n299#1:376,3\n300#1:379,3\n247#1:382\n247#1:383,2\n248#1:385\n248#1:386,3\n247#1:389,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ValueClassAwareCallerKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final void checkParametersSize(Caller<?> caller, int i, CallableMemberDescriptor callableMemberDescriptor, boolean z3) {
|
||||
if (CallerKt.getArity(caller) == i) {
|
||||
return;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Inconsistent number of parameters in the descriptor and Java reflection object: " + CallerKt.getArity(caller) + " != " + i + "\nCalling: " + callableMemberDescriptor + "\nParameter types: " + caller.getParameterTypes() + ")\nDefault: " + z3);
|
||||
}
|
||||
|
||||
public static final Object coerceToExpectedReceiverType(Object obj, CallableMemberDescriptor descriptor) {
|
||||
KotlinType expectedReceiverType;
|
||||
Class<?> inlineClass;
|
||||
Method inlineClassUnboxMethod;
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
return (((descriptor instanceof PropertyDescriptor) && InlineClassesUtilsKt.isUnderlyingPropertyOfInlineClass((VariableDescriptor) descriptor)) || (expectedReceiverType = getExpectedReceiverType(descriptor)) == null || (inlineClass = toInlineClass(expectedReceiverType)) == null || (inlineClassUnboxMethod = getInlineClassUnboxMethod(inlineClass, descriptor)) == null) ? obj : inlineClassUnboxMethod.invoke(obj, new Object[0]);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <M extends Member> Caller<M> createValueClassAwareCallerIfNeeded(Caller<? extends M> caller, CallableMemberDescriptor descriptor, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(caller, "<this>");
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
if (!InlineClassesUtilsKt.isGetterOfUnderlyingPropertyOfValueClass(descriptor)) {
|
||||
List<ReceiverParameterDescriptor> contextReceiverParameters = descriptor.getContextReceiverParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(contextReceiverParameters, "getContextReceiverParameters(...)");
|
||||
List<ReceiverParameterDescriptor> list = contextReceiverParameters;
|
||||
if (!(list instanceof Collection) || !list.isEmpty()) {
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
KotlinType type = ((ReceiverParameterDescriptor) it.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
if (InlineClassesUtilsKt.isValueClassType(type)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
List<ValueParameterDescriptor> valueParameters = descriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
List<ValueParameterDescriptor> list2 = valueParameters;
|
||||
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
KotlinType type2 = ((ValueParameterDescriptor) it2.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type2, "getType(...)");
|
||||
if (InlineClassesUtilsKt.isValueClassType(type2)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
KotlinType returnType = descriptor.getReturnType();
|
||||
if ((returnType == null || !InlineClassesUtilsKt.isInlineClassType(returnType)) && !hasValueClassReceiver(descriptor)) {
|
||||
return caller;
|
||||
}
|
||||
}
|
||||
return new ValueClassAwareCaller(descriptor, caller, z3);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Caller createValueClassAwareCallerIfNeeded$default(Caller caller, CallableMemberDescriptor callableMemberDescriptor, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z3 = false;
|
||||
}
|
||||
return createValueClassAwareCallerIfNeeded(caller, callableMemberDescriptor, z3);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Method getBoxMethod(Class<?> cls, CallableMemberDescriptor callableMemberDescriptor) {
|
||||
try {
|
||||
Method declaredMethod = cls.getDeclaredMethod("box-impl", getInlineClassUnboxMethod(cls, callableMemberDescriptor).getReturnType());
|
||||
Intrinsics.checkNotNull(declaredMethod);
|
||||
return declaredMethod;
|
||||
} catch (NoSuchMethodException unused) {
|
||||
throw new KotlinReflectionInternalError("No box method found in inline class: " + cls + " (calling " + callableMemberDescriptor + ')');
|
||||
}
|
||||
}
|
||||
|
||||
private static final KotlinType getExpectedReceiverType(CallableMemberDescriptor callableMemberDescriptor) {
|
||||
ReceiverParameterDescriptor extensionReceiverParameter = callableMemberDescriptor.getExtensionReceiverParameter();
|
||||
ReceiverParameterDescriptor dispatchReceiverParameter = callableMemberDescriptor.getDispatchReceiverParameter();
|
||||
if (extensionReceiverParameter != null) {
|
||||
return extensionReceiverParameter.getType();
|
||||
}
|
||||
if (dispatchReceiverParameter == null) {
|
||||
return null;
|
||||
}
|
||||
if (callableMemberDescriptor instanceof ConstructorDescriptor) {
|
||||
return dispatchReceiverParameter.getType();
|
||||
}
|
||||
DeclarationDescriptor containingDeclaration = callableMemberDescriptor.getContainingDeclaration();
|
||||
ClassDescriptor classDescriptor = containingDeclaration instanceof ClassDescriptor ? (ClassDescriptor) containingDeclaration : null;
|
||||
if (classDescriptor != null) {
|
||||
return classDescriptor.getDefaultType();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final Method getInlineClassUnboxMethod(Class<?> cls, CallableMemberDescriptor descriptor) {
|
||||
Intrinsics.checkNotNullParameter(cls, "<this>");
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
try {
|
||||
Method declaredMethod = cls.getDeclaredMethod("unbox-impl", new Class[0]);
|
||||
Intrinsics.checkNotNull(declaredMethod);
|
||||
return declaredMethod;
|
||||
} catch (NoSuchMethodException unused) {
|
||||
throw new KotlinReflectionInternalError("No unbox method found in inline class: " + cls + " (calling " + descriptor + ')');
|
||||
}
|
||||
}
|
||||
|
||||
public static final List<Method> getMfvcUnboxMethods(SimpleType type) {
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
List<String> mfvcUnboxMethods$getUnboxMethodNameSuffixes = getMfvcUnboxMethods$getUnboxMethodNameSuffixes(TypeSubstitutionKt.asSimpleType(type));
|
||||
if (mfvcUnboxMethods$getUnboxMethodNameSuffixes == null) {
|
||||
return null;
|
||||
}
|
||||
List<String> list = mfvcUnboxMethods$getUnboxMethodNameSuffixes;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add("unbox-impl-" + ((String) it.next()));
|
||||
}
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = type.getConstructor().mo1394getDeclarationDescriptor();
|
||||
Intrinsics.checkNotNull(mo1394getDeclarationDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) mo1394getDeclarationDescriptor);
|
||||
Intrinsics.checkNotNull(javaClass);
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
Iterator it2 = arrayList.iterator();
|
||||
while (it2.hasNext()) {
|
||||
arrayList2.add(javaClass.getDeclaredMethod((String) it2.next(), new Class[0]));
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r3v0, types: [java.util.List] */
|
||||
/* JADX WARN: Type inference failed for: r3v1 */
|
||||
/* JADX WARN: Type inference failed for: r3v3, types: [java.util.ArrayList] */
|
||||
private static final List<String> getMfvcUnboxMethods$getUnboxMethodNameSuffixes(SimpleType simpleType) {
|
||||
?? listOf;
|
||||
int collectionSizeOrDefault;
|
||||
if (!InlineClassesUtilsKt.needsMfvcFlattening(simpleType)) {
|
||||
return null;
|
||||
}
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = simpleType.getConstructor().mo1394getDeclarationDescriptor();
|
||||
Intrinsics.checkNotNull(mo1394getDeclarationDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
MultiFieldValueClassRepresentation<SimpleType> multiFieldValueClassRepresentation = DescriptorUtilsKt.getMultiFieldValueClassRepresentation((ClassDescriptor) mo1394getDeclarationDescriptor);
|
||||
Intrinsics.checkNotNull(multiFieldValueClassRepresentation);
|
||||
List<Pair<Name, SimpleType>> underlyingPropertyNamesToTypes = multiFieldValueClassRepresentation.getUnderlyingPropertyNamesToTypes();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator it = underlyingPropertyNamesToTypes.iterator();
|
||||
while (it.hasNext()) {
|
||||
Pair pair = (Pair) it.next();
|
||||
Name name = (Name) pair.component1();
|
||||
List<String> mfvcUnboxMethods$getUnboxMethodNameSuffixes = getMfvcUnboxMethods$getUnboxMethodNameSuffixes((SimpleType) pair.component2());
|
||||
if (mfvcUnboxMethods$getUnboxMethodNameSuffixes != null) {
|
||||
List<String> list = mfvcUnboxMethods$getUnboxMethodNameSuffixes;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
listOf = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it2 = list.iterator();
|
||||
while (it2.hasNext()) {
|
||||
listOf.add(name.getIdentifier() + '-' + ((String) it2.next()));
|
||||
}
|
||||
} else {
|
||||
listOf = CollectionsKt.listOf(name.getIdentifier());
|
||||
}
|
||||
CollectionsKt__MutableCollectionsKt.addAll(arrayList, (Iterable) listOf);
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final List<Method> getValueClassUnboxMethods(SimpleType simpleType, CallableMemberDescriptor callableMemberDescriptor) {
|
||||
Method inlineClassUnboxMethod;
|
||||
List<Method> mfvcUnboxMethods = getMfvcUnboxMethods(simpleType);
|
||||
if (mfvcUnboxMethods != null) {
|
||||
return mfvcUnboxMethods;
|
||||
}
|
||||
Class<?> inlineClass = toInlineClass(simpleType);
|
||||
if (inlineClass == null || (inlineClassUnboxMethod = getInlineClassUnboxMethod(inlineClass, callableMemberDescriptor)) == null) {
|
||||
return null;
|
||||
}
|
||||
return CollectionsKt.listOf(inlineClassUnboxMethod);
|
||||
}
|
||||
|
||||
private static final boolean hasValueClassReceiver(CallableMemberDescriptor callableMemberDescriptor) {
|
||||
KotlinType expectedReceiverType = getExpectedReceiverType(callableMemberDescriptor);
|
||||
return expectedReceiverType != null && InlineClassesUtilsKt.isValueClassType(expectedReceiverType);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final List<KotlinType> makeKotlinParameterTypes(CallableMemberDescriptor callableMemberDescriptor, Function1<? super ClassDescriptor, Boolean> function1) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
ReceiverParameterDescriptor extensionReceiverParameter = callableMemberDescriptor.getExtensionReceiverParameter();
|
||||
KotlinType type = extensionReceiverParameter != null ? extensionReceiverParameter.getType() : null;
|
||||
if (type != null) {
|
||||
arrayList.add(type);
|
||||
} else if (callableMemberDescriptor instanceof ConstructorDescriptor) {
|
||||
ClassDescriptor constructedClass = ((ConstructorDescriptor) callableMemberDescriptor).getConstructedClass();
|
||||
Intrinsics.checkNotNullExpressionValue(constructedClass, "getConstructedClass(...)");
|
||||
if (constructedClass.isInner()) {
|
||||
DeclarationDescriptor containingDeclaration = constructedClass.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
arrayList.add(((ClassDescriptor) containingDeclaration).getDefaultType());
|
||||
}
|
||||
} else {
|
||||
DeclarationDescriptor containingDeclaration2 = callableMemberDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration2, "getContainingDeclaration(...)");
|
||||
if ((containingDeclaration2 instanceof ClassDescriptor) && function1.invoke(containingDeclaration2).booleanValue()) {
|
||||
arrayList.add(((ClassDescriptor) containingDeclaration2).getDefaultType());
|
||||
}
|
||||
}
|
||||
List<ValueParameterDescriptor> valueParameters = callableMemberDescriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
Iterator<T> it = valueParameters.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((ValueParameterDescriptor) it.next()).getType());
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Class<?> toInlineClass(KotlinType kotlinType) {
|
||||
KotlinType unsubstitutedUnderlyingType;
|
||||
Class<?> inlineClass = toInlineClass(kotlinType.getConstructor().mo1394getDeclarationDescriptor());
|
||||
if (inlineClass == null) {
|
||||
return null;
|
||||
}
|
||||
if (TypeUtils.isNullableType(kotlinType) && ((unsubstitutedUnderlyingType = InlineClassesUtilsKt.unsubstitutedUnderlyingType(kotlinType)) == null || TypeUtils.isNullableType(unsubstitutedUnderlyingType) || KotlinBuiltIns.isPrimitiveType(unsubstitutedUnderlyingType))) {
|
||||
return null;
|
||||
}
|
||||
return inlineClass;
|
||||
}
|
||||
|
||||
public static final String toJvmDescriptor(ClassifierDescriptor classifierDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(classifierDescriptor, "<this>");
|
||||
ClassId classId = DescriptorUtilsKt.getClassId(classifierDescriptor);
|
||||
Intrinsics.checkNotNull(classId);
|
||||
String asString = classId.asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return ClassMapperLite.mapClass(asString);
|
||||
}
|
||||
|
||||
public static final Class<?> toInlineClass(DeclarationDescriptor declarationDescriptor) {
|
||||
if (!(declarationDescriptor instanceof ClassDescriptor) || !InlineClassesUtilsKt.isInlineClass(declarationDescriptor)) {
|
||||
return null;
|
||||
}
|
||||
ClassDescriptor classDescriptor = (ClassDescriptor) declarationDescriptor;
|
||||
Class<?> javaClass = UtilKt.toJavaClass(classDescriptor);
|
||||
if (javaClass != null) {
|
||||
return javaClass;
|
||||
}
|
||||
throw new KotlinReflectionInternalError("Class object for the class " + classDescriptor.getName() + " cannot be found (classId=" + DescriptorUtilsKt.getClassId((ClassifierDescriptor) declarationDescriptor) + ')');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package kotlin.reflect.jvm.internal.impl;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.JvmAbi;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.JvmAnnotationNames;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinJvmBinaryClass;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nSpecialJvmAnnotations.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SpecialJvmAnnotations.kt\norg/jetbrains/kotlin/SpecialJvmAnnotations\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,42:1\n1620#2,3:43\n*S KotlinDebug\n*F\n+ 1 SpecialJvmAnnotations.kt\norg/jetbrains/kotlin/SpecialJvmAnnotations\n*L\n22#1:43,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class SpecialJvmAnnotations {
|
||||
public static final SpecialJvmAnnotations INSTANCE = new SpecialJvmAnnotations();
|
||||
private static final ClassId JAVA_LANG_ANNOTATION_REPEATABLE;
|
||||
private static final Set<ClassId> SPECIAL_ANNOTATIONS;
|
||||
|
||||
static {
|
||||
List listOf = CollectionsKt.listOf((Object[]) new FqName[]{JvmAnnotationNames.METADATA_FQ_NAME, JvmAnnotationNames.JETBRAINS_NOT_NULL_ANNOTATION, JvmAnnotationNames.JETBRAINS_NULLABLE_ANNOTATION, JvmAnnotationNames.TARGET_ANNOTATION, JvmAnnotationNames.RETENTION_ANNOTATION, JvmAnnotationNames.DOCUMENTED_ANNOTATION});
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
||||
Iterator it = listOf.iterator();
|
||||
while (it.hasNext()) {
|
||||
linkedHashSet.add(ClassId.topLevel((FqName) it.next()));
|
||||
}
|
||||
SPECIAL_ANNOTATIONS = linkedHashSet;
|
||||
ClassId classId = ClassId.topLevel(JvmAnnotationNames.REPEATABLE_ANNOTATION);
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
JAVA_LANG_ANNOTATION_REPEATABLE = classId;
|
||||
}
|
||||
|
||||
private SpecialJvmAnnotations() {
|
||||
}
|
||||
|
||||
public final ClassId getJAVA_LANG_ANNOTATION_REPEATABLE() {
|
||||
return JAVA_LANG_ANNOTATION_REPEATABLE;
|
||||
}
|
||||
|
||||
public final Set<ClassId> getSPECIAL_ANNOTATIONS() {
|
||||
return SPECIAL_ANNOTATIONS;
|
||||
}
|
||||
|
||||
public final boolean isAnnotatedWithContainerMetaAnnotation(KotlinJvmBinaryClass klass) {
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
final Ref.BooleanRef booleanRef = new Ref.BooleanRef();
|
||||
klass.loadClassAnnotations(new KotlinJvmBinaryClass.AnnotationVisitor() { // from class: kotlin.reflect.jvm.internal.impl.SpecialJvmAnnotations$isAnnotatedWithContainerMetaAnnotation$1
|
||||
@Override // kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinJvmBinaryClass.AnnotationVisitor
|
||||
public KotlinJvmBinaryClass.AnnotationArgumentVisitor visitAnnotation(ClassId classId, SourceElement source) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
if (!Intrinsics.areEqual(classId, JvmAbi.INSTANCE.getREPEATABLE_ANNOTATION_CONTAINER_META_ANNOTATION())) {
|
||||
return null;
|
||||
}
|
||||
Ref.BooleanRef.this.element = true;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinJvmBinaryClass.AnnotationVisitor
|
||||
public void visitEnd() {
|
||||
}
|
||||
}, null);
|
||||
return booleanRef.element;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.ServiceLoader;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface BuiltInsLoader {
|
||||
public static final Companion Companion = Companion.$$INSTANCE;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
static final /* synthetic */ Companion $$INSTANCE = new Companion();
|
||||
private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<BuiltInsLoader>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader$Companion$Instance$2
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final BuiltInsLoader invoke() {
|
||||
ServiceLoader load = ServiceLoader.load(BuiltInsLoader.class, BuiltInsLoader.class.getClassLoader());
|
||||
Intrinsics.checkNotNull(load);
|
||||
BuiltInsLoader builtInsLoader = (BuiltInsLoader) CollectionsKt.firstOrNull(load);
|
||||
if (builtInsLoader != null) {
|
||||
return builtInsLoader;
|
||||
}
|
||||
throw new IllegalStateException("No BuiltInsLoader implementation was found. Please ensure that the META-INF/services/ is not stripped from your application and that the Java virtual machine is not running under a security manager");
|
||||
}
|
||||
});
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final BuiltInsLoader getInstance() {
|
||||
return Instance$delegate.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z3);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface BuiltInsPackageFragment extends PackageFragmentDescriptor {
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nCompanionObjectMapping.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CompanionObjectMapping.kt\norg/jetbrains/kotlin/builtins/CompanionObjectMapping\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,20:1\n1549#2:21\n1620#2,3:22\n1620#2,3:25\n*S KotlinDebug\n*F\n+ 1 CompanionObjectMapping.kt\norg/jetbrains/kotlin/builtins/CompanionObjectMapping\n*L\n12#1:21\n12#1:22,3\n16#1:25,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CompanionObjectMapping {
|
||||
public static final CompanionObjectMapping INSTANCE = new CompanionObjectMapping();
|
||||
private static final Set<ClassId> classIds;
|
||||
|
||||
static {
|
||||
int collectionSizeOrDefault;
|
||||
Set<PrimitiveType> set = PrimitiveType.NUMBER_TYPES;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(set, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = set.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(StandardNames.getPrimitiveFqName((PrimitiveType) it.next()));
|
||||
}
|
||||
FqName safe = StandardNames.FqNames.string.toSafe();
|
||||
Intrinsics.checkNotNullExpressionValue(safe, "toSafe(...)");
|
||||
List plus = CollectionsKt.plus((Collection<? extends FqName>) arrayList, safe);
|
||||
FqName safe2 = StandardNames.FqNames._boolean.toSafe();
|
||||
Intrinsics.checkNotNullExpressionValue(safe2, "toSafe(...)");
|
||||
List plus2 = CollectionsKt.plus((Collection<? extends FqName>) plus, safe2);
|
||||
FqName safe3 = StandardNames.FqNames._enum.toSafe();
|
||||
Intrinsics.checkNotNullExpressionValue(safe3, "toSafe(...)");
|
||||
List plus3 = CollectionsKt.plus((Collection<? extends FqName>) plus2, safe3);
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
||||
Iterator it2 = plus3.iterator();
|
||||
while (it2.hasNext()) {
|
||||
linkedHashSet.add(ClassId.topLevel((FqName) it2.next()));
|
||||
}
|
||||
classIds = linkedHashSet;
|
||||
}
|
||||
|
||||
private CompanionObjectMapping() {
|
||||
}
|
||||
|
||||
public final Set<ClassId> allClassesWithIntrinsicCompanions() {
|
||||
return classIds;
|
||||
}
|
||||
|
||||
public final Set<ClassId> getClassIds() {
|
||||
return classIds;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CompanionObjectMappingUtilsKt {
|
||||
public static final boolean isMappedIntrinsicCompanionObject(CompanionObjectMapping companionObjectMapping, ClassDescriptor classDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(companionObjectMapping, "<this>");
|
||||
Intrinsics.checkNotNullParameter(classDescriptor, "classDescriptor");
|
||||
if (!DescriptorUtils.isCompanionObject(classDescriptor)) {
|
||||
return false;
|
||||
}
|
||||
Set<ClassId> classIds = companionObjectMapping.getClassIds();
|
||||
ClassId classId = DescriptorUtilsKt.getClassId(classDescriptor);
|
||||
return CollectionsKt.contains(classIds, classId != null ? classId.getOuterClassId() : null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.LockBasedStorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DefaultBuiltIns extends KotlinBuiltIns {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final Lazy<DefaultBuiltIns> Instance$delegate = LazyKt.lazy(new Function0<DefaultBuiltIns>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.DefaultBuiltIns$Companion$Instance$2
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final DefaultBuiltIns invoke() {
|
||||
return new DefaultBuiltIns(false, 1, null);
|
||||
}
|
||||
});
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final DefaultBuiltIns getInstance() {
|
||||
return (DefaultBuiltIns) DefaultBuiltIns.Instance$delegate.getValue();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public DefaultBuiltIns() {
|
||||
this(false, 1, null);
|
||||
}
|
||||
|
||||
public DefaultBuiltIns(boolean z3) {
|
||||
super(new LockBasedStorageManager("DefaultBuiltIns"));
|
||||
if (z3) {
|
||||
createBuiltInsModule(false);
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ DefaultBuiltIns(boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? true : z3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FunctionInterfacePackageFragment extends BuiltInsPackageFragment {
|
||||
}
|
||||
@@ -0,0 +1,262 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.collections.MapsKt__MapsKt;
|
||||
import kotlin.jvm.JvmOverloads;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKindExtractor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.BuiltInAnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.IntValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.StringValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nfunctionTypes.kt\nKotlin\n*S Kotlin\n*F\n+ 1 functionTypes.kt\norg/jetbrains/kotlin/builtins/FunctionTypesKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,301:1\n1#2:302\n1549#3:303\n1620#3,3:304\n223#3,2:307\n1549#3:309\n1620#3,3:310\n1549#3:313\n1620#3,3:314\n1590#3,4:317\n*S KotlinDebug\n*F\n+ 1 functionTypes.kt\norg/jetbrains/kotlin/builtins/FunctionTypesKt\n*L\n160#1:303\n160#1:304,3\n195#1:307,2\n200#1:309\n200#1:310,3\n222#1:313\n222#1:314,3\n225#1:317,4\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionTypesKt {
|
||||
public static final int contextFunctionTypeParamsCount(KotlinType kotlinType) {
|
||||
Object value;
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
AnnotationDescriptor mo1389findAnnotation = kotlinType.getAnnotations().mo1389findAnnotation(StandardNames.FqNames.contextFunctionTypeParams);
|
||||
if (mo1389findAnnotation == null) {
|
||||
return 0;
|
||||
}
|
||||
value = MapsKt__MapsKt.getValue(mo1389findAnnotation.getAllValueArguments(), StandardNames.CONTEXT_FUNCTION_TYPE_PARAMETER_COUNT_NAME);
|
||||
ConstantValue constantValue = (ConstantValue) value;
|
||||
Intrinsics.checkNotNull(constantValue, "null cannot be cast to non-null type org.jetbrains.kotlin.resolve.constants.IntValue");
|
||||
return ((IntValue) constantValue).getValue().intValue();
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
public static final SimpleType createFunctionType(KotlinBuiltIns builtIns, Annotations annotations, KotlinType kotlinType, List<? extends KotlinType> contextReceiverTypes, List<? extends KotlinType> parameterTypes, List<Name> list, KotlinType returnType, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
Intrinsics.checkNotNullParameter(contextReceiverTypes, "contextReceiverTypes");
|
||||
Intrinsics.checkNotNullParameter(parameterTypes, "parameterTypes");
|
||||
Intrinsics.checkNotNullParameter(returnType, "returnType");
|
||||
List<TypeProjection> functionTypeArgumentProjections = getFunctionTypeArgumentProjections(kotlinType, contextReceiverTypes, parameterTypes, list, returnType, builtIns);
|
||||
ClassDescriptor functionDescriptor = getFunctionDescriptor(builtIns, contextReceiverTypes.size() + parameterTypes.size() + (kotlinType == null ? 0 : 1), z3);
|
||||
if (kotlinType != null) {
|
||||
annotations = withExtensionFunctionAnnotation(annotations, builtIns);
|
||||
}
|
||||
if (!contextReceiverTypes.isEmpty()) {
|
||||
annotations = withContextReceiversFunctionAnnotation(annotations, builtIns, contextReceiverTypes.size());
|
||||
}
|
||||
return KotlinTypeFactory.simpleNotNullType(TypeAttributesKt.toDefaultAttributes(annotations), functionDescriptor, functionTypeArgumentProjections);
|
||||
}
|
||||
|
||||
public static final Name extractParameterNameFromFunctionTypeArgument(KotlinType kotlinType) {
|
||||
String value;
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
AnnotationDescriptor mo1389findAnnotation = kotlinType.getAnnotations().mo1389findAnnotation(StandardNames.FqNames.parameterName);
|
||||
if (mo1389findAnnotation == null) {
|
||||
return null;
|
||||
}
|
||||
Object singleOrNull = CollectionsKt.singleOrNull(mo1389findAnnotation.getAllValueArguments().values());
|
||||
StringValue stringValue = singleOrNull instanceof StringValue ? (StringValue) singleOrNull : null;
|
||||
if (stringValue != null && (value = stringValue.getValue()) != null) {
|
||||
if (!Name.isValidIdentifier(value)) {
|
||||
value = null;
|
||||
}
|
||||
if (value != null) {
|
||||
return Name.identifier(value);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final List<KotlinType> getContextReceiverTypesFromFunctionType(KotlinType kotlinType) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
isBuiltinFunctionalType(kotlinType);
|
||||
int contextFunctionTypeParamsCount = contextFunctionTypeParamsCount(kotlinType);
|
||||
if (contextFunctionTypeParamsCount == 0) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
List<TypeProjection> subList = kotlinType.getArguments().subList(0, contextFunctionTypeParamsCount);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(subList, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = subList.iterator();
|
||||
while (it.hasNext()) {
|
||||
KotlinType type = ((TypeProjection) it.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
arrayList.add(type);
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static final ClassDescriptor getFunctionDescriptor(KotlinBuiltIns builtIns, int i, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
ClassDescriptor suspendFunction = z3 ? builtIns.getSuspendFunction(i) : builtIns.getFunction(i);
|
||||
Intrinsics.checkNotNull(suspendFunction);
|
||||
return suspendFunction;
|
||||
}
|
||||
|
||||
public static final List<TypeProjection> getFunctionTypeArgumentProjections(KotlinType kotlinType, List<? extends KotlinType> contextReceiverTypes, List<? extends KotlinType> parameterTypes, List<Name> list, KotlinType returnType, KotlinBuiltIns builtIns) {
|
||||
int collectionSizeOrDefault;
|
||||
Name name;
|
||||
KotlinBuiltIns kotlinBuiltIns;
|
||||
Intrinsics.checkNotNullParameter(contextReceiverTypes, "contextReceiverTypes");
|
||||
Intrinsics.checkNotNullParameter(parameterTypes, "parameterTypes");
|
||||
Intrinsics.checkNotNullParameter(returnType, "returnType");
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
int i = 0;
|
||||
ArrayList arrayList = new ArrayList(contextReceiverTypes.size() + parameterTypes.size() + (kotlinType != null ? 1 : 0) + 1);
|
||||
List<? extends KotlinType> list2 = contextReceiverTypes;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(TypeUtilsKt.asTypeProjection((KotlinType) it.next()));
|
||||
}
|
||||
arrayList.addAll(arrayList2);
|
||||
kotlin.reflect.jvm.internal.impl.utils.CollectionsKt.addIfNotNull(arrayList, kotlinType != null ? TypeUtilsKt.asTypeProjection(kotlinType) : null);
|
||||
for (Object obj : parameterTypes) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
KotlinType kotlinType2 = (KotlinType) obj;
|
||||
if (list == null || (name = list.get(i)) == null || name.isSpecial()) {
|
||||
name = null;
|
||||
}
|
||||
if (name != null) {
|
||||
FqName fqName = StandardNames.FqNames.parameterName;
|
||||
Name name2 = StandardNames.NAME;
|
||||
String asString = name.asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
Map mapOf = MapsKt.mapOf(TuplesKt.to(name2, new StringValue(asString)));
|
||||
kotlinBuiltIns = builtIns;
|
||||
kotlinType2 = TypeUtilsKt.replaceAnnotations(kotlinType2, Annotations.Companion.create(CollectionsKt.plus(kotlinType2.getAnnotations(), new BuiltInAnnotationDescriptor(kotlinBuiltIns, fqName, mapOf, false, 8, null))));
|
||||
} else {
|
||||
kotlinBuiltIns = builtIns;
|
||||
}
|
||||
arrayList.add(TypeUtilsKt.asTypeProjection(kotlinType2));
|
||||
i = i4;
|
||||
builtIns = kotlinBuiltIns;
|
||||
}
|
||||
arrayList.add(TypeUtilsKt.asTypeProjection(returnType));
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static final FunctionTypeKind getFunctionTypeKind(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = kotlinType.getConstructor().mo1394getDeclarationDescriptor();
|
||||
if (mo1394getDeclarationDescriptor != null) {
|
||||
return getFunctionTypeKind(mo1394getDeclarationDescriptor);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final KotlinType getReceiverTypeFromFunctionType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
isBuiltinFunctionalType(kotlinType);
|
||||
if (!isTypeAnnotatedWithExtensionFunctionType(kotlinType)) {
|
||||
return null;
|
||||
}
|
||||
return kotlinType.getArguments().get(contextFunctionTypeParamsCount(kotlinType)).getType();
|
||||
}
|
||||
|
||||
public static final KotlinType getReturnTypeFromFunctionType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
isBuiltinFunctionalType(kotlinType);
|
||||
KotlinType type = ((TypeProjection) CollectionsKt.last((List) kotlinType.getArguments())).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
return type;
|
||||
}
|
||||
|
||||
public static final List<TypeProjection> getValueParameterTypesFromFunctionType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
isBuiltinFunctionalType(kotlinType);
|
||||
return kotlinType.getArguments().subList((isBuiltinExtensionFunctionalType(kotlinType) ? 1 : 0) + contextFunctionTypeParamsCount(kotlinType), r0.size() - 1);
|
||||
}
|
||||
|
||||
public static final boolean isBuiltinExtensionFunctionalType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
return isBuiltinFunctionalType(kotlinType) && isTypeAnnotatedWithExtensionFunctionType(kotlinType);
|
||||
}
|
||||
|
||||
public static final boolean isBuiltinFunctionalClassDescriptor(DeclarationDescriptor declarationDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(declarationDescriptor, "<this>");
|
||||
FunctionTypeKind functionTypeKind = getFunctionTypeKind(declarationDescriptor);
|
||||
return Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.Function.INSTANCE) || Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.SuspendFunction.INSTANCE);
|
||||
}
|
||||
|
||||
public static final boolean isBuiltinFunctionalType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = kotlinType.getConstructor().mo1394getDeclarationDescriptor();
|
||||
return mo1394getDeclarationDescriptor != null && isBuiltinFunctionalClassDescriptor(mo1394getDeclarationDescriptor);
|
||||
}
|
||||
|
||||
public static final boolean isFunctionType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
return Intrinsics.areEqual(getFunctionTypeKind(kotlinType), FunctionTypeKind.Function.INSTANCE);
|
||||
}
|
||||
|
||||
public static final boolean isSuspendFunctionType(KotlinType kotlinType) {
|
||||
Intrinsics.checkNotNullParameter(kotlinType, "<this>");
|
||||
return Intrinsics.areEqual(getFunctionTypeKind(kotlinType), FunctionTypeKind.SuspendFunction.INSTANCE);
|
||||
}
|
||||
|
||||
private static final boolean isTypeAnnotatedWithExtensionFunctionType(KotlinType kotlinType) {
|
||||
return kotlinType.getAnnotations().mo1389findAnnotation(StandardNames.FqNames.extensionFunctionType) != null;
|
||||
}
|
||||
|
||||
public static final Annotations withContextReceiversFunctionAnnotation(Annotations annotations, KotlinBuiltIns builtIns, int i) {
|
||||
Intrinsics.checkNotNullParameter(annotations, "<this>");
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
FqName fqName = StandardNames.FqNames.contextFunctionTypeParams;
|
||||
return annotations.hasAnnotation(fqName) ? annotations : Annotations.Companion.create(CollectionsKt.plus(annotations, new BuiltInAnnotationDescriptor(builtIns, fqName, MapsKt.mapOf(TuplesKt.to(StandardNames.CONTEXT_FUNCTION_TYPE_PARAMETER_COUNT_NAME, new IntValue(i))), false, 8, null)));
|
||||
}
|
||||
|
||||
public static final Annotations withExtensionFunctionAnnotation(Annotations annotations, KotlinBuiltIns builtIns) {
|
||||
Intrinsics.checkNotNullParameter(annotations, "<this>");
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
FqName fqName = StandardNames.FqNames.extensionFunctionType;
|
||||
return annotations.hasAnnotation(fqName) ? annotations : Annotations.Companion.create(CollectionsKt.plus(annotations, new BuiltInAnnotationDescriptor(builtIns, fqName, MapsKt.emptyMap(), false, 8, null)));
|
||||
}
|
||||
|
||||
public static final FunctionTypeKind getFunctionTypeKind(DeclarationDescriptor declarationDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(declarationDescriptor, "<this>");
|
||||
if ((declarationDescriptor instanceof ClassDescriptor) && KotlinBuiltIns.isUnderKotlinPackage(declarationDescriptor)) {
|
||||
return getFunctionTypeKind(DescriptorUtilsKt.getFqNameUnsafe(declarationDescriptor));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final FunctionTypeKind getFunctionTypeKind(FqNameUnsafe fqNameUnsafe) {
|
||||
if (!fqNameUnsafe.isSafe() || fqNameUnsafe.isRoot()) {
|
||||
return null;
|
||||
}
|
||||
FunctionTypeKindExtractor functionTypeKindExtractor = FunctionTypeKindExtractor.Companion.getDefault();
|
||||
FqName parent = fqNameUnsafe.toSafe().parent();
|
||||
Intrinsics.checkNotNullExpressionValue(parent, "parent(...)");
|
||||
String asString = fqNameUnsafe.shortName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return functionTypeKindExtractor.getFunctionalClassKind(parent, asString);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,133 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.Set;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class PrimitiveType {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ PrimitiveType[] $VALUES;
|
||||
public static final PrimitiveType BOOLEAN = new PrimitiveType("BOOLEAN", 0, "Boolean");
|
||||
public static final PrimitiveType BYTE;
|
||||
public static final PrimitiveType CHAR;
|
||||
public static final Companion Companion;
|
||||
public static final PrimitiveType DOUBLE;
|
||||
public static final PrimitiveType FLOAT;
|
||||
public static final PrimitiveType INT;
|
||||
public static final PrimitiveType LONG;
|
||||
|
||||
@JvmField
|
||||
public static final Set<PrimitiveType> NUMBER_TYPES;
|
||||
public static final PrimitiveType SHORT;
|
||||
private final Lazy arrayTypeFqName$delegate;
|
||||
private final Name arrayTypeName;
|
||||
private final Lazy typeFqName$delegate;
|
||||
private final Name typeName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private static final /* synthetic */ PrimitiveType[] $values() {
|
||||
return new PrimitiveType[]{BOOLEAN, CHAR, BYTE, SHORT, INT, FLOAT, LONG, DOUBLE};
|
||||
}
|
||||
|
||||
static {
|
||||
PrimitiveType primitiveType = new PrimitiveType("CHAR", 1, "Char");
|
||||
CHAR = primitiveType;
|
||||
PrimitiveType primitiveType2 = new PrimitiveType("BYTE", 2, "Byte");
|
||||
BYTE = primitiveType2;
|
||||
PrimitiveType primitiveType3 = new PrimitiveType("SHORT", 3, "Short");
|
||||
SHORT = primitiveType3;
|
||||
PrimitiveType primitiveType4 = new PrimitiveType("INT", 4, "Int");
|
||||
INT = primitiveType4;
|
||||
PrimitiveType primitiveType5 = new PrimitiveType("FLOAT", 5, "Float");
|
||||
FLOAT = primitiveType5;
|
||||
PrimitiveType primitiveType6 = new PrimitiveType("LONG", 6, "Long");
|
||||
LONG = primitiveType6;
|
||||
PrimitiveType primitiveType7 = new PrimitiveType("DOUBLE", 7, "Double");
|
||||
DOUBLE = primitiveType7;
|
||||
PrimitiveType[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
Companion = new Companion(null);
|
||||
NUMBER_TYPES = SetsKt.setOf((Object[]) new PrimitiveType[]{primitiveType, primitiveType2, primitiveType3, primitiveType4, primitiveType5, primitiveType6, primitiveType7});
|
||||
}
|
||||
|
||||
private PrimitiveType(String str, int i, String str2) {
|
||||
Name identifier = Name.identifier(str2);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
this.typeName = identifier;
|
||||
Name identifier2 = Name.identifier(str2 + "Array");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
|
||||
this.arrayTypeName = identifier2;
|
||||
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
|
||||
this.typeFqName$delegate = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<FqName>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType$typeFqName$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final FqName invoke() {
|
||||
FqName child = StandardNames.BUILT_INS_PACKAGE_FQ_NAME.child(PrimitiveType.this.getTypeName());
|
||||
Intrinsics.checkNotNullExpressionValue(child, "child(...)");
|
||||
return child;
|
||||
}
|
||||
});
|
||||
this.arrayTypeFqName$delegate = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<FqName>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType$arrayTypeFqName$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final FqName invoke() {
|
||||
FqName child = StandardNames.BUILT_INS_PACKAGE_FQ_NAME.child(PrimitiveType.this.getArrayTypeName());
|
||||
Intrinsics.checkNotNullExpressionValue(child, "child(...)");
|
||||
return child;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static PrimitiveType valueOf(String str) {
|
||||
return (PrimitiveType) Enum.valueOf(PrimitiveType.class, str);
|
||||
}
|
||||
|
||||
public static PrimitiveType[] values() {
|
||||
return (PrimitiveType[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final FqName getArrayTypeFqName() {
|
||||
return (FqName) this.arrayTypeFqName$delegate.getValue();
|
||||
}
|
||||
|
||||
public final Name getArrayTypeName() {
|
||||
return this.arrayTypeName;
|
||||
}
|
||||
|
||||
public final FqName getTypeFqName() {
|
||||
return (FqName) this.typeFqName$delegate.getValue();
|
||||
}
|
||||
|
||||
public final Name getTypeName() {
|
||||
return this.typeName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.LazyThreadSafetyMode;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.StarProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.util.capitalizeDecapitalize.CapitalizeDecapitalizeKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nReflectionTypes.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ReflectionTypes.kt\norg/jetbrains/kotlin/builtins/ReflectionTypes\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,225:1\n1549#2:226\n1620#2,3:227\n*S KotlinDebug\n*F\n+ 1 ReflectionTypes.kt\norg/jetbrains/kotlin/builtins/ReflectionTypes\n*L\n94#1:226\n94#1:227,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ReflectionTypes {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kClass", "getKClass()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kProperty", "getKProperty()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kProperty0", "getKProperty0()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kProperty1", "getKProperty1()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kProperty2", "getKProperty2()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kMutableProperty0", "getKMutableProperty0()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kMutableProperty1", "getKMutableProperty1()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(ReflectionTypes.class), "kMutableProperty2", "getKMutableProperty2()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;"))};
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private final ClassLookup kClass$delegate;
|
||||
private final ClassLookup kMutableProperty0$delegate;
|
||||
private final ClassLookup kMutableProperty1$delegate;
|
||||
private final ClassLookup kMutableProperty2$delegate;
|
||||
private final ClassLookup kProperty$delegate;
|
||||
private final ClassLookup kProperty0$delegate;
|
||||
private final ClassLookup kProperty1$delegate;
|
||||
private final ClassLookup kProperty2$delegate;
|
||||
private final Lazy kotlinReflectScope$delegate;
|
||||
private final NotFoundClasses notFoundClasses;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class ClassLookup {
|
||||
private final int numberOfTypeParameters;
|
||||
|
||||
public ClassLookup(int i) {
|
||||
this.numberOfTypeParameters = i;
|
||||
}
|
||||
|
||||
public final ClassDescriptor getValue(ReflectionTypes types, KProperty<?> property) {
|
||||
Intrinsics.checkNotNullParameter(types, "types");
|
||||
Intrinsics.checkNotNullParameter(property, "property");
|
||||
return types.find(CapitalizeDecapitalizeKt.capitalizeAsciiOnly(property.getName()), this.numberOfTypeParameters);
|
||||
}
|
||||
}
|
||||
|
||||
@SourceDebugExtension({"SMAP\nReflectionTypes.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ReflectionTypes.kt\norg/jetbrains/kotlin/builtins/ReflectionTypes$Companion\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,225:1\n1747#2,3:226\n*S KotlinDebug\n*F\n+ 1 ReflectionTypes.kt\norg/jetbrains/kotlin/builtins/ReflectionTypes$Companion\n*L\n122#1:226,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final KotlinType createKPropertyStarType(ModuleDescriptor module) {
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
ClassDescriptor findClassAcrossModuleDependencies = FindClassInModuleKt.findClassAcrossModuleDependencies(module, StandardNames.FqNames.kProperty);
|
||||
if (findClassAcrossModuleDependencies == null) {
|
||||
return null;
|
||||
}
|
||||
TypeAttributes empty = TypeAttributes.Companion.getEmpty();
|
||||
List<TypeParameterDescriptor> parameters = findClassAcrossModuleDependencies.getTypeConstructor().getParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
|
||||
Object single = CollectionsKt.single((List<? extends Object>) parameters);
|
||||
Intrinsics.checkNotNullExpressionValue(single, "single(...)");
|
||||
return KotlinTypeFactory.simpleNotNullType(empty, findClassAcrossModuleDependencies, CollectionsKt.listOf(new StarProjectionImpl((TypeParameterDescriptor) single)));
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public ReflectionTypes(final ModuleDescriptor module, NotFoundClasses notFoundClasses) {
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(notFoundClasses, "notFoundClasses");
|
||||
this.notFoundClasses = notFoundClasses;
|
||||
this.kotlinReflectScope$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<MemberScope>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.ReflectionTypes$kotlinReflectScope$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final MemberScope invoke() {
|
||||
return ModuleDescriptor.this.getPackage(StandardNames.KOTLIN_REFLECT_FQ_NAME).getMemberScope();
|
||||
}
|
||||
});
|
||||
this.kClass$delegate = new ClassLookup(1);
|
||||
this.kProperty$delegate = new ClassLookup(1);
|
||||
this.kProperty0$delegate = new ClassLookup(1);
|
||||
this.kProperty1$delegate = new ClassLookup(2);
|
||||
this.kProperty2$delegate = new ClassLookup(3);
|
||||
this.kMutableProperty0$delegate = new ClassLookup(1);
|
||||
this.kMutableProperty1$delegate = new ClassLookup(2);
|
||||
this.kMutableProperty2$delegate = new ClassLookup(3);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final ClassDescriptor find(String str, int i) {
|
||||
Name identifier = Name.identifier(str);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
ClassifierDescriptor mo1396getContributedClassifier = getKotlinReflectScope().mo1396getContributedClassifier(identifier, NoLookupLocation.FROM_REFLECTION);
|
||||
ClassDescriptor classDescriptor = mo1396getContributedClassifier instanceof ClassDescriptor ? (ClassDescriptor) mo1396getContributedClassifier : null;
|
||||
return classDescriptor == null ? this.notFoundClasses.getClass(new ClassId(StandardNames.KOTLIN_REFLECT_FQ_NAME, identifier), CollectionsKt.listOf(Integer.valueOf(i))) : classDescriptor;
|
||||
}
|
||||
|
||||
private final MemberScope getKotlinReflectScope() {
|
||||
return (MemberScope) this.kotlinReflectScope$delegate.getValue();
|
||||
}
|
||||
|
||||
public final ClassDescriptor getKClass() {
|
||||
return this.kClass$delegate.getValue(this, $$delegatedProperties[0]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,676 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.remoteconfig.RemoteConfigConstants;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.JvmStatic;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.utils.CollectionsKt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class StandardNames {
|
||||
|
||||
@JvmField
|
||||
public static final FqName ANNOTATION_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name BACKING_FIELD;
|
||||
|
||||
@JvmField
|
||||
public static final FqName BUILT_INS_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Set<FqName> BUILT_INS_PACKAGE_FQ_NAMES;
|
||||
|
||||
@JvmField
|
||||
public static final Name BUILT_INS_PACKAGE_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name CHAR_CODE;
|
||||
|
||||
@JvmField
|
||||
public static final FqName COLLECTIONS_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name CONTEXT_FUNCTION_TYPE_PARAMETER_COUNT_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName CONTINUATION_INTERFACE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName COROUTINES_INTRINSICS_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName COROUTINES_JVM_INTERNAL_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName COROUTINES_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final String DATA_CLASS_COMPONENT_PREFIX;
|
||||
|
||||
@JvmField
|
||||
public static final Name DATA_CLASS_COPY;
|
||||
|
||||
@JvmField
|
||||
public static final Name DEFAULT_VALUE_PARAMETER;
|
||||
|
||||
@JvmField
|
||||
public static final FqName DYNAMIC_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name ENUM_ENTRIES;
|
||||
|
||||
@JvmField
|
||||
public static final Name ENUM_VALUES;
|
||||
|
||||
@JvmField
|
||||
public static final Name ENUM_VALUE_OF;
|
||||
|
||||
@JvmField
|
||||
public static final Name HASHCODE_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name IMPLICIT_LAMBDA_PARAMETER_NAME;
|
||||
public static final StandardNames INSTANCE = new StandardNames();
|
||||
|
||||
@JvmField
|
||||
public static final FqName KOTLIN_INTERNAL_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName KOTLIN_REFLECT_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name MAIN;
|
||||
|
||||
@JvmField
|
||||
public static final Name NAME;
|
||||
|
||||
@JvmField
|
||||
public static final Name NEXT_CHAR;
|
||||
private static final FqName NON_EXISTENT_CLASS;
|
||||
|
||||
@JvmField
|
||||
public static final List<String> PREFIXES;
|
||||
|
||||
@JvmField
|
||||
public static final FqName RANGES_PACKAGE_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName RESULT_FQ_NAME;
|
||||
|
||||
@JvmField
|
||||
public static final FqName TEXT_PACKAGE_FQ_NAME;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nStandardNames.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StandardNames.kt\norg/jetbrains/kotlin/builtins/StandardNames$FqNames\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,302:1\n11400#2,3:303\n11400#2,3:306\n*S KotlinDebug\n*F\n+ 1 StandardNames.kt\norg/jetbrains/kotlin/builtins/StandardNames$FqNames\n*L\n198#1:303,3\n202#1:306,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class FqNames {
|
||||
public static final FqNames INSTANCE;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _boolean;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _byte;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _char;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _double;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _enum;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _float;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _int;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _long;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe _short;
|
||||
|
||||
@JvmField
|
||||
public static final FqName accessibleLateinitPropertyLiteral;
|
||||
|
||||
@JvmField
|
||||
public static final FqName annotation;
|
||||
|
||||
@JvmField
|
||||
public static final FqName annotationRetention;
|
||||
|
||||
@JvmField
|
||||
public static final FqName annotationTarget;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe any;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe array;
|
||||
|
||||
@JvmField
|
||||
public static final Map<FqNameUnsafe, PrimitiveType> arrayClassFqNameToPrimitiveType;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe charSequence;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe cloneable;
|
||||
|
||||
@JvmField
|
||||
public static final FqName collection;
|
||||
|
||||
@JvmField
|
||||
public static final FqName comparable;
|
||||
|
||||
@JvmField
|
||||
public static final FqName contextFunctionTypeParams;
|
||||
|
||||
@JvmField
|
||||
public static final FqName deprecated;
|
||||
|
||||
@JvmField
|
||||
public static final FqName deprecatedSinceKotlin;
|
||||
|
||||
@JvmField
|
||||
public static final FqName deprecationLevel;
|
||||
|
||||
@JvmField
|
||||
public static final FqName extensionFunctionType;
|
||||
|
||||
@JvmField
|
||||
public static final Map<FqNameUnsafe, PrimitiveType> fqNameToPrimitiveType;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe functionSupertype;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe intRange;
|
||||
|
||||
@JvmField
|
||||
public static final FqName iterable;
|
||||
|
||||
@JvmField
|
||||
public static final FqName iterator;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kCallable;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kClass;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kDeclarationContainer;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kMutableProperty0;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kMutableProperty1;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kMutableProperty2;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kMutablePropertyFqName;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId kProperty;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kProperty0;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kProperty1;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kProperty2;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kPropertyFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe kType;
|
||||
|
||||
@JvmField
|
||||
public static final FqName list;
|
||||
|
||||
@JvmField
|
||||
public static final FqName listIterator;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe longRange;
|
||||
|
||||
@JvmField
|
||||
public static final FqName map;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mapEntry;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mustBeDocumented;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableCollection;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableIterable;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableIterator;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableList;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableListIterator;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableMap;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableMapEntry;
|
||||
|
||||
@JvmField
|
||||
public static final FqName mutableSet;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe nothing;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe number;
|
||||
|
||||
@JvmField
|
||||
public static final FqName parameterName;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId parameterNameClassId;
|
||||
|
||||
@JvmField
|
||||
public static final Set<Name> primitiveArrayTypeShortNames;
|
||||
|
||||
@JvmField
|
||||
public static final Set<Name> primitiveTypeShortNames;
|
||||
|
||||
@JvmField
|
||||
public static final FqName publishedApi;
|
||||
|
||||
@JvmField
|
||||
public static final FqName repeatable;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId repeatableClassId;
|
||||
|
||||
@JvmField
|
||||
public static final FqName replaceWith;
|
||||
|
||||
@JvmField
|
||||
public static final FqName retention;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId retentionClassId;
|
||||
|
||||
@JvmField
|
||||
public static final FqName set;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe string;
|
||||
|
||||
@JvmField
|
||||
public static final FqName suppress;
|
||||
|
||||
@JvmField
|
||||
public static final FqName target;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId targetClassId;
|
||||
|
||||
@JvmField
|
||||
public static final FqName throwable;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId uByte;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uByteArrayFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uByteFqName;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId uInt;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uIntArrayFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uIntFqName;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId uLong;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uLongArrayFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uLongFqName;
|
||||
|
||||
@JvmField
|
||||
public static final ClassId uShort;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uShortArrayFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqName uShortFqName;
|
||||
|
||||
@JvmField
|
||||
public static final FqNameUnsafe unit;
|
||||
|
||||
@JvmField
|
||||
public static final FqName unsafeVariance;
|
||||
|
||||
static {
|
||||
FqNames fqNames = new FqNames();
|
||||
INSTANCE = fqNames;
|
||||
any = fqNames.fqNameUnsafe("Any");
|
||||
nothing = fqNames.fqNameUnsafe("Nothing");
|
||||
cloneable = fqNames.fqNameUnsafe("Cloneable");
|
||||
suppress = fqNames.fqName("Suppress");
|
||||
unit = fqNames.fqNameUnsafe("Unit");
|
||||
charSequence = fqNames.fqNameUnsafe("CharSequence");
|
||||
string = fqNames.fqNameUnsafe("String");
|
||||
array = fqNames.fqNameUnsafe("Array");
|
||||
_boolean = fqNames.fqNameUnsafe("Boolean");
|
||||
_char = fqNames.fqNameUnsafe("Char");
|
||||
_byte = fqNames.fqNameUnsafe("Byte");
|
||||
_short = fqNames.fqNameUnsafe("Short");
|
||||
_int = fqNames.fqNameUnsafe("Int");
|
||||
_long = fqNames.fqNameUnsafe("Long");
|
||||
_float = fqNames.fqNameUnsafe("Float");
|
||||
_double = fqNames.fqNameUnsafe("Double");
|
||||
number = fqNames.fqNameUnsafe("Number");
|
||||
_enum = fqNames.fqNameUnsafe("Enum");
|
||||
functionSupertype = fqNames.fqNameUnsafe("Function");
|
||||
throwable = fqNames.fqName("Throwable");
|
||||
comparable = fqNames.fqName("Comparable");
|
||||
intRange = fqNames.rangesFqName("IntRange");
|
||||
longRange = fqNames.rangesFqName("LongRange");
|
||||
deprecated = fqNames.fqName("Deprecated");
|
||||
deprecatedSinceKotlin = fqNames.fqName("DeprecatedSinceKotlin");
|
||||
deprecationLevel = fqNames.fqName("DeprecationLevel");
|
||||
replaceWith = fqNames.fqName("ReplaceWith");
|
||||
extensionFunctionType = fqNames.fqName("ExtensionFunctionType");
|
||||
contextFunctionTypeParams = fqNames.fqName("ContextFunctionTypeParams");
|
||||
FqName fqName = fqNames.fqName("ParameterName");
|
||||
parameterName = fqName;
|
||||
ClassId classId = ClassId.topLevel(fqName);
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
parameterNameClassId = classId;
|
||||
annotation = fqNames.fqName("Annotation");
|
||||
FqName annotationName = fqNames.annotationName("Target");
|
||||
target = annotationName;
|
||||
ClassId classId2 = ClassId.topLevel(annotationName);
|
||||
Intrinsics.checkNotNullExpressionValue(classId2, "topLevel(...)");
|
||||
targetClassId = classId2;
|
||||
annotationTarget = fqNames.annotationName("AnnotationTarget");
|
||||
annotationRetention = fqNames.annotationName("AnnotationRetention");
|
||||
FqName annotationName2 = fqNames.annotationName("Retention");
|
||||
retention = annotationName2;
|
||||
ClassId classId3 = ClassId.topLevel(annotationName2);
|
||||
Intrinsics.checkNotNullExpressionValue(classId3, "topLevel(...)");
|
||||
retentionClassId = classId3;
|
||||
FqName annotationName3 = fqNames.annotationName("Repeatable");
|
||||
repeatable = annotationName3;
|
||||
ClassId classId4 = ClassId.topLevel(annotationName3);
|
||||
Intrinsics.checkNotNullExpressionValue(classId4, "topLevel(...)");
|
||||
repeatableClassId = classId4;
|
||||
mustBeDocumented = fqNames.annotationName("MustBeDocumented");
|
||||
unsafeVariance = fqNames.fqName("UnsafeVariance");
|
||||
publishedApi = fqNames.fqName("PublishedApi");
|
||||
accessibleLateinitPropertyLiteral = fqNames.internalName("AccessibleLateinitPropertyLiteral");
|
||||
iterator = fqNames.collectionsFqName("Iterator");
|
||||
iterable = fqNames.collectionsFqName("Iterable");
|
||||
collection = fqNames.collectionsFqName("Collection");
|
||||
list = fqNames.collectionsFqName("List");
|
||||
listIterator = fqNames.collectionsFqName("ListIterator");
|
||||
set = fqNames.collectionsFqName("Set");
|
||||
FqName collectionsFqName = fqNames.collectionsFqName("Map");
|
||||
map = collectionsFqName;
|
||||
mapEntry = a.x("Entry", collectionsFqName, "child(...)");
|
||||
mutableIterator = fqNames.collectionsFqName("MutableIterator");
|
||||
mutableIterable = fqNames.collectionsFqName("MutableIterable");
|
||||
mutableCollection = fqNames.collectionsFqName("MutableCollection");
|
||||
mutableList = fqNames.collectionsFqName("MutableList");
|
||||
mutableListIterator = fqNames.collectionsFqName("MutableListIterator");
|
||||
mutableSet = fqNames.collectionsFqName("MutableSet");
|
||||
FqName collectionsFqName2 = fqNames.collectionsFqName("MutableMap");
|
||||
mutableMap = collectionsFqName2;
|
||||
mutableMapEntry = a.x("MutableEntry", collectionsFqName2, "child(...)");
|
||||
kClass = reflect("KClass");
|
||||
kType = reflect("KType");
|
||||
kCallable = reflect("KCallable");
|
||||
kProperty0 = reflect("KProperty0");
|
||||
kProperty1 = reflect("KProperty1");
|
||||
kProperty2 = reflect("KProperty2");
|
||||
kMutableProperty0 = reflect("KMutableProperty0");
|
||||
kMutableProperty1 = reflect("KMutableProperty1");
|
||||
kMutableProperty2 = reflect("KMutableProperty2");
|
||||
FqNameUnsafe reflect = reflect("KProperty");
|
||||
kPropertyFqName = reflect;
|
||||
kMutablePropertyFqName = reflect("KMutableProperty");
|
||||
ClassId classId5 = ClassId.topLevel(reflect.toSafe());
|
||||
Intrinsics.checkNotNullExpressionValue(classId5, "topLevel(...)");
|
||||
kProperty = classId5;
|
||||
kDeclarationContainer = reflect("KDeclarationContainer");
|
||||
FqName fqName2 = fqNames.fqName("UByte");
|
||||
uByteFqName = fqName2;
|
||||
FqName fqName3 = fqNames.fqName("UShort");
|
||||
uShortFqName = fqName3;
|
||||
FqName fqName4 = fqNames.fqName("UInt");
|
||||
uIntFqName = fqName4;
|
||||
FqName fqName5 = fqNames.fqName("ULong");
|
||||
uLongFqName = fqName5;
|
||||
ClassId classId6 = ClassId.topLevel(fqName2);
|
||||
Intrinsics.checkNotNullExpressionValue(classId6, "topLevel(...)");
|
||||
uByte = classId6;
|
||||
ClassId classId7 = ClassId.topLevel(fqName3);
|
||||
Intrinsics.checkNotNullExpressionValue(classId7, "topLevel(...)");
|
||||
uShort = classId7;
|
||||
ClassId classId8 = ClassId.topLevel(fqName4);
|
||||
Intrinsics.checkNotNullExpressionValue(classId8, "topLevel(...)");
|
||||
uInt = classId8;
|
||||
ClassId classId9 = ClassId.topLevel(fqName5);
|
||||
Intrinsics.checkNotNullExpressionValue(classId9, "topLevel(...)");
|
||||
uLong = classId9;
|
||||
uByteArrayFqName = fqNames.fqName("UByteArray");
|
||||
uShortArrayFqName = fqNames.fqName("UShortArray");
|
||||
uIntArrayFqName = fqNames.fqName("UIntArray");
|
||||
uLongArrayFqName = fqNames.fqName("ULongArray");
|
||||
HashSet newHashSetWithExpectedSize = CollectionsKt.newHashSetWithExpectedSize(PrimitiveType.values().length);
|
||||
for (PrimitiveType primitiveType : PrimitiveType.values()) {
|
||||
newHashSetWithExpectedSize.add(primitiveType.getTypeName());
|
||||
}
|
||||
primitiveTypeShortNames = newHashSetWithExpectedSize;
|
||||
HashSet newHashSetWithExpectedSize2 = CollectionsKt.newHashSetWithExpectedSize(PrimitiveType.values().length);
|
||||
for (PrimitiveType primitiveType2 : PrimitiveType.values()) {
|
||||
newHashSetWithExpectedSize2.add(primitiveType2.getArrayTypeName());
|
||||
}
|
||||
primitiveArrayTypeShortNames = newHashSetWithExpectedSize2;
|
||||
HashMap newHashMapWithExpectedSize = CollectionsKt.newHashMapWithExpectedSize(PrimitiveType.values().length);
|
||||
for (PrimitiveType primitiveType3 : PrimitiveType.values()) {
|
||||
FqNames fqNames2 = INSTANCE;
|
||||
String asString = primitiveType3.getTypeName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
newHashMapWithExpectedSize.put(fqNames2.fqNameUnsafe(asString), primitiveType3);
|
||||
}
|
||||
fqNameToPrimitiveType = newHashMapWithExpectedSize;
|
||||
HashMap newHashMapWithExpectedSize2 = CollectionsKt.newHashMapWithExpectedSize(PrimitiveType.values().length);
|
||||
for (PrimitiveType primitiveType4 : PrimitiveType.values()) {
|
||||
FqNames fqNames3 = INSTANCE;
|
||||
String asString2 = primitiveType4.getArrayTypeName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString2, "asString(...)");
|
||||
newHashMapWithExpectedSize2.put(fqNames3.fqNameUnsafe(asString2), primitiveType4);
|
||||
}
|
||||
arrayClassFqNameToPrimitiveType = newHashMapWithExpectedSize2;
|
||||
}
|
||||
|
||||
private FqNames() {
|
||||
}
|
||||
|
||||
private final FqName annotationName(String str) {
|
||||
return a.x(str, StandardNames.ANNOTATION_PACKAGE_FQ_NAME, "child(...)");
|
||||
}
|
||||
|
||||
private final FqName collectionsFqName(String str) {
|
||||
return a.x(str, StandardNames.COLLECTIONS_PACKAGE_FQ_NAME, "child(...)");
|
||||
}
|
||||
|
||||
private final FqName fqName(String str) {
|
||||
return a.x(str, StandardNames.BUILT_INS_PACKAGE_FQ_NAME, "child(...)");
|
||||
}
|
||||
|
||||
private final FqNameUnsafe fqNameUnsafe(String str) {
|
||||
FqNameUnsafe unsafe = fqName(str).toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
return unsafe;
|
||||
}
|
||||
|
||||
private final FqName internalName(String str) {
|
||||
return a.x(str, StandardNames.KOTLIN_INTERNAL_FQ_NAME, "child(...)");
|
||||
}
|
||||
|
||||
private final FqNameUnsafe rangesFqName(String str) {
|
||||
FqNameUnsafe unsafe = StandardNames.RANGES_PACKAGE_FQ_NAME.child(Name.identifier(str)).toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
return unsafe;
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final FqNameUnsafe reflect(String simpleName) {
|
||||
Intrinsics.checkNotNullParameter(simpleName, "simpleName");
|
||||
FqNameUnsafe unsafe = StandardNames.KOTLIN_REFLECT_FQ_NAME.child(Name.identifier(simpleName)).toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
return unsafe;
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
Name identifier = Name.identifier("field");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
BACKING_FIELD = identifier;
|
||||
Name identifier2 = Name.identifier("value");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
|
||||
DEFAULT_VALUE_PARAMETER = identifier2;
|
||||
Name identifier3 = Name.identifier("values");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier3, "identifier(...)");
|
||||
ENUM_VALUES = identifier3;
|
||||
Name identifier4 = Name.identifier(RemoteConfigConstants.ResponseFieldKey.ENTRIES);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier4, "identifier(...)");
|
||||
ENUM_ENTRIES = identifier4;
|
||||
Name identifier5 = Name.identifier("valueOf");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier5, "identifier(...)");
|
||||
ENUM_VALUE_OF = identifier5;
|
||||
Name identifier6 = Name.identifier("copy");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier6, "identifier(...)");
|
||||
DATA_CLASS_COPY = identifier6;
|
||||
DATA_CLASS_COMPONENT_PREFIX = "component";
|
||||
Name identifier7 = Name.identifier("hashCode");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier7, "identifier(...)");
|
||||
HASHCODE_NAME = identifier7;
|
||||
Name identifier8 = Name.identifier("code");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier8, "identifier(...)");
|
||||
CHAR_CODE = identifier8;
|
||||
Name identifier9 = Name.identifier(AppMeasurementSdk.ConditionalUserProperty.NAME);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier9, "identifier(...)");
|
||||
NAME = identifier9;
|
||||
Name identifier10 = Name.identifier("main");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier10, "identifier(...)");
|
||||
MAIN = identifier10;
|
||||
Name identifier11 = Name.identifier("nextChar");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier11, "identifier(...)");
|
||||
NEXT_CHAR = identifier11;
|
||||
Name identifier12 = Name.identifier("it");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier12, "identifier(...)");
|
||||
IMPLICIT_LAMBDA_PARAMETER_NAME = identifier12;
|
||||
Name identifier13 = Name.identifier("count");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier13, "identifier(...)");
|
||||
CONTEXT_FUNCTION_TYPE_PARAMETER_COUNT_NAME = identifier13;
|
||||
DYNAMIC_FQ_NAME = new FqName("<dynamic>");
|
||||
FqName fqName = new FqName("kotlin.coroutines");
|
||||
COROUTINES_PACKAGE_FQ_NAME = fqName;
|
||||
COROUTINES_JVM_INTERNAL_PACKAGE_FQ_NAME = new FqName("kotlin.coroutines.jvm.internal");
|
||||
COROUTINES_INTRINSICS_PACKAGE_FQ_NAME = new FqName("kotlin.coroutines.intrinsics");
|
||||
CONTINUATION_INTERFACE_FQ_NAME = a.x("Continuation", fqName, "child(...)");
|
||||
RESULT_FQ_NAME = new FqName("kotlin.Result");
|
||||
FqName fqName2 = new FqName("kotlin.reflect");
|
||||
KOTLIN_REFLECT_FQ_NAME = fqName2;
|
||||
PREFIXES = kotlin.collections.CollectionsKt.listOf((Object[]) new String[]{"KProperty", "KMutableProperty", "KFunction", "KSuspendFunction"});
|
||||
Name identifier14 = Name.identifier("kotlin");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier14, "identifier(...)");
|
||||
BUILT_INS_PACKAGE_NAME = identifier14;
|
||||
FqName fqName3 = FqName.topLevel(identifier14);
|
||||
Intrinsics.checkNotNullExpressionValue(fqName3, "topLevel(...)");
|
||||
BUILT_INS_PACKAGE_FQ_NAME = fqName3;
|
||||
FqName x3 = a.x("annotation", fqName3, "child(...)");
|
||||
ANNOTATION_PACKAGE_FQ_NAME = x3;
|
||||
FqName x4 = a.x("collections", fqName3, "child(...)");
|
||||
COLLECTIONS_PACKAGE_FQ_NAME = x4;
|
||||
FqName x5 = a.x("ranges", fqName3, "child(...)");
|
||||
RANGES_PACKAGE_FQ_NAME = x5;
|
||||
TEXT_PACKAGE_FQ_NAME = a.x("text", fqName3, "child(...)");
|
||||
FqName x6 = a.x("internal", fqName3, "child(...)");
|
||||
KOTLIN_INTERNAL_FQ_NAME = x6;
|
||||
NON_EXISTENT_CLASS = new FqName("error.NonExistentClass");
|
||||
BUILT_INS_PACKAGE_FQ_NAMES = SetsKt.setOf((Object[]) new FqName[]{fqName3, x4, x5, x3, fqName2, x6, fqName});
|
||||
}
|
||||
|
||||
private StandardNames() {
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final ClassId getFunctionClassId(int i) {
|
||||
return new ClassId(BUILT_INS_PACKAGE_FQ_NAME, Name.identifier(getFunctionName(i)));
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final String getFunctionName(int i) {
|
||||
return a.l(i, "Function");
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final FqName getPrimitiveFqName(PrimitiveType primitiveType) {
|
||||
Intrinsics.checkNotNullParameter(primitiveType, "primitiveType");
|
||||
FqName child = BUILT_INS_PACKAGE_FQ_NAME.child(primitiveType.getTypeName());
|
||||
Intrinsics.checkNotNullExpressionValue(child, "child(...)");
|
||||
return child;
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final String getSuspendFunctionName(int i) {
|
||||
return FunctionTypeKind.SuspendFunction.INSTANCE.getClassNamePrefix() + i;
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final boolean isPrimitiveArray(FqNameUnsafe arrayFqName) {
|
||||
Intrinsics.checkNotNullParameter(arrayFqName, "arrayFqName");
|
||||
return FqNames.arrayClassFqNameToPrimitiveType.get(arrayFqName) != null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.EmptyPackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.MutableClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.TypeParameterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.LockBasedStorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
|
||||
import kotlin.reflect.jvm.internal.impl.types.error.ErrorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nsuspendFunctionTypes.kt\nKotlin\n*S Kotlin\n*F\n+ 1 suspendFunctionTypes.kt\norg/jetbrains/kotlin/builtins/SuspendFunctionTypesKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,65:1\n1549#2:66\n1620#2,3:67\n1#3:70\n*S KotlinDebug\n*F\n+ 1 suspendFunctionTypes.kt\norg/jetbrains/kotlin/builtins/SuspendFunctionTypesKt\n*L\n54#1:66\n54#1:67,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class SuspendFunctionTypesKt {
|
||||
private static final MutableClassDescriptor FAKE_CONTINUATION_CLASS_DESCRIPTOR;
|
||||
|
||||
static {
|
||||
EmptyPackageFragmentDescriptor emptyPackageFragmentDescriptor = new EmptyPackageFragmentDescriptor(ErrorUtils.INSTANCE.getErrorModule(), StandardNames.COROUTINES_PACKAGE_FQ_NAME);
|
||||
ClassKind classKind = ClassKind.INTERFACE;
|
||||
Name shortName = StandardNames.CONTINUATION_INTERFACE_FQ_NAME.shortName();
|
||||
SourceElement sourceElement = SourceElement.NO_SOURCE;
|
||||
StorageManager storageManager = LockBasedStorageManager.NO_LOCKS;
|
||||
MutableClassDescriptor mutableClassDescriptor = new MutableClassDescriptor(emptyPackageFragmentDescriptor, classKind, false, false, shortName, sourceElement, storageManager);
|
||||
mutableClassDescriptor.setModality(Modality.ABSTRACT);
|
||||
mutableClassDescriptor.setVisibility(DescriptorVisibilities.PUBLIC);
|
||||
mutableClassDescriptor.setTypeParameterDescriptors(CollectionsKt.listOf(TypeParameterDescriptorImpl.createWithDefaultBound(mutableClassDescriptor, Annotations.Companion.getEMPTY(), false, Variance.IN_VARIANCE, Name.identifier("T"), 0, storageManager)));
|
||||
mutableClassDescriptor.createTypeConstructor();
|
||||
FAKE_CONTINUATION_CLASS_DESCRIPTOR = mutableClassDescriptor;
|
||||
}
|
||||
|
||||
public static final SimpleType transformSuspendFunctionToRuntimeFunctionType(KotlinType suspendFunType) {
|
||||
int collectionSizeOrDefault;
|
||||
SimpleType createFunctionType;
|
||||
Intrinsics.checkNotNullParameter(suspendFunType, "suspendFunType");
|
||||
FunctionTypesKt.isSuspendFunctionType(suspendFunType);
|
||||
KotlinBuiltIns builtIns = TypeUtilsKt.getBuiltIns(suspendFunType);
|
||||
Annotations annotations = suspendFunType.getAnnotations();
|
||||
KotlinType receiverTypeFromFunctionType = FunctionTypesKt.getReceiverTypeFromFunctionType(suspendFunType);
|
||||
List<KotlinType> contextReceiverTypesFromFunctionType = FunctionTypesKt.getContextReceiverTypesFromFunctionType(suspendFunType);
|
||||
List<TypeProjection> valueParameterTypesFromFunctionType = FunctionTypesKt.getValueParameterTypesFromFunctionType(suspendFunType);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(valueParameterTypesFromFunctionType, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = valueParameterTypesFromFunctionType.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((TypeProjection) it.next()).getType());
|
||||
}
|
||||
TypeAttributes empty = TypeAttributes.Companion.getEmpty();
|
||||
TypeConstructor typeConstructor = FAKE_CONTINUATION_CLASS_DESCRIPTOR.getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
|
||||
List plus = CollectionsKt.plus((Collection<? extends SimpleType>) arrayList, KotlinTypeFactory.simpleType$default(empty, typeConstructor, CollectionsKt.listOf(TypeUtilsKt.asTypeProjection(FunctionTypesKt.getReturnTypeFromFunctionType(suspendFunType))), false, (KotlinTypeRefiner) null, 16, (Object) null));
|
||||
SimpleType nullableAnyType = TypeUtilsKt.getBuiltIns(suspendFunType).getNullableAnyType();
|
||||
Intrinsics.checkNotNullExpressionValue(nullableAnyType, "getNullableAnyType(...)");
|
||||
createFunctionType = FunctionTypesKt.createFunctionType(builtIns, annotations, receiverTypeFromFunctionType, contextReceiverTypesFromFunctionType, plus, null, nullableAnyType, (r17 & 128) != 0 ? false : false);
|
||||
return createFunctionType.makeNullableAsSpecified(suspendFunType.isMarkedNullable());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class UnsignedArrayType {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ UnsignedArrayType[] $VALUES;
|
||||
public static final UnsignedArrayType UBYTEARRAY;
|
||||
public static final UnsignedArrayType UINTARRAY;
|
||||
public static final UnsignedArrayType ULONGARRAY;
|
||||
public static final UnsignedArrayType USHORTARRAY;
|
||||
private final ClassId classId;
|
||||
private final Name typeName;
|
||||
|
||||
private static final /* synthetic */ UnsignedArrayType[] $values() {
|
||||
return new UnsignedArrayType[]{UBYTEARRAY, USHORTARRAY, UINTARRAY, ULONGARRAY};
|
||||
}
|
||||
|
||||
static {
|
||||
ClassId fromString = ClassId.fromString("kotlin/UByteArray");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString, "fromString(...)");
|
||||
UBYTEARRAY = new UnsignedArrayType("UBYTEARRAY", 0, fromString);
|
||||
ClassId fromString2 = ClassId.fromString("kotlin/UShortArray");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString2, "fromString(...)");
|
||||
USHORTARRAY = new UnsignedArrayType("USHORTARRAY", 1, fromString2);
|
||||
ClassId fromString3 = ClassId.fromString("kotlin/UIntArray");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString3, "fromString(...)");
|
||||
UINTARRAY = new UnsignedArrayType("UINTARRAY", 2, fromString3);
|
||||
ClassId fromString4 = ClassId.fromString("kotlin/ULongArray");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString4, "fromString(...)");
|
||||
ULONGARRAY = new UnsignedArrayType("ULONGARRAY", 3, fromString4);
|
||||
UnsignedArrayType[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private UnsignedArrayType(String str, int i, ClassId classId) {
|
||||
this.classId = classId;
|
||||
Name shortClassName = classId.getShortClassName();
|
||||
Intrinsics.checkNotNullExpressionValue(shortClassName, "getShortClassName(...)");
|
||||
this.typeName = shortClassName;
|
||||
}
|
||||
|
||||
public static UnsignedArrayType valueOf(String str) {
|
||||
return (UnsignedArrayType) Enum.valueOf(UnsignedArrayType.class, str);
|
||||
}
|
||||
|
||||
public static UnsignedArrayType[] values() {
|
||||
return (UnsignedArrayType[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final Name getTypeName() {
|
||||
return this.typeName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class UnsignedType {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ UnsignedType[] $VALUES;
|
||||
public static final UnsignedType UBYTE;
|
||||
public static final UnsignedType UINT;
|
||||
public static final UnsignedType ULONG;
|
||||
public static final UnsignedType USHORT;
|
||||
private final ClassId arrayClassId;
|
||||
private final ClassId classId;
|
||||
private final Name typeName;
|
||||
|
||||
private static final /* synthetic */ UnsignedType[] $values() {
|
||||
return new UnsignedType[]{UBYTE, USHORT, UINT, ULONG};
|
||||
}
|
||||
|
||||
static {
|
||||
ClassId fromString = ClassId.fromString("kotlin/UByte");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString, "fromString(...)");
|
||||
UBYTE = new UnsignedType("UBYTE", 0, fromString);
|
||||
ClassId fromString2 = ClassId.fromString("kotlin/UShort");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString2, "fromString(...)");
|
||||
USHORT = new UnsignedType("USHORT", 1, fromString2);
|
||||
ClassId fromString3 = ClassId.fromString("kotlin/UInt");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString3, "fromString(...)");
|
||||
UINT = new UnsignedType("UINT", 2, fromString3);
|
||||
ClassId fromString4 = ClassId.fromString("kotlin/ULong");
|
||||
Intrinsics.checkNotNullExpressionValue(fromString4, "fromString(...)");
|
||||
ULONG = new UnsignedType("ULONG", 3, fromString4);
|
||||
UnsignedType[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private UnsignedType(String str, int i, ClassId classId) {
|
||||
this.classId = classId;
|
||||
Name shortClassName = classId.getShortClassName();
|
||||
Intrinsics.checkNotNullExpressionValue(shortClassName, "getShortClassName(...)");
|
||||
this.typeName = shortClassName;
|
||||
this.arrayClassId = new ClassId(classId.getPackageFqName(), Name.identifier(shortClassName.asString() + "Array"));
|
||||
}
|
||||
|
||||
public static UnsignedType valueOf(String str) {
|
||||
return (UnsignedType) Enum.valueOf(UnsignedType.class, str);
|
||||
}
|
||||
|
||||
public static UnsignedType[] values() {
|
||||
return (UnsignedType[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final ClassId getArrayClassId() {
|
||||
return this.arrayClassId;
|
||||
}
|
||||
|
||||
public final ClassId getClassId() {
|
||||
return this.classId;
|
||||
}
|
||||
|
||||
public final Name getTypeName() {
|
||||
return this.typeName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.JvmStatic;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nUnsignedType.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UnsignedType.kt\norg/jetbrains/kotlin/builtins/UnsignedTypes\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,122:1\n11065#2:123\n11400#2,3:124\n11065#2:127\n11400#2,3:128\n11400#2,3:131\n*S KotlinDebug\n*F\n+ 1 UnsignedType.kt\norg/jetbrains/kotlin/builtins/UnsignedTypes\n*L\n36#1:123\n36#1:124,3\n37#1:127\n37#1:128,3\n47#1:131,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class UnsignedTypes {
|
||||
public static final UnsignedTypes INSTANCE = new UnsignedTypes();
|
||||
private static final HashMap<ClassId, ClassId> arrayClassIdToUnsignedClassId;
|
||||
private static final Set<Name> arrayClassesShortNames;
|
||||
private static final Set<Name> unsignedArrayTypeNames;
|
||||
private static final HashMap<UnsignedArrayType, Name> unsignedArrayTypeToArrayCall;
|
||||
private static final HashMap<ClassId, ClassId> unsignedClassIdToArrayClassId;
|
||||
private static final Set<Name> unsignedTypeNames;
|
||||
|
||||
static {
|
||||
UnsignedType[] values = UnsignedType.values();
|
||||
ArrayList arrayList = new ArrayList(values.length);
|
||||
for (UnsignedType unsignedType : values) {
|
||||
arrayList.add(unsignedType.getTypeName());
|
||||
}
|
||||
unsignedTypeNames = CollectionsKt.toSet(arrayList);
|
||||
UnsignedArrayType[] values2 = UnsignedArrayType.values();
|
||||
ArrayList arrayList2 = new ArrayList(values2.length);
|
||||
for (UnsignedArrayType unsignedArrayType : values2) {
|
||||
arrayList2.add(unsignedArrayType.getTypeName());
|
||||
}
|
||||
unsignedArrayTypeNames = CollectionsKt.toSet(arrayList2);
|
||||
arrayClassIdToUnsignedClassId = new HashMap<>();
|
||||
unsignedClassIdToArrayClassId = new HashMap<>();
|
||||
unsignedArrayTypeToArrayCall = MapsKt.hashMapOf(TuplesKt.to(UnsignedArrayType.UBYTEARRAY, Name.identifier("ubyteArrayOf")), TuplesKt.to(UnsignedArrayType.USHORTARRAY, Name.identifier("ushortArrayOf")), TuplesKt.to(UnsignedArrayType.UINTARRAY, Name.identifier("uintArrayOf")), TuplesKt.to(UnsignedArrayType.ULONGARRAY, Name.identifier("ulongArrayOf")));
|
||||
UnsignedType[] values3 = UnsignedType.values();
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
||||
for (UnsignedType unsignedType2 : values3) {
|
||||
linkedHashSet.add(unsignedType2.getArrayClassId().getShortClassName());
|
||||
}
|
||||
arrayClassesShortNames = linkedHashSet;
|
||||
for (UnsignedType unsignedType3 : UnsignedType.values()) {
|
||||
arrayClassIdToUnsignedClassId.put(unsignedType3.getArrayClassId(), unsignedType3.getClassId());
|
||||
unsignedClassIdToArrayClassId.put(unsignedType3.getClassId(), unsignedType3.getArrayClassId());
|
||||
}
|
||||
}
|
||||
|
||||
private UnsignedTypes() {
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
public static final boolean isUnsignedType(KotlinType type) {
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor;
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
if (TypeUtils.noExpectedType(type) || (mo1394getDeclarationDescriptor = type.getConstructor().mo1394getDeclarationDescriptor()) == null) {
|
||||
return false;
|
||||
}
|
||||
return INSTANCE.isUnsignedClass(mo1394getDeclarationDescriptor);
|
||||
}
|
||||
|
||||
public final ClassId getUnsignedClassIdByArrayClassId(ClassId arrayClassId) {
|
||||
Intrinsics.checkNotNullParameter(arrayClassId, "arrayClassId");
|
||||
return arrayClassIdToUnsignedClassId.get(arrayClassId);
|
||||
}
|
||||
|
||||
public final boolean isShortNameOfUnsignedArray(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return arrayClassesShortNames.contains(name);
|
||||
}
|
||||
|
||||
public final boolean isUnsignedClass(DeclarationDescriptor descriptor) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
DeclarationDescriptor containingDeclaration = descriptor.getContainingDeclaration();
|
||||
return (containingDeclaration instanceof PackageFragmentDescriptor) && Intrinsics.areEqual(((PackageFragmentDescriptor) containingDeclaration).getFqName(), StandardNames.BUILT_INS_PACKAGE_FQ_NAME) && unsignedTypeNames.contains(descriptor.getName());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.BuiltInsPackageFragment;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.FunctionInterfacePackageFragment;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKindExtractor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nBuiltInFictitiousFunctionClassFactory.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BuiltInFictitiousFunctionClassFactory.kt\norg/jetbrains/kotlin/builtins/functions/BuiltInFictitiousFunctionClassFactory\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,70:1\n800#2,11:71\n800#2,11:82\n*S KotlinDebug\n*F\n+ 1 BuiltInFictitiousFunctionClassFactory.kt\norg/jetbrains/kotlin/builtins/functions/BuiltInFictitiousFunctionClassFactory\n*L\n55#1:71,11\n59#1:82,11\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BuiltInFictitiousFunctionClassFactory implements ClassDescriptorFactory {
|
||||
private final ModuleDescriptor module;
|
||||
private final StorageManager storageManager;
|
||||
|
||||
public BuiltInFictitiousFunctionClassFactory(StorageManager storageManager, ModuleDescriptor module) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
this.storageManager = storageManager;
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public ClassDescriptor createClass(ClassId classId) {
|
||||
boolean contains$default;
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
if (classId.isLocal() || classId.isNestedClass()) {
|
||||
return null;
|
||||
}
|
||||
String asString = classId.getRelativeClassName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
contains$default = StringsKt__StringsKt.contains$default(asString, (CharSequence) "Function", false, 2, (Object) null);
|
||||
if (!contains$default) {
|
||||
return null;
|
||||
}
|
||||
FqName packageFqName = classId.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName, "getPackageFqName(...)");
|
||||
FunctionTypeKindExtractor.KindWithArity functionalClassKindWithArity = FunctionTypeKindExtractor.Companion.getDefault().getFunctionalClassKindWithArity(packageFqName, asString);
|
||||
if (functionalClassKindWithArity == null) {
|
||||
return null;
|
||||
}
|
||||
FunctionTypeKind component1 = functionalClassKindWithArity.component1();
|
||||
int component2 = functionalClassKindWithArity.component2();
|
||||
List<PackageFragmentDescriptor> fragments = this.module.getPackage(packageFqName).getFragments();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : fragments) {
|
||||
if (obj instanceof BuiltInsPackageFragment) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
if (next instanceof FunctionInterfacePackageFragment) {
|
||||
arrayList2.add(next);
|
||||
}
|
||||
}
|
||||
PackageFragmentDescriptor packageFragmentDescriptor = (FunctionInterfacePackageFragment) CollectionsKt.firstOrNull((List) arrayList2);
|
||||
if (packageFragmentDescriptor == null) {
|
||||
packageFragmentDescriptor = (BuiltInsPackageFragment) CollectionsKt.first((List) arrayList);
|
||||
}
|
||||
return new FunctionClassDescriptor(this.storageManager, packageFragmentDescriptor, component1, component2);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public Collection<ClassDescriptor> getAllContributedClassesIfPossible(FqName packageFqName) {
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public boolean shouldCreateClass(FqName packageFqName, Name name) {
|
||||
boolean startsWith$default;
|
||||
boolean startsWith$default2;
|
||||
boolean startsWith$default3;
|
||||
boolean startsWith$default4;
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
String asString = name.asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
startsWith$default = StringsKt__StringsJVMKt.startsWith$default(asString, "Function", false, 2, null);
|
||||
if (!startsWith$default) {
|
||||
startsWith$default2 = StringsKt__StringsJVMKt.startsWith$default(asString, "KFunction", false, 2, null);
|
||||
if (!startsWith$default2) {
|
||||
startsWith$default3 = StringsKt__StringsJVMKt.startsWith$default(asString, "SuspendFunction", false, 2, null);
|
||||
if (!startsWith$default3) {
|
||||
startsWith$default4 = StringsKt__StringsJVMKt.startsWith$default(asString, "KSuspendFunction", false, 2, null);
|
||||
if (!startsWith$default4) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return FunctionTypeKindExtractor.Companion.getDefault().getFunctionalClassKindWithArity(packageFqName, asString) != null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,330 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.IntIterator;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SupertypeLoopChecker;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueClassRepresentation;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.TypeParameterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.AbstractClassTypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
|
||||
import kotlin.reflect.jvm.internal.impl.utils.addToStdlib.AddToStdlibKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nFunctionClassDescriptor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FunctionClassDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionClassDescriptor\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,146:1\n1549#2:147\n1620#2,3:148\n*S KotlinDebug\n*F\n+ 1 FunctionClassDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionClassDescriptor\n*L\n54#1:147\n54#1:148,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionClassDescriptor extends AbstractClassDescriptor {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final ClassId functionClassId = new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, Name.identifier("Function"));
|
||||
private static final ClassId kFunctionClassId = new ClassId(StandardNames.KOTLIN_REFLECT_FQ_NAME, Name.identifier("KFunction"));
|
||||
private final int arity;
|
||||
private final PackageFragmentDescriptor containingDeclaration;
|
||||
private final FunctionClassKind functionKind;
|
||||
private final FunctionTypeKind functionTypeKind;
|
||||
private final FunctionClassScope memberScope;
|
||||
private final List<TypeParameterDescriptor> parameters;
|
||||
private final StorageManager storageManager;
|
||||
private final FunctionTypeConstructor typeConstructor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public FunctionClassDescriptor(StorageManager storageManager, PackageFragmentDescriptor containingDeclaration, FunctionTypeKind functionTypeKind, int i) {
|
||||
super(storageManager, functionTypeKind.numberedClassName(i));
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(containingDeclaration, "containingDeclaration");
|
||||
Intrinsics.checkNotNullParameter(functionTypeKind, "functionTypeKind");
|
||||
this.storageManager = storageManager;
|
||||
this.containingDeclaration = containingDeclaration;
|
||||
this.functionTypeKind = functionTypeKind;
|
||||
this.arity = i;
|
||||
this.typeConstructor = new FunctionTypeConstructor();
|
||||
this.memberScope = new FunctionClassScope(storageManager, this);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
IntRange intRange = new IntRange(1, i);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(intRange, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<Integer> it = intRange.iterator();
|
||||
while (it.hasNext()) {
|
||||
_init_$typeParameter(arrayList, this, Variance.IN_VARIANCE, a.l(((IntIterator) it).nextInt(), "P"));
|
||||
arrayList2.add(Unit.INSTANCE);
|
||||
}
|
||||
_init_$typeParameter(arrayList, this, Variance.OUT_VARIANCE, "R");
|
||||
this.parameters = CollectionsKt.toList(arrayList);
|
||||
this.functionKind = FunctionClassKind.Companion.getFunctionClassKind(this.functionTypeKind);
|
||||
}
|
||||
|
||||
private static final void _init_$typeParameter(ArrayList<TypeParameterDescriptor> arrayList, FunctionClassDescriptor functionClassDescriptor, Variance variance, String str) {
|
||||
arrayList.add(TypeParameterDescriptorImpl.createWithDefaultBound(functionClassDescriptor, Annotations.Companion.getEMPTY(), false, variance, Name.identifier(str), arrayList.size(), functionClassDescriptor.storageManager));
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotated
|
||||
public Annotations getAnnotations() {
|
||||
return Annotations.Companion.getEMPTY();
|
||||
}
|
||||
|
||||
public final int getArity() {
|
||||
return this.arity;
|
||||
}
|
||||
|
||||
public Void getCompanionObjectDescriptor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptorWithTypeParameters
|
||||
public List<TypeParameterDescriptor> getDeclaredTypeParameters() {
|
||||
return this.parameters;
|
||||
}
|
||||
|
||||
public final FunctionTypeKind getFunctionTypeKind() {
|
||||
return this.functionTypeKind;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public ClassKind getKind() {
|
||||
return ClassKind.INTERFACE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public Modality getModality() {
|
||||
return Modality.ABSTRACT;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithSource
|
||||
public SourceElement getSource() {
|
||||
SourceElement NO_SOURCE = SourceElement.NO_SOURCE;
|
||||
Intrinsics.checkNotNullExpressionValue(NO_SOURCE, "NO_SOURCE");
|
||||
return NO_SOURCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor
|
||||
public TypeConstructor getTypeConstructor() {
|
||||
return this.typeConstructor;
|
||||
}
|
||||
|
||||
public Void getUnsubstitutedPrimaryConstructor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public ValueClassRepresentation<SimpleType> getValueClassRepresentation() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithVisibility, kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public DescriptorVisibility getVisibility() {
|
||||
DescriptorVisibility PUBLIC = DescriptorVisibilities.PUBLIC;
|
||||
Intrinsics.checkNotNullExpressionValue(PUBLIC, "PUBLIC");
|
||||
return PUBLIC;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isActual() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public boolean isCompanionObject() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public boolean isData() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isExpect() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isExternal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public boolean isFun() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public boolean isInline() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptorWithTypeParameters
|
||||
public boolean isInner() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public boolean isValue() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String asString = getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return asString;
|
||||
}
|
||||
|
||||
@SourceDebugExtension({"SMAP\nFunctionClassDescriptor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FunctionClassDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionClassDescriptor$FunctionTypeConstructor\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,146:1\n1549#2:147\n1620#2,2:148\n1549#2:150\n1620#2,3:151\n1622#2:154\n*S KotlinDebug\n*F\n+ 1 FunctionClassDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionClassDescriptor$FunctionTypeConstructor\n*L\n113#1:147\n113#1:148,2\n117#1:150\n117#1:151,3\n113#1:154\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionTypeConstructor extends AbstractClassTypeConstructor {
|
||||
public FunctionTypeConstructor() {
|
||||
super(FunctionClassDescriptor.this.storageManager);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.types.AbstractTypeConstructor
|
||||
public Collection<KotlinType> computeSupertypes() {
|
||||
List listOf;
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
FunctionTypeKind functionTypeKind = FunctionClassDescriptor.this.getFunctionTypeKind();
|
||||
FunctionTypeKind.Function function = FunctionTypeKind.Function.INSTANCE;
|
||||
if (Intrinsics.areEqual(functionTypeKind, function)) {
|
||||
listOf = CollectionsKt.listOf(FunctionClassDescriptor.functionClassId);
|
||||
} else if (Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.KFunction.INSTANCE)) {
|
||||
listOf = CollectionsKt.listOf((Object[]) new ClassId[]{FunctionClassDescriptor.kFunctionClassId, new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, function.numberedClassName(FunctionClassDescriptor.this.getArity()))});
|
||||
} else {
|
||||
FunctionTypeKind.SuspendFunction suspendFunction = FunctionTypeKind.SuspendFunction.INSTANCE;
|
||||
if (Intrinsics.areEqual(functionTypeKind, suspendFunction)) {
|
||||
listOf = CollectionsKt.listOf(FunctionClassDescriptor.functionClassId);
|
||||
} else {
|
||||
if (!Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.KSuspendFunction.INSTANCE)) {
|
||||
AddToStdlibKt.shouldNotBeCalled$default(null, 1, null);
|
||||
throw null;
|
||||
}
|
||||
listOf = CollectionsKt.listOf((Object[]) new ClassId[]{FunctionClassDescriptor.kFunctionClassId, new ClassId(StandardNames.COROUTINES_PACKAGE_FQ_NAME, suspendFunction.numberedClassName(FunctionClassDescriptor.this.getArity()))});
|
||||
}
|
||||
}
|
||||
ModuleDescriptor containingDeclaration = FunctionClassDescriptor.this.containingDeclaration.getContainingDeclaration();
|
||||
List<ClassId> list = listOf;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (ClassId classId : list) {
|
||||
ClassDescriptor findClassAcrossModuleDependencies = FindClassInModuleKt.findClassAcrossModuleDependencies(containingDeclaration, classId);
|
||||
if (findClassAcrossModuleDependencies == null) {
|
||||
throw new IllegalStateException(("Built-in class " + classId + " not found").toString());
|
||||
}
|
||||
List takeLast = CollectionsKt.takeLast(getParameters(), findClassAcrossModuleDependencies.getTypeConstructor().getParameters().size());
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(takeLast, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
Iterator it = takeLast.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(new TypeProjectionImpl(((TypeParameterDescriptor) it.next()).getDefaultType()));
|
||||
}
|
||||
arrayList.add(KotlinTypeFactory.simpleNotNullType(TypeAttributes.Companion.getEmpty(), findClassAcrossModuleDependencies, arrayList2));
|
||||
}
|
||||
return CollectionsKt.toList(arrayList);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.types.TypeConstructor
|
||||
public List<TypeParameterDescriptor> getParameters() {
|
||||
return FunctionClassDescriptor.this.parameters;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.types.AbstractTypeConstructor
|
||||
public SupertypeLoopChecker getSupertypeLoopChecker() {
|
||||
return SupertypeLoopChecker.EMPTY.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.types.TypeConstructor
|
||||
public boolean isDenotable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return mo1394getDeclarationDescriptor().toString();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.types.AbstractClassTypeConstructor, kotlin.reflect.jvm.internal.impl.types.ClassifierBasedTypeConstructor, kotlin.reflect.jvm.internal.impl.types.TypeConstructor
|
||||
/* renamed from: getDeclarationDescriptor */
|
||||
public FunctionClassDescriptor mo1394getDeclarationDescriptor() {
|
||||
return FunctionClassDescriptor.this;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
/* renamed from: getCompanionObjectDescriptor, reason: collision with other method in class */
|
||||
public /* bridge */ /* synthetic */ ClassDescriptor mo1387getCompanionObjectDescriptor() {
|
||||
return (ClassDescriptor) getCompanionObjectDescriptor();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public List<ClassConstructorDescriptor> getConstructors() {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorNonRoot, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
public PackageFragmentDescriptor getContainingDeclaration() {
|
||||
return this.containingDeclaration;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public List<ClassDescriptor> getSealedSubclasses() {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
public MemberScope.Empty getStaticScope() {
|
||||
return MemberScope.Empty.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleAwareClassDescriptor
|
||||
public FunctionClassScope getUnsubstitutedMemberScope(KotlinTypeRefiner kotlinTypeRefiner) {
|
||||
Intrinsics.checkNotNullParameter(kotlinTypeRefiner, "kotlinTypeRefiner");
|
||||
return this.memberScope;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor
|
||||
/* renamed from: getUnsubstitutedPrimaryConstructor, reason: collision with other method in class */
|
||||
public /* bridge */ /* synthetic */ ClassConstructorDescriptor mo1388getUnsubstitutedPrimaryConstructor() {
|
||||
return (ClassConstructorDescriptor) getUnsubstitutedPrimaryConstructor();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionClassKind {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ FunctionClassKind[] $VALUES;
|
||||
public static final Companion Companion;
|
||||
public static final FunctionClassKind Function = new FunctionClassKind("Function", 0);
|
||||
public static final FunctionClassKind SuspendFunction = new FunctionClassKind("SuspendFunction", 1);
|
||||
public static final FunctionClassKind KFunction = new FunctionClassKind("KFunction", 2);
|
||||
public static final FunctionClassKind KSuspendFunction = new FunctionClassKind("KSuspendFunction", 3);
|
||||
public static final FunctionClassKind UNKNOWN = new FunctionClassKind("UNKNOWN", 4);
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final FunctionClassKind getFunctionClassKind(FunctionTypeKind functionTypeKind) {
|
||||
Intrinsics.checkNotNullParameter(functionTypeKind, "functionTypeKind");
|
||||
return Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.Function.INSTANCE) ? FunctionClassKind.Function : Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.SuspendFunction.INSTANCE) ? FunctionClassKind.SuspendFunction : Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.KFunction.INSTANCE) ? FunctionClassKind.KFunction : Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.KSuspendFunction.INSTANCE) ? FunctionClassKind.KSuspendFunction : FunctionClassKind.UNKNOWN;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private static final /* synthetic */ FunctionClassKind[] $values() {
|
||||
return new FunctionClassKind[]{Function, SuspendFunction, KFunction, KSuspendFunction, UNKNOWN};
|
||||
}
|
||||
|
||||
static {
|
||||
FunctionClassKind[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
Companion = new Companion(null);
|
||||
}
|
||||
|
||||
private FunctionClassKind(String str, int i) {
|
||||
}
|
||||
|
||||
public static FunctionClassKind valueOf(String str) {
|
||||
return (FunctionClassKind) Enum.valueOf(FunctionClassKind.class, str);
|
||||
}
|
||||
|
||||
public static FunctionClassKind[] values() {
|
||||
return (FunctionClassKind[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionClassScope extends GivenFunctionsMemberScope {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public FunctionClassScope(StorageManager storageManager, FunctionClassDescriptor containingClass) {
|
||||
super(storageManager, containingClass);
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(containingClass, "containingClass");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope
|
||||
public List<FunctionDescriptor> computeDeclaredFunctions() {
|
||||
ClassDescriptor containingClass = getContainingClass();
|
||||
Intrinsics.checkNotNull(containingClass, "null cannot be cast to non-null type org.jetbrains.kotlin.builtins.functions.FunctionClassDescriptor");
|
||||
FunctionTypeKind functionTypeKind = ((FunctionClassDescriptor) containingClass).getFunctionTypeKind();
|
||||
return Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.Function.INSTANCE) ? CollectionsKt.listOf(FunctionInvokeDescriptor.Factory.create((FunctionClassDescriptor) getContainingClass(), false)) : Intrinsics.areEqual(functionTypeKind, FunctionTypeKind.SuspendFunction.INSTANCE) ? CollectionsKt.listOf(FunctionInvokeDescriptor.Factory.create((FunctionClassDescriptor) getContainingClass(), true)) : CollectionsKt.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,222 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.IndexedValue;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.FunctionTypesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.SimpleFunctionDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
import kotlin.reflect.jvm.internal.impl.util.OperatorNameConventions;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nFunctionInvokeDescriptor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FunctionInvokeDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionInvokeDescriptor\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,161:1\n2624#2,3:162\n1549#2:165\n1620#2,3:166\n1726#2,3:169\n1549#2:172\n1620#2,3:173\n1747#2,3:176\n*S KotlinDebug\n*F\n+ 1 FunctionInvokeDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionInvokeDescriptor\n*L\n63#1:162,3\n64#1:165\n64#1:166,3\n88#1:169,3\n92#1:172\n92#1:173,3\n106#1:176,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionInvokeDescriptor extends SimpleFunctionDescriptorImpl {
|
||||
public static final Factory Factory = new Factory(null);
|
||||
|
||||
@SourceDebugExtension({"SMAP\nFunctionInvokeDescriptor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FunctionInvokeDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionInvokeDescriptor$Factory\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,161:1\n959#2,7:162\n1549#2:169\n1620#2,3:170\n*S KotlinDebug\n*F\n+ 1 FunctionInvokeDescriptor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionInvokeDescriptor$Factory\n*L\n122#1:162,7\n124#1:169\n124#1:170,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Factory {
|
||||
public /* synthetic */ Factory(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private final ValueParameterDescriptor createValueParameter(FunctionInvokeDescriptor functionInvokeDescriptor, int i, TypeParameterDescriptor typeParameterDescriptor) {
|
||||
String lowerCase;
|
||||
String asString = typeParameterDescriptor.getName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
if (Intrinsics.areEqual(asString, "T")) {
|
||||
lowerCase = "instance";
|
||||
} else if (Intrinsics.areEqual(asString, "E")) {
|
||||
lowerCase = "receiver";
|
||||
} else {
|
||||
lowerCase = asString.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
}
|
||||
Annotations empty = Annotations.Companion.getEMPTY();
|
||||
Name identifier = Name.identifier(lowerCase);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
SimpleType defaultType = typeParameterDescriptor.getDefaultType();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultType, "getDefaultType(...)");
|
||||
SourceElement NO_SOURCE = SourceElement.NO_SOURCE;
|
||||
Intrinsics.checkNotNullExpressionValue(NO_SOURCE, "NO_SOURCE");
|
||||
return new ValueParameterDescriptorImpl(functionInvokeDescriptor, null, i, empty, identifier, defaultType, false, false, false, null, NO_SOURCE);
|
||||
}
|
||||
|
||||
public final FunctionInvokeDescriptor create(FunctionClassDescriptor functionClass, boolean z3) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(functionClass, "functionClass");
|
||||
List<TypeParameterDescriptor> declaredTypeParameters = functionClass.getDeclaredTypeParameters();
|
||||
FunctionInvokeDescriptor functionInvokeDescriptor = new FunctionInvokeDescriptor(functionClass, null, CallableMemberDescriptor.Kind.DECLARATION, z3, null);
|
||||
ReceiverParameterDescriptor thisAsReceiverParameter = functionClass.getThisAsReceiverParameter();
|
||||
List<ReceiverParameterDescriptor> emptyList = CollectionsKt.emptyList();
|
||||
List<? extends TypeParameterDescriptor> emptyList2 = CollectionsKt.emptyList();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : declaredTypeParameters) {
|
||||
if (((TypeParameterDescriptor) obj).getVariance() != Variance.IN_VARIANCE) {
|
||||
break;
|
||||
}
|
||||
arrayList.add(obj);
|
||||
}
|
||||
Iterable<IndexedValue> withIndex = CollectionsKt.withIndex(arrayList);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(withIndex, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
for (IndexedValue indexedValue : withIndex) {
|
||||
arrayList2.add(FunctionInvokeDescriptor.Factory.createValueParameter(functionInvokeDescriptor, indexedValue.getIndex(), (TypeParameterDescriptor) indexedValue.getValue()));
|
||||
}
|
||||
functionInvokeDescriptor.initialize((ReceiverParameterDescriptor) null, thisAsReceiverParameter, emptyList, emptyList2, (List<ValueParameterDescriptor>) arrayList2, (KotlinType) ((TypeParameterDescriptor) CollectionsKt.last((List) declaredTypeParameters)).getDefaultType(), Modality.ABSTRACT, DescriptorVisibilities.PUBLIC);
|
||||
functionInvokeDescriptor.setHasSynthesizedParameterNames(true);
|
||||
return functionInvokeDescriptor;
|
||||
}
|
||||
|
||||
private Factory() {
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ FunctionInvokeDescriptor(DeclarationDescriptor declarationDescriptor, FunctionInvokeDescriptor functionInvokeDescriptor, CallableMemberDescriptor.Kind kind, boolean z3, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(declarationDescriptor, functionInvokeDescriptor, kind, z3);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r9v5, types: [java.lang.Object, kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl$CopyConfiguration] */
|
||||
private final FunctionDescriptor replaceParameterNames(List<Name> list) {
|
||||
int collectionSizeOrDefault;
|
||||
Name name;
|
||||
int size = getValueParameters().size() - list.size();
|
||||
boolean z3 = true;
|
||||
if (size == 0) {
|
||||
List<ValueParameterDescriptor> valueParameters = getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
List<Pair> zip = CollectionsKt.zip(list, valueParameters);
|
||||
if (!(zip instanceof Collection) || !zip.isEmpty()) {
|
||||
for (Pair pair : zip) {
|
||||
if (!Intrinsics.areEqual((Name) pair.component1(), ((ValueParameterDescriptor) pair.component2()).getName())) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
List<ValueParameterDescriptor> valueParameters2 = getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters2, "getValueParameters(...)");
|
||||
List<ValueParameterDescriptor> list2 = valueParameters2;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (ValueParameterDescriptor valueParameterDescriptor : list2) {
|
||||
Name name2 = valueParameterDescriptor.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name2, "getName(...)");
|
||||
int index = valueParameterDescriptor.getIndex();
|
||||
int i = index - size;
|
||||
if (i >= 0 && (name = list.get(i)) != null) {
|
||||
name2 = name;
|
||||
}
|
||||
arrayList.add(valueParameterDescriptor.copy(this, name2, index));
|
||||
}
|
||||
FunctionDescriptorImpl.CopyConfiguration newCopyBuilder = newCopyBuilder(TypeSubstitutor.EMPTY);
|
||||
List<Name> list3 = list;
|
||||
if (!(list3 instanceof Collection) || !list3.isEmpty()) {
|
||||
Iterator<T> it = list3.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (((Name) it.next()) == null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
z3 = false;
|
||||
?? original = newCopyBuilder.setHasSynthesizedParameterNames(z3).setValueParameters2((List<ValueParameterDescriptor>) arrayList).setOriginal((CallableMemberDescriptor) getOriginal());
|
||||
Intrinsics.checkNotNullExpressionValue(original, "setOriginal(...)");
|
||||
FunctionDescriptor doSubstitute = super.doSubstitute(original);
|
||||
Intrinsics.checkNotNull(doSubstitute);
|
||||
return doSubstitute;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.SimpleFunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl
|
||||
public FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, FunctionDescriptor functionDescriptor, CallableMemberDescriptor.Kind kind, Name name, Annotations annotations, SourceElement source) {
|
||||
Intrinsics.checkNotNullParameter(newOwner, "newOwner");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new FunctionInvokeDescriptor(newOwner, (FunctionInvokeDescriptor) functionDescriptor, kind, isSuspend());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl
|
||||
public FunctionDescriptor doSubstitute(FunctionDescriptorImpl.CopyConfiguration configuration) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(configuration, "configuration");
|
||||
FunctionInvokeDescriptor functionInvokeDescriptor = (FunctionInvokeDescriptor) super.doSubstitute(configuration);
|
||||
if (functionInvokeDescriptor == null) {
|
||||
return null;
|
||||
}
|
||||
List<ValueParameterDescriptor> valueParameters = functionInvokeDescriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
List<ValueParameterDescriptor> list = valueParameters;
|
||||
if ((list instanceof Collection) && list.isEmpty()) {
|
||||
return functionInvokeDescriptor;
|
||||
}
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
KotlinType type = ((ValueParameterDescriptor) it.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
if (FunctionTypesKt.extractParameterNameFromFunctionTypeArgument(type) != null) {
|
||||
List<ValueParameterDescriptor> valueParameters2 = functionInvokeDescriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters2, "getValueParameters(...)");
|
||||
List<ValueParameterDescriptor> list2 = valueParameters2;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
KotlinType type2 = ((ValueParameterDescriptor) it2.next()).getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type2, "getType(...)");
|
||||
arrayList.add(FunctionTypesKt.extractParameterNameFromFunctionTypeArgument(type2));
|
||||
}
|
||||
return functionInvokeDescriptor.replaceParameterNames(arrayList);
|
||||
}
|
||||
}
|
||||
return functionInvokeDescriptor;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isExternal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor
|
||||
public boolean isInline() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor
|
||||
public boolean isTailrec() {
|
||||
return false;
|
||||
}
|
||||
|
||||
private FunctionInvokeDescriptor(DeclarationDescriptor declarationDescriptor, FunctionInvokeDescriptor functionInvokeDescriptor, CallableMemberDescriptor.Kind kind, boolean z3) {
|
||||
super(declarationDescriptor, functionInvokeDescriptor, Annotations.Companion.getEMPTY(), OperatorNameConventions.INVOKE, kind, SourceElement.NO_SOURCE);
|
||||
setOperator(true);
|
||||
setSuspend(z3);
|
||||
setHasStableParameterNames(false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class FunctionTypeKind {
|
||||
private final ClassId annotationOnInvokeClassId;
|
||||
private final String classNamePrefix;
|
||||
private final boolean isReflectType;
|
||||
private final FqName packageFqName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Function extends FunctionTypeKind {
|
||||
public static final Function INSTANCE = new Function();
|
||||
|
||||
private Function() {
|
||||
super(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, "Function", false, null);
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KFunction extends FunctionTypeKind {
|
||||
public static final KFunction INSTANCE = new KFunction();
|
||||
|
||||
private KFunction() {
|
||||
super(StandardNames.KOTLIN_REFLECT_FQ_NAME, "KFunction", true, null);
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KSuspendFunction extends FunctionTypeKind {
|
||||
public static final KSuspendFunction INSTANCE = new KSuspendFunction();
|
||||
|
||||
private KSuspendFunction() {
|
||||
super(StandardNames.KOTLIN_REFLECT_FQ_NAME, "KSuspendFunction", true, null);
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class SuspendFunction extends FunctionTypeKind {
|
||||
public static final SuspendFunction INSTANCE = new SuspendFunction();
|
||||
|
||||
private SuspendFunction() {
|
||||
super(StandardNames.COROUTINES_PACKAGE_FQ_NAME, "SuspendFunction", false, null);
|
||||
}
|
||||
}
|
||||
|
||||
public FunctionTypeKind(FqName packageFqName, String classNamePrefix, boolean z3, ClassId classId) {
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(classNamePrefix, "classNamePrefix");
|
||||
this.packageFqName = packageFqName;
|
||||
this.classNamePrefix = classNamePrefix;
|
||||
this.isReflectType = z3;
|
||||
this.annotationOnInvokeClassId = classId;
|
||||
}
|
||||
|
||||
public final String getClassNamePrefix() {
|
||||
return this.classNamePrefix;
|
||||
}
|
||||
|
||||
public final FqName getPackageFqName() {
|
||||
return this.packageFqName;
|
||||
}
|
||||
|
||||
public final Name numberedClassName(int i) {
|
||||
Name identifier = Name.identifier(this.classNamePrefix + i);
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
return identifier;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(this.packageFqName);
|
||||
sb.append('.');
|
||||
return a.n(sb, this.classNamePrefix, 'N');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.functions;
|
||||
|
||||
import C.w;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nFunctionTypeKindExtractor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FunctionTypeKindExtractor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionTypeKindExtractor\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n*L\n1#1,70:1\n1477#2:71\n1502#2,3:72\n1505#2,3:82\n1747#2,3:85\n372#3,7:75\n*S KotlinDebug\n*F\n+ 1 FunctionTypeKindExtractor.kt\norg/jetbrains/kotlin/builtins/functions/FunctionTypeKindExtractor\n*L\n32#1:71\n32#1:72,3\n32#1:82,3\n54#1:85,3\n32#1:75,7\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FunctionTypeKindExtractor {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final FunctionTypeKindExtractor Default = new FunctionTypeKindExtractor(CollectionsKt.listOf((Object[]) new FunctionTypeKind[]{FunctionTypeKind.Function.INSTANCE, FunctionTypeKind.SuspendFunction.INSTANCE, FunctionTypeKind.KFunction.INSTANCE, FunctionTypeKind.KSuspendFunction.INSTANCE}));
|
||||
private final List<FunctionTypeKind> kinds;
|
||||
private final Map<FqName, List<FunctionTypeKind>> knownKindsByPackageFqName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final FunctionTypeKindExtractor getDefault() {
|
||||
return FunctionTypeKindExtractor.Default;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class KindWithArity {
|
||||
private final int arity;
|
||||
private final FunctionTypeKind kind;
|
||||
|
||||
public KindWithArity(FunctionTypeKind kind, int i) {
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
this.kind = kind;
|
||||
this.arity = i;
|
||||
}
|
||||
|
||||
public final FunctionTypeKind component1() {
|
||||
return this.kind;
|
||||
}
|
||||
|
||||
public final int component2() {
|
||||
return this.arity;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof KindWithArity)) {
|
||||
return false;
|
||||
}
|
||||
KindWithArity kindWithArity = (KindWithArity) obj;
|
||||
return Intrinsics.areEqual(this.kind, kindWithArity.kind) && this.arity == kindWithArity.arity;
|
||||
}
|
||||
|
||||
public final FunctionTypeKind getKind() {
|
||||
return this.kind;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Integer.hashCode(this.arity) + (this.kind.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("KindWithArity(kind=");
|
||||
sb.append(this.kind);
|
||||
sb.append(", arity=");
|
||||
return w.p(sb, this.arity, ')');
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FunctionTypeKindExtractor(List<? extends FunctionTypeKind> kinds) {
|
||||
Intrinsics.checkNotNullParameter(kinds, "kinds");
|
||||
this.kinds = kinds;
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||||
for (Object obj : kinds) {
|
||||
FqName packageFqName = ((FunctionTypeKind) obj).getPackageFqName();
|
||||
Object obj2 = linkedHashMap.get(packageFqName);
|
||||
if (obj2 == null) {
|
||||
obj2 = new ArrayList();
|
||||
linkedHashMap.put(packageFqName, obj2);
|
||||
}
|
||||
((List) obj2).add(obj);
|
||||
}
|
||||
this.knownKindsByPackageFqName = linkedHashMap;
|
||||
}
|
||||
|
||||
private final Integer toInt(String str) {
|
||||
if (str.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
int length = str.length();
|
||||
int i = 0;
|
||||
for (int i4 = 0; i4 < length; i4++) {
|
||||
int charAt = str.charAt(i4) - '0';
|
||||
if (charAt < 0 || charAt >= 10) {
|
||||
return null;
|
||||
}
|
||||
i = (i * 10) + charAt;
|
||||
}
|
||||
return Integer.valueOf(i);
|
||||
}
|
||||
|
||||
public final FunctionTypeKind getFunctionalClassKind(FqName packageFqName, String className) {
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(className, "className");
|
||||
KindWithArity functionalClassKindWithArity = getFunctionalClassKindWithArity(packageFqName, className);
|
||||
if (functionalClassKindWithArity != null) {
|
||||
return functionalClassKindWithArity.getKind();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final KindWithArity getFunctionalClassKindWithArity(FqName packageFqName, String className) {
|
||||
boolean startsWith$default;
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(className, "className");
|
||||
List<FunctionTypeKind> list = this.knownKindsByPackageFqName.get(packageFqName);
|
||||
if (list == null) {
|
||||
return null;
|
||||
}
|
||||
for (FunctionTypeKind functionTypeKind : list) {
|
||||
startsWith$default = StringsKt__StringsJVMKt.startsWith$default(className, functionTypeKind.getClassNamePrefix(), false, 2, null);
|
||||
if (startsWith$default) {
|
||||
String substring = className.substring(functionTypeKind.getClassNamePrefix().length());
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
Integer num = toInt(substring);
|
||||
if (num != null) {
|
||||
return new KindWithArity(functionTypeKind, num.intValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.SimpleFunctionDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CloneableClassScope extends GivenFunctionsMemberScope {
|
||||
private static final Name CLONE_NAME;
|
||||
public static final Companion Companion = new Companion(null);
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final Name getCLONE_NAME() {
|
||||
return CloneableClassScope.CLONE_NAME;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
Name identifier = Name.identifier("clone");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
CLONE_NAME = identifier;
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public CloneableClassScope(StorageManager storageManager, ClassDescriptor containingClass) {
|
||||
super(storageManager, containingClass);
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(containingClass, "containingClass");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope
|
||||
public List<FunctionDescriptor> computeDeclaredFunctions() {
|
||||
SimpleFunctionDescriptorImpl create = SimpleFunctionDescriptorImpl.create(getContainingClass(), Annotations.Companion.getEMPTY(), CLONE_NAME, CallableMemberDescriptor.Kind.DECLARATION, SourceElement.NO_SOURCE);
|
||||
create.initialize((ReceiverParameterDescriptor) null, getContainingClass().getThisAsReceiverParameter(), CollectionsKt.emptyList(), CollectionsKt.emptyList(), CollectionsKt.emptyList(), (KotlinType) DescriptorUtilsKt.getBuiltIns(getContainingClass()).getAnyType(), Modality.OPEN, DescriptorVisibilities.PROTECTED);
|
||||
return CollectionsKt.listOf(create);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.LockBasedStorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class FallbackBuiltIns extends KotlinBuiltIns {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final KotlinBuiltIns Instance = new FallbackBuiltIns();
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final KotlinBuiltIns getInstance() {
|
||||
return FallbackBuiltIns.Instance;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private FallbackBuiltIns() {
|
||||
super(new LockBasedStorageManager("FallbackBuiltIns"));
|
||||
createBuiltInsModule(true);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns
|
||||
public PlatformDependentDeclarationFilter.All getPlatformDependentDeclarationFilter() {
|
||||
return PlatformDependentDeclarationFilter.All.INSTANCE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,381 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.CompanionObjectMapping;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNamesUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.name.SpecialNames;
|
||||
import kotlin.reflect.jvm.internal.impl.name.StandardClassIds;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType;
|
||||
import kotlin.text.StringsKt;
|
||||
import kotlin.text.StringsKt__StringsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nJavaToKotlinClassMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JavaToKotlinClassMap.kt\norg/jetbrains/kotlin/builtins/jvm/JavaToKotlinClassMap\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,219:1\n49#1,2:221\n49#1,2:223\n49#1,2:225\n49#1,2:227\n49#1,2:229\n49#1,2:231\n49#1,2:233\n49#1,2:235\n1#2:220\n*S KotlinDebug\n*F\n+ 1 JavaToKotlinClassMap.kt\norg/jetbrains/kotlin/builtins/jvm/JavaToKotlinClassMap\n*L\n54#1:221,2\n55#1:223,2\n56#1:225,2\n57#1:227,2\n58#1:229,2\n59#1:231,2\n60#1:233,2\n61#1:235,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JavaToKotlinClassMap {
|
||||
private static final ClassId CLASS_CLASS_ID;
|
||||
private static final ClassId FUNCTION_N_CLASS_ID;
|
||||
private static final FqName FUNCTION_N_FQ_NAME;
|
||||
public static final JavaToKotlinClassMap INSTANCE;
|
||||
private static final ClassId K_CLASS_CLASS_ID;
|
||||
private static final ClassId K_FUNCTION_CLASS_ID;
|
||||
private static final String NUMBERED_FUNCTION_PREFIX;
|
||||
private static final String NUMBERED_K_FUNCTION_PREFIX;
|
||||
private static final String NUMBERED_K_SUSPEND_FUNCTION_PREFIX;
|
||||
private static final String NUMBERED_SUSPEND_FUNCTION_PREFIX;
|
||||
private static final HashMap<FqNameUnsafe, ClassId> javaToKotlin;
|
||||
private static final HashMap<FqNameUnsafe, ClassId> kotlinToJava;
|
||||
private static final List<PlatformMutabilityMapping> mutabilityMappings;
|
||||
private static final HashMap<FqNameUnsafe, FqName> mutableToReadOnly;
|
||||
private static final HashMap<ClassId, ClassId> mutableToReadOnlyClassId;
|
||||
private static final HashMap<FqNameUnsafe, FqName> readOnlyToMutable;
|
||||
private static final HashMap<ClassId, ClassId> readOnlyToMutableClassId;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class PlatformMutabilityMapping {
|
||||
private final ClassId javaClass;
|
||||
private final ClassId kotlinMutable;
|
||||
private final ClassId kotlinReadOnly;
|
||||
|
||||
public PlatformMutabilityMapping(ClassId javaClass, ClassId kotlinReadOnly, ClassId kotlinMutable) {
|
||||
Intrinsics.checkNotNullParameter(javaClass, "javaClass");
|
||||
Intrinsics.checkNotNullParameter(kotlinReadOnly, "kotlinReadOnly");
|
||||
Intrinsics.checkNotNullParameter(kotlinMutable, "kotlinMutable");
|
||||
this.javaClass = javaClass;
|
||||
this.kotlinReadOnly = kotlinReadOnly;
|
||||
this.kotlinMutable = kotlinMutable;
|
||||
}
|
||||
|
||||
public final ClassId component1() {
|
||||
return this.javaClass;
|
||||
}
|
||||
|
||||
public final ClassId component2() {
|
||||
return this.kotlinReadOnly;
|
||||
}
|
||||
|
||||
public final ClassId component3() {
|
||||
return this.kotlinMutable;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof PlatformMutabilityMapping)) {
|
||||
return false;
|
||||
}
|
||||
PlatformMutabilityMapping platformMutabilityMapping = (PlatformMutabilityMapping) obj;
|
||||
return Intrinsics.areEqual(this.javaClass, platformMutabilityMapping.javaClass) && Intrinsics.areEqual(this.kotlinReadOnly, platformMutabilityMapping.kotlinReadOnly) && Intrinsics.areEqual(this.kotlinMutable, platformMutabilityMapping.kotlinMutable);
|
||||
}
|
||||
|
||||
public final ClassId getJavaClass() {
|
||||
return this.javaClass;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.kotlinMutable.hashCode() + ((this.kotlinReadOnly.hashCode() + (this.javaClass.hashCode() * 31)) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PlatformMutabilityMapping(javaClass=" + this.javaClass + ", kotlinReadOnly=" + this.kotlinReadOnly + ", kotlinMutable=" + this.kotlinMutable + ')';
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
JavaToKotlinClassMap javaToKotlinClassMap = new JavaToKotlinClassMap();
|
||||
INSTANCE = javaToKotlinClassMap;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
FunctionTypeKind.Function function = FunctionTypeKind.Function.INSTANCE;
|
||||
sb.append(function.getPackageFqName().toString());
|
||||
sb.append('.');
|
||||
sb.append(function.getClassNamePrefix());
|
||||
NUMBERED_FUNCTION_PREFIX = sb.toString();
|
||||
StringBuilder sb2 = new StringBuilder();
|
||||
FunctionTypeKind.KFunction kFunction = FunctionTypeKind.KFunction.INSTANCE;
|
||||
sb2.append(kFunction.getPackageFqName().toString());
|
||||
sb2.append('.');
|
||||
sb2.append(kFunction.getClassNamePrefix());
|
||||
NUMBERED_K_FUNCTION_PREFIX = sb2.toString();
|
||||
StringBuilder sb3 = new StringBuilder();
|
||||
FunctionTypeKind.SuspendFunction suspendFunction = FunctionTypeKind.SuspendFunction.INSTANCE;
|
||||
sb3.append(suspendFunction.getPackageFqName().toString());
|
||||
sb3.append('.');
|
||||
sb3.append(suspendFunction.getClassNamePrefix());
|
||||
NUMBERED_SUSPEND_FUNCTION_PREFIX = sb3.toString();
|
||||
StringBuilder sb4 = new StringBuilder();
|
||||
FunctionTypeKind.KSuspendFunction kSuspendFunction = FunctionTypeKind.KSuspendFunction.INSTANCE;
|
||||
sb4.append(kSuspendFunction.getPackageFqName().toString());
|
||||
sb4.append('.');
|
||||
sb4.append(kSuspendFunction.getClassNamePrefix());
|
||||
NUMBERED_K_SUSPEND_FUNCTION_PREFIX = sb4.toString();
|
||||
ClassId classId = ClassId.topLevel(new FqName("kotlin.jvm.functions.FunctionN"));
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
FUNCTION_N_CLASS_ID = classId;
|
||||
FqName asSingleFqName = classId.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
|
||||
FUNCTION_N_FQ_NAME = asSingleFqName;
|
||||
StandardClassIds standardClassIds = StandardClassIds.INSTANCE;
|
||||
K_FUNCTION_CLASS_ID = standardClassIds.getKFunction();
|
||||
K_CLASS_CLASS_ID = standardClassIds.getKClass();
|
||||
CLASS_CLASS_ID = javaToKotlinClassMap.classId(Class.class);
|
||||
javaToKotlin = new HashMap<>();
|
||||
kotlinToJava = new HashMap<>();
|
||||
mutableToReadOnly = new HashMap<>();
|
||||
readOnlyToMutable = new HashMap<>();
|
||||
mutableToReadOnlyClassId = new HashMap<>();
|
||||
readOnlyToMutableClassId = new HashMap<>();
|
||||
ClassId classId2 = ClassId.topLevel(StandardNames.FqNames.iterable);
|
||||
Intrinsics.checkNotNullExpressionValue(classId2, "topLevel(...)");
|
||||
FqName fqName = StandardNames.FqNames.mutableIterable;
|
||||
FqName packageFqName = classId2.getPackageFqName();
|
||||
FqName packageFqName2 = classId2.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName2, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Iterable.class), classId2, new ClassId(packageFqName, FqNamesUtilKt.tail(fqName, packageFqName2), false));
|
||||
ClassId classId3 = ClassId.topLevel(StandardNames.FqNames.iterator);
|
||||
Intrinsics.checkNotNullExpressionValue(classId3, "topLevel(...)");
|
||||
FqName fqName2 = StandardNames.FqNames.mutableIterator;
|
||||
FqName packageFqName3 = classId3.getPackageFqName();
|
||||
FqName packageFqName4 = classId3.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName4, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping2 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Iterator.class), classId3, new ClassId(packageFqName3, FqNamesUtilKt.tail(fqName2, packageFqName4), false));
|
||||
ClassId classId4 = ClassId.topLevel(StandardNames.FqNames.collection);
|
||||
Intrinsics.checkNotNullExpressionValue(classId4, "topLevel(...)");
|
||||
FqName fqName3 = StandardNames.FqNames.mutableCollection;
|
||||
FqName packageFqName5 = classId4.getPackageFqName();
|
||||
FqName packageFqName6 = classId4.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName6, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping3 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Collection.class), classId4, new ClassId(packageFqName5, FqNamesUtilKt.tail(fqName3, packageFqName6), false));
|
||||
ClassId classId5 = ClassId.topLevel(StandardNames.FqNames.list);
|
||||
Intrinsics.checkNotNullExpressionValue(classId5, "topLevel(...)");
|
||||
FqName fqName4 = StandardNames.FqNames.mutableList;
|
||||
FqName packageFqName7 = classId5.getPackageFqName();
|
||||
FqName packageFqName8 = classId5.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName8, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping4 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(List.class), classId5, new ClassId(packageFqName7, FqNamesUtilKt.tail(fqName4, packageFqName8), false));
|
||||
ClassId classId6 = ClassId.topLevel(StandardNames.FqNames.set);
|
||||
Intrinsics.checkNotNullExpressionValue(classId6, "topLevel(...)");
|
||||
FqName fqName5 = StandardNames.FqNames.mutableSet;
|
||||
FqName packageFqName9 = classId6.getPackageFqName();
|
||||
FqName packageFqName10 = classId6.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName10, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping5 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Set.class), classId6, new ClassId(packageFqName9, FqNamesUtilKt.tail(fqName5, packageFqName10), false));
|
||||
ClassId classId7 = ClassId.topLevel(StandardNames.FqNames.listIterator);
|
||||
Intrinsics.checkNotNullExpressionValue(classId7, "topLevel(...)");
|
||||
FqName fqName6 = StandardNames.FqNames.mutableListIterator;
|
||||
FqName packageFqName11 = classId7.getPackageFqName();
|
||||
FqName packageFqName12 = classId7.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName12, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping6 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(ListIterator.class), classId7, new ClassId(packageFqName11, FqNamesUtilKt.tail(fqName6, packageFqName12), false));
|
||||
FqName fqName7 = StandardNames.FqNames.map;
|
||||
ClassId classId8 = ClassId.topLevel(fqName7);
|
||||
Intrinsics.checkNotNullExpressionValue(classId8, "topLevel(...)");
|
||||
FqName fqName8 = StandardNames.FqNames.mutableMap;
|
||||
FqName packageFqName13 = classId8.getPackageFqName();
|
||||
FqName packageFqName14 = classId8.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName14, "getPackageFqName(...)");
|
||||
PlatformMutabilityMapping platformMutabilityMapping7 = new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Map.class), classId8, new ClassId(packageFqName13, FqNamesUtilKt.tail(fqName8, packageFqName14), false));
|
||||
ClassId createNestedClassId = ClassId.topLevel(fqName7).createNestedClassId(StandardNames.FqNames.mapEntry.shortName());
|
||||
Intrinsics.checkNotNullExpressionValue(createNestedClassId, "createNestedClassId(...)");
|
||||
FqName fqName9 = StandardNames.FqNames.mutableMapEntry;
|
||||
FqName packageFqName15 = createNestedClassId.getPackageFqName();
|
||||
FqName packageFqName16 = createNestedClassId.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName16, "getPackageFqName(...)");
|
||||
FqName tail = FqNamesUtilKt.tail(fqName9, packageFqName16);
|
||||
List<PlatformMutabilityMapping> listOf = CollectionsKt.listOf((Object[]) new PlatformMutabilityMapping[]{platformMutabilityMapping, platformMutabilityMapping2, platformMutabilityMapping3, platformMutabilityMapping4, platformMutabilityMapping5, platformMutabilityMapping6, platformMutabilityMapping7, new PlatformMutabilityMapping(javaToKotlinClassMap.classId(Map.Entry.class), createNestedClassId, new ClassId(packageFqName15, tail, false))});
|
||||
mutabilityMappings = listOf;
|
||||
javaToKotlinClassMap.addTopLevel(Object.class, StandardNames.FqNames.any);
|
||||
javaToKotlinClassMap.addTopLevel(String.class, StandardNames.FqNames.string);
|
||||
javaToKotlinClassMap.addTopLevel(CharSequence.class, StandardNames.FqNames.charSequence);
|
||||
javaToKotlinClassMap.addTopLevel(Throwable.class, StandardNames.FqNames.throwable);
|
||||
javaToKotlinClassMap.addTopLevel(Cloneable.class, StandardNames.FqNames.cloneable);
|
||||
javaToKotlinClassMap.addTopLevel(Number.class, StandardNames.FqNames.number);
|
||||
javaToKotlinClassMap.addTopLevel(Comparable.class, StandardNames.FqNames.comparable);
|
||||
javaToKotlinClassMap.addTopLevel(Enum.class, StandardNames.FqNames._enum);
|
||||
javaToKotlinClassMap.addTopLevel(Annotation.class, StandardNames.FqNames.annotation);
|
||||
Iterator<PlatformMutabilityMapping> it = listOf.iterator();
|
||||
while (it.hasNext()) {
|
||||
INSTANCE.addMapping(it.next());
|
||||
}
|
||||
for (JvmPrimitiveType jvmPrimitiveType : JvmPrimitiveType.values()) {
|
||||
JavaToKotlinClassMap javaToKotlinClassMap2 = INSTANCE;
|
||||
ClassId classId9 = ClassId.topLevel(jvmPrimitiveType.getWrapperFqName());
|
||||
Intrinsics.checkNotNullExpressionValue(classId9, "topLevel(...)");
|
||||
PrimitiveType primitiveType = jvmPrimitiveType.getPrimitiveType();
|
||||
Intrinsics.checkNotNullExpressionValue(primitiveType, "getPrimitiveType(...)");
|
||||
ClassId classId10 = ClassId.topLevel(StandardNames.getPrimitiveFqName(primitiveType));
|
||||
Intrinsics.checkNotNullExpressionValue(classId10, "topLevel(...)");
|
||||
javaToKotlinClassMap2.add(classId9, classId10);
|
||||
}
|
||||
for (ClassId classId11 : CompanionObjectMapping.INSTANCE.allClassesWithIntrinsicCompanions()) {
|
||||
JavaToKotlinClassMap javaToKotlinClassMap3 = INSTANCE;
|
||||
ClassId classId12 = ClassId.topLevel(new FqName("kotlin.jvm.internal." + classId11.getShortClassName().asString() + "CompanionObject"));
|
||||
Intrinsics.checkNotNullExpressionValue(classId12, "topLevel(...)");
|
||||
ClassId createNestedClassId2 = classId11.createNestedClassId(SpecialNames.DEFAULT_NAME_FOR_COMPANION_OBJECT);
|
||||
Intrinsics.checkNotNullExpressionValue(createNestedClassId2, "createNestedClassId(...)");
|
||||
javaToKotlinClassMap3.add(classId12, createNestedClassId2);
|
||||
}
|
||||
for (int i = 0; i < 23; i++) {
|
||||
JavaToKotlinClassMap javaToKotlinClassMap4 = INSTANCE;
|
||||
ClassId classId13 = ClassId.topLevel(new FqName(a.l(i, "kotlin.jvm.functions.Function")));
|
||||
Intrinsics.checkNotNullExpressionValue(classId13, "topLevel(...)");
|
||||
javaToKotlinClassMap4.add(classId13, StandardNames.getFunctionClassId(i));
|
||||
javaToKotlinClassMap4.addKotlinToJava(new FqName(NUMBERED_K_FUNCTION_PREFIX + i), K_FUNCTION_CLASS_ID);
|
||||
}
|
||||
for (int i4 = 0; i4 < 22; i4++) {
|
||||
FunctionTypeKind.KSuspendFunction kSuspendFunction2 = FunctionTypeKind.KSuspendFunction.INSTANCE;
|
||||
INSTANCE.addKotlinToJava(new FqName((kSuspendFunction2.getPackageFqName().toString() + '.' + kSuspendFunction2.getClassNamePrefix()) + i4), K_FUNCTION_CLASS_ID);
|
||||
}
|
||||
JavaToKotlinClassMap javaToKotlinClassMap5 = INSTANCE;
|
||||
FqName safe = StandardNames.FqNames.nothing.toSafe();
|
||||
Intrinsics.checkNotNullExpressionValue(safe, "toSafe(...)");
|
||||
javaToKotlinClassMap5.addKotlinToJava(safe, javaToKotlinClassMap5.classId(Void.class));
|
||||
}
|
||||
|
||||
private JavaToKotlinClassMap() {
|
||||
}
|
||||
|
||||
private final void add(ClassId classId, ClassId classId2) {
|
||||
addJavaToKotlin(classId, classId2);
|
||||
FqName asSingleFqName = classId2.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
|
||||
addKotlinToJava(asSingleFqName, classId);
|
||||
}
|
||||
|
||||
private final void addJavaToKotlin(ClassId classId, ClassId classId2) {
|
||||
HashMap<FqNameUnsafe, ClassId> hashMap = javaToKotlin;
|
||||
FqNameUnsafe unsafe = classId.asSingleFqName().toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
hashMap.put(unsafe, classId2);
|
||||
}
|
||||
|
||||
private final void addKotlinToJava(FqName fqName, ClassId classId) {
|
||||
HashMap<FqNameUnsafe, ClassId> hashMap = kotlinToJava;
|
||||
FqNameUnsafe unsafe = fqName.toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
hashMap.put(unsafe, classId);
|
||||
}
|
||||
|
||||
private final void addMapping(PlatformMutabilityMapping platformMutabilityMapping) {
|
||||
ClassId component1 = platformMutabilityMapping.component1();
|
||||
ClassId component2 = platformMutabilityMapping.component2();
|
||||
ClassId component3 = platformMutabilityMapping.component3();
|
||||
add(component1, component2);
|
||||
FqName asSingleFqName = component3.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
|
||||
addKotlinToJava(asSingleFqName, component1);
|
||||
mutableToReadOnlyClassId.put(component3, component2);
|
||||
readOnlyToMutableClassId.put(component2, component3);
|
||||
FqName asSingleFqName2 = component2.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName2, "asSingleFqName(...)");
|
||||
FqName asSingleFqName3 = component3.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName3, "asSingleFqName(...)");
|
||||
HashMap<FqNameUnsafe, FqName> hashMap = mutableToReadOnly;
|
||||
FqNameUnsafe unsafe = component3.asSingleFqName().toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
|
||||
hashMap.put(unsafe, asSingleFqName2);
|
||||
HashMap<FqNameUnsafe, FqName> hashMap2 = readOnlyToMutable;
|
||||
FqNameUnsafe unsafe2 = asSingleFqName2.toUnsafe();
|
||||
Intrinsics.checkNotNullExpressionValue(unsafe2, "toUnsafe(...)");
|
||||
hashMap2.put(unsafe2, asSingleFqName3);
|
||||
}
|
||||
|
||||
private final void addTopLevel(Class<?> cls, FqNameUnsafe fqNameUnsafe) {
|
||||
FqName safe = fqNameUnsafe.toSafe();
|
||||
Intrinsics.checkNotNullExpressionValue(safe, "toSafe(...)");
|
||||
addTopLevel(cls, safe);
|
||||
}
|
||||
|
||||
private final ClassId classId(Class<?> cls) {
|
||||
if (!cls.isPrimitive()) {
|
||||
cls.isArray();
|
||||
}
|
||||
Class<?> declaringClass = cls.getDeclaringClass();
|
||||
if (declaringClass == null) {
|
||||
ClassId classId = ClassId.topLevel(new FqName(cls.getCanonicalName()));
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
return classId;
|
||||
}
|
||||
ClassId createNestedClassId = classId(declaringClass).createNestedClassId(Name.identifier(cls.getSimpleName()));
|
||||
Intrinsics.checkNotNullExpressionValue(createNestedClassId, "createNestedClassId(...)");
|
||||
return createNestedClassId;
|
||||
}
|
||||
|
||||
private final boolean isKotlinFunctionWithBigArity(FqNameUnsafe fqNameUnsafe, String str) {
|
||||
String substringAfter;
|
||||
boolean startsWith$default;
|
||||
Integer intOrNull;
|
||||
String asString = fqNameUnsafe.asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
substringAfter = StringsKt__StringsKt.substringAfter(asString, str, "");
|
||||
if (substringAfter.length() <= 0) {
|
||||
return false;
|
||||
}
|
||||
startsWith$default = StringsKt__StringsKt.startsWith$default((CharSequence) substringAfter, '0', false, 2, (Object) null);
|
||||
return (startsWith$default || (intOrNull = StringsKt.toIntOrNull(substringAfter)) == null || intOrNull.intValue() < 23) ? false : true;
|
||||
}
|
||||
|
||||
public final FqName getFUNCTION_N_FQ_NAME() {
|
||||
return FUNCTION_N_FQ_NAME;
|
||||
}
|
||||
|
||||
public final List<PlatformMutabilityMapping> getMutabilityMappings() {
|
||||
return mutabilityMappings;
|
||||
}
|
||||
|
||||
public final boolean isMutable(FqNameUnsafe fqNameUnsafe) {
|
||||
return mutableToReadOnly.containsKey(fqNameUnsafe);
|
||||
}
|
||||
|
||||
public final boolean isReadOnly(FqNameUnsafe fqNameUnsafe) {
|
||||
return readOnlyToMutable.containsKey(fqNameUnsafe);
|
||||
}
|
||||
|
||||
public final ClassId mapJavaToKotlin(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
return javaToKotlin.get(fqName.toUnsafe());
|
||||
}
|
||||
|
||||
public final ClassId mapKotlinToJava(FqNameUnsafe kotlinFqName) {
|
||||
Intrinsics.checkNotNullParameter(kotlinFqName, "kotlinFqName");
|
||||
if (!isKotlinFunctionWithBigArity(kotlinFqName, NUMBERED_FUNCTION_PREFIX) && !isKotlinFunctionWithBigArity(kotlinFqName, NUMBERED_SUSPEND_FUNCTION_PREFIX)) {
|
||||
if (!isKotlinFunctionWithBigArity(kotlinFqName, NUMBERED_K_FUNCTION_PREFIX) && !isKotlinFunctionWithBigArity(kotlinFqName, NUMBERED_K_SUSPEND_FUNCTION_PREFIX)) {
|
||||
return kotlinToJava.get(kotlinFqName);
|
||||
}
|
||||
return K_FUNCTION_CLASS_ID;
|
||||
}
|
||||
return FUNCTION_N_CLASS_ID;
|
||||
}
|
||||
|
||||
public final FqName mutableToReadOnly(FqNameUnsafe fqNameUnsafe) {
|
||||
return mutableToReadOnly.get(fqNameUnsafe);
|
||||
}
|
||||
|
||||
public final FqName readOnlyToMutable(FqNameUnsafe fqNameUnsafe) {
|
||||
return readOnlyToMutable.get(fqNameUnsafe);
|
||||
}
|
||||
|
||||
private final void addTopLevel(Class<?> cls, FqName fqName) {
|
||||
ClassId classId = classId(cls);
|
||||
ClassId classId2 = ClassId.topLevel(fqName);
|
||||
Intrinsics.checkNotNullExpressionValue(classId2, "topLevel(...)");
|
||||
add(classId, classId2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.util.Collection;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nJavaToKotlinClassMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JavaToKotlinClassMapper.kt\norg/jetbrains/kotlin/builtins/jvm/JavaToKotlinClassMapper\n*L\n1#1,80:1\n75#1,3:81\n75#1,3:84\n*S KotlinDebug\n*F\n+ 1 JavaToKotlinClassMapper.kt\norg/jetbrains/kotlin/builtins/jvm/JavaToKotlinClassMapper\n*L\n59#1:81,3\n65#1:84,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JavaToKotlinClassMapper {
|
||||
public static final JavaToKotlinClassMapper INSTANCE = new JavaToKotlinClassMapper();
|
||||
|
||||
private JavaToKotlinClassMapper() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ ClassDescriptor mapJavaToKotlin$default(JavaToKotlinClassMapper javaToKotlinClassMapper, FqName fqName, KotlinBuiltIns kotlinBuiltIns, Integer num, int i, Object obj) {
|
||||
if ((i & 4) != 0) {
|
||||
num = null;
|
||||
}
|
||||
return javaToKotlinClassMapper.mapJavaToKotlin(fqName, kotlinBuiltIns, num);
|
||||
}
|
||||
|
||||
public final ClassDescriptor convertMutableToReadOnly(ClassDescriptor mutable) {
|
||||
Intrinsics.checkNotNullParameter(mutable, "mutable");
|
||||
FqName mutableToReadOnly = JavaToKotlinClassMap.INSTANCE.mutableToReadOnly(DescriptorUtils.getFqName(mutable));
|
||||
if (mutableToReadOnly != null) {
|
||||
ClassDescriptor builtInClassByFqName = DescriptorUtilsKt.getBuiltIns(mutable).getBuiltInClassByFqName(mutableToReadOnly);
|
||||
Intrinsics.checkNotNullExpressionValue(builtInClassByFqName, "getBuiltInClassByFqName(...)");
|
||||
return builtInClassByFqName;
|
||||
}
|
||||
throw new IllegalArgumentException("Given class " + mutable + " is not a mutable collection");
|
||||
}
|
||||
|
||||
public final ClassDescriptor convertReadOnlyToMutable(ClassDescriptor readOnly) {
|
||||
Intrinsics.checkNotNullParameter(readOnly, "readOnly");
|
||||
FqName readOnlyToMutable = JavaToKotlinClassMap.INSTANCE.readOnlyToMutable(DescriptorUtils.getFqName(readOnly));
|
||||
if (readOnlyToMutable != null) {
|
||||
ClassDescriptor builtInClassByFqName = DescriptorUtilsKt.getBuiltIns(readOnly).getBuiltInClassByFqName(readOnlyToMutable);
|
||||
Intrinsics.checkNotNullExpressionValue(builtInClassByFqName, "getBuiltInClassByFqName(...)");
|
||||
return builtInClassByFqName;
|
||||
}
|
||||
throw new IllegalArgumentException("Given class " + readOnly + " is not a read-only collection");
|
||||
}
|
||||
|
||||
public final boolean isMutable(ClassDescriptor mutable) {
|
||||
Intrinsics.checkNotNullParameter(mutable, "mutable");
|
||||
return JavaToKotlinClassMap.INSTANCE.isMutable(DescriptorUtils.getFqName(mutable));
|
||||
}
|
||||
|
||||
public final boolean isReadOnly(ClassDescriptor readOnly) {
|
||||
Intrinsics.checkNotNullParameter(readOnly, "readOnly");
|
||||
return JavaToKotlinClassMap.INSTANCE.isReadOnly(DescriptorUtils.getFqName(readOnly));
|
||||
}
|
||||
|
||||
public final ClassDescriptor mapJavaToKotlin(FqName fqName, KotlinBuiltIns builtIns, Integer num) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
ClassId mapJavaToKotlin = (num == null || !Intrinsics.areEqual(fqName, JavaToKotlinClassMap.INSTANCE.getFUNCTION_N_FQ_NAME())) ? JavaToKotlinClassMap.INSTANCE.mapJavaToKotlin(fqName) : StandardNames.getFunctionClassId(num.intValue());
|
||||
if (mapJavaToKotlin != null) {
|
||||
return builtIns.getBuiltInClassByFqName(mapJavaToKotlin.asSingleFqName());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final Collection<ClassDescriptor> mapPlatformClass(FqName fqName, KotlinBuiltIns builtIns) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(builtIns, "builtIns");
|
||||
ClassDescriptor mapJavaToKotlin$default = mapJavaToKotlin$default(this, fqName, builtIns, null, 4, null);
|
||||
if (mapJavaToKotlin$default == null) {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
FqName readOnlyToMutable = JavaToKotlinClassMap.INSTANCE.readOnlyToMutable(DescriptorUtilsKt.getFqNameUnsafe(mapJavaToKotlin$default));
|
||||
if (readOnlyToMutable == null) {
|
||||
return SetsKt.setOf(mapJavaToKotlin$default);
|
||||
}
|
||||
ClassDescriptor builtInClassByFqName = builtIns.getBuiltInClassByFqName(readOnlyToMutable);
|
||||
Intrinsics.checkNotNullExpressionValue(builtInClassByFqName, "getBuiltInClassByFqName(...)");
|
||||
return CollectionsKt.listOf((Object[]) new ClassDescriptor[]{mapJavaToKotlin$default, builtInClassByFqName});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.BuiltInsPackageFragment;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.NotNullLazyValue;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageKt;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltInClassDescriptorFactory implements ClassDescriptorFactory {
|
||||
private static final ClassId CLONEABLE_CLASS_ID;
|
||||
private static final Name CLONEABLE_NAME;
|
||||
private final NotNullLazyValue cloneable$delegate;
|
||||
private final Function1<ModuleDescriptor, DeclarationDescriptor> computeContainingDeclaration;
|
||||
private final ModuleDescriptor moduleDescriptor;
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(JvmBuiltInClassDescriptorFactory.class), "cloneable", "getCloneable()Lorg/jetbrains/kotlin/descriptors/impl/ClassDescriptorImpl;"))};
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final FqName KOTLIN_FQ_NAME = StandardNames.BUILT_INS_PACKAGE_FQ_NAME;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final ClassId getCLONEABLE_CLASS_ID() {
|
||||
return JvmBuiltInClassDescriptorFactory.CLONEABLE_CLASS_ID;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
FqNameUnsafe fqNameUnsafe = StandardNames.FqNames.cloneable;
|
||||
Name shortName = fqNameUnsafe.shortName();
|
||||
Intrinsics.checkNotNullExpressionValue(shortName, "shortName(...)");
|
||||
CLONEABLE_NAME = shortName;
|
||||
ClassId classId = ClassId.topLevel(fqNameUnsafe.toSafe());
|
||||
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
|
||||
CLONEABLE_CLASS_ID = classId;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public JvmBuiltInClassDescriptorFactory(final StorageManager storageManager, ModuleDescriptor moduleDescriptor, Function1<? super ModuleDescriptor, ? extends DeclarationDescriptor> computeContainingDeclaration) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
Intrinsics.checkNotNullParameter(computeContainingDeclaration, "computeContainingDeclaration");
|
||||
this.moduleDescriptor = moduleDescriptor;
|
||||
this.computeContainingDeclaration = computeContainingDeclaration;
|
||||
this.cloneable$delegate = storageManager.createLazyValue(new Function0<ClassDescriptorImpl>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory$cloneable$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final ClassDescriptorImpl invoke() {
|
||||
Function1 function1;
|
||||
ModuleDescriptor moduleDescriptor2;
|
||||
Name name;
|
||||
ModuleDescriptor moduleDescriptor3;
|
||||
function1 = JvmBuiltInClassDescriptorFactory.this.computeContainingDeclaration;
|
||||
moduleDescriptor2 = JvmBuiltInClassDescriptorFactory.this.moduleDescriptor;
|
||||
DeclarationDescriptor declarationDescriptor = (DeclarationDescriptor) function1.invoke(moduleDescriptor2);
|
||||
name = JvmBuiltInClassDescriptorFactory.CLONEABLE_NAME;
|
||||
Modality modality = Modality.ABSTRACT;
|
||||
ClassKind classKind = ClassKind.INTERFACE;
|
||||
moduleDescriptor3 = JvmBuiltInClassDescriptorFactory.this.moduleDescriptor;
|
||||
ClassDescriptorImpl classDescriptorImpl = new ClassDescriptorImpl(declarationDescriptor, name, modality, classKind, CollectionsKt.listOf(moduleDescriptor3.getBuiltIns().getAnyType()), SourceElement.NO_SOURCE, false, storageManager);
|
||||
classDescriptorImpl.initialize(new CloneableClassScope(storageManager, classDescriptorImpl), SetsKt.emptySet(), null);
|
||||
return classDescriptorImpl;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final ClassDescriptorImpl getCloneable() {
|
||||
return (ClassDescriptorImpl) StorageKt.getValue(this.cloneable$delegate, this, (KProperty<?>) $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public ClassDescriptor createClass(ClassId classId) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
if (Intrinsics.areEqual(classId, CLONEABLE_CLASS_ID)) {
|
||||
return getCloneable();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public Collection<ClassDescriptor> getAllContributedClassesIfPossible(FqName packageFqName) {
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
return Intrinsics.areEqual(packageFqName, KOTLIN_FQ_NAME) ? SetsKt.setOf(getCloneable()) : SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory
|
||||
public boolean shouldCreateClass(FqName packageFqName, Name name) {
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return Intrinsics.areEqual(name, CLONEABLE_NAME) && Intrinsics.areEqual(packageFqName, KOTLIN_FQ_NAME);
|
||||
}
|
||||
|
||||
public /* synthetic */ JvmBuiltInClassDescriptorFactory(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Function1 function1, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(storageManager, moduleDescriptor, (i & 4) != 0 ? new Function1<ModuleDescriptor, BuiltInsPackageFragment>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory.1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final BuiltInsPackageFragment invoke(ModuleDescriptor module) {
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
List<PackageFragmentDescriptor> fragments = module.getPackage(JvmBuiltInClassDescriptorFactory.KOTLIN_FQ_NAME).getFragments();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : fragments) {
|
||||
if (obj instanceof BuiltInsPackageFragment) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
return (BuiltInsPackageFragment) CollectionsKt.first((List) arrayList);
|
||||
}
|
||||
} : function1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.NotNullLazyValue;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageKt;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nJvmBuiltIns.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JvmBuiltIns.kt\norg/jetbrains/kotlin/builtins/jvm/JvmBuiltIns\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,103:1\n1#2:104\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltIns extends KotlinBuiltIns {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(JvmBuiltIns.class), "customizer", "getCustomizer()Lorg/jetbrains/kotlin/builtins/jvm/JvmBuiltInsCustomizer;"))};
|
||||
private final NotNullLazyValue customizer$delegate;
|
||||
private final Kind kind;
|
||||
private Function0<Settings> settingsComputation;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Kind {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ Kind[] $VALUES;
|
||||
public static final Kind FROM_DEPENDENCIES = new Kind("FROM_DEPENDENCIES", 0);
|
||||
public static final Kind FROM_CLASS_LOADER = new Kind("FROM_CLASS_LOADER", 1);
|
||||
public static final Kind FALLBACK = new Kind("FALLBACK", 2);
|
||||
|
||||
private static final /* synthetic */ Kind[] $values() {
|
||||
return new Kind[]{FROM_DEPENDENCIES, FROM_CLASS_LOADER, FALLBACK};
|
||||
}
|
||||
|
||||
static {
|
||||
Kind[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private Kind(String str, int i) {
|
||||
}
|
||||
|
||||
public static Kind valueOf(String str) {
|
||||
return (Kind) Enum.valueOf(Kind.class, str);
|
||||
}
|
||||
|
||||
public static Kind[] values() {
|
||||
return (Kind[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Settings {
|
||||
private final boolean isAdditionalBuiltInsFeatureSupported;
|
||||
private final ModuleDescriptor ownerModuleDescriptor;
|
||||
|
||||
public Settings(ModuleDescriptor ownerModuleDescriptor, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(ownerModuleDescriptor, "ownerModuleDescriptor");
|
||||
this.ownerModuleDescriptor = ownerModuleDescriptor;
|
||||
this.isAdditionalBuiltInsFeatureSupported = z3;
|
||||
}
|
||||
|
||||
public final ModuleDescriptor getOwnerModuleDescriptor() {
|
||||
return this.ownerModuleDescriptor;
|
||||
}
|
||||
|
||||
public final boolean isAdditionalBuiltInsFeatureSupported() {
|
||||
return this.isAdditionalBuiltInsFeatureSupported;
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Kind.values().length];
|
||||
try {
|
||||
iArr[Kind.FROM_DEPENDENCIES.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Kind.FROM_CLASS_LOADER.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[Kind.FALLBACK.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JvmBuiltIns(final StorageManager storageManager, Kind kind) {
|
||||
super(storageManager);
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
this.kind = kind;
|
||||
this.customizer$delegate = storageManager.createLazyValue(new Function0<JvmBuiltInsCustomizer>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$customizer$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final JvmBuiltInsCustomizer invoke() {
|
||||
ModuleDescriptorImpl builtInsModule = JvmBuiltIns.this.getBuiltInsModule();
|
||||
Intrinsics.checkNotNullExpressionValue(builtInsModule, "getBuiltInsModule(...)");
|
||||
StorageManager storageManager2 = storageManager;
|
||||
final JvmBuiltIns jvmBuiltIns = JvmBuiltIns.this;
|
||||
return new JvmBuiltInsCustomizer(builtInsModule, storageManager2, new Function0<JvmBuiltIns.Settings>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$customizer$2.1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final JvmBuiltIns.Settings invoke() {
|
||||
Function0 function0;
|
||||
function0 = JvmBuiltIns.this.settingsComputation;
|
||||
if (function0 != null) {
|
||||
JvmBuiltIns.Settings settings = (JvmBuiltIns.Settings) function0.invoke();
|
||||
JvmBuiltIns.this.settingsComputation = null;
|
||||
return settings;
|
||||
}
|
||||
throw new AssertionError("JvmBuiltins instance has not been initialized properly");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[kind.ordinal()];
|
||||
if (i == 2) {
|
||||
createBuiltInsModule(false);
|
||||
} else {
|
||||
if (i != 3) {
|
||||
return;
|
||||
}
|
||||
createBuiltInsModule(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns
|
||||
public AdditionalClassPartsProvider getAdditionalClassPartsProvider() {
|
||||
return getCustomizer();
|
||||
}
|
||||
|
||||
public final JvmBuiltInsCustomizer getCustomizer() {
|
||||
return (JvmBuiltInsCustomizer) StorageKt.getValue(this.customizer$delegate, this, (KProperty<?>) $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns
|
||||
public PlatformDependentDeclarationFilter getPlatformDependentDeclarationFilter() {
|
||||
return getCustomizer();
|
||||
}
|
||||
|
||||
public final void initialize(final ModuleDescriptor moduleDescriptor, final boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
setPostponedSettingsComputation(new Function0<Settings>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$initialize$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final JvmBuiltIns.Settings invoke() {
|
||||
return new JvmBuiltIns.Settings(ModuleDescriptor.this, z3);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public final void setPostponedSettingsComputation(Function0<Settings> computation) {
|
||||
Intrinsics.checkNotNullParameter(computation, "computation");
|
||||
this.settingsComputation = computation;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns
|
||||
public List<ClassDescriptorFactory> getClassDescriptorFactories() {
|
||||
Iterable<ClassDescriptorFactory> classDescriptorFactories = super.getClassDescriptorFactories();
|
||||
Intrinsics.checkNotNullExpressionValue(classDescriptorFactories, "getClassDescriptorFactories(...)");
|
||||
StorageManager storageManager = getStorageManager();
|
||||
Intrinsics.checkNotNullExpressionValue(storageManager, "getStorageManager(...)");
|
||||
ModuleDescriptorImpl builtInsModule = getBuiltInsModule();
|
||||
Intrinsics.checkNotNullExpressionValue(builtInsModule, "getBuiltInsModule(...)");
|
||||
return CollectionsKt.plus(classDescriptorFactories, new JvmBuiltInClassDescriptorFactory(storageManager, builtInsModule, null, 4, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,598 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import C.w;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilterKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.PackageFragmentDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.components.JavaResolverCache;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.MethodSignatureBuildingUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.MethodSignatureMappingKt;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.SignatureBuildingComponents;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.OverridingUtil;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.CacheWithNotNullValues;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.MemoizedFunctionToNotNull;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.NotNullLazyValue;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageKt;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.LazyWrappedType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
|
||||
import kotlin.reflect.jvm.internal.impl.utils.DFS;
|
||||
import kotlin.reflect.jvm.internal.impl.utils.SmartSet;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nJvmBuiltInsCustomizer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JvmBuiltInsCustomizer.kt\norg/jetbrains/kotlin/builtins/jvm/JvmBuiltInsCustomizer\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,375:1\n1747#2,3:376\n1603#2,9:379\n1855#2:388\n1856#2:390\n1612#2:391\n1549#2:392\n1620#2,3:393\n766#2:396\n857#2:397\n1747#2,3:398\n858#2:401\n766#2:402\n857#2:403\n2624#2,3:404\n858#2:407\n1549#2:408\n1620#2,3:409\n1747#2,3:412\n1603#2,9:415\n1855#2:424\n1856#2:426\n1612#2:427\n1#3:389\n1#3:425\n*S KotlinDebug\n*F\n+ 1 JvmBuiltInsCustomizer.kt\norg/jetbrains/kotlin/builtins/jvm/JvmBuiltInsCustomizer\n*L\n119#1:376,3\n135#1:379,9\n135#1:388\n135#1:390\n135#1:391\n194#1:392\n194#1:393,3\n208#1:396\n208#1:397\n213#1:398,3\n208#1:401\n316#1:402\n316#1:403\n318#1:404,3\n316#1:407\n325#1:408\n325#1:409,3\n352#1:412,3\n256#1:415,9\n256#1:424\n256#1:426\n256#1:427\n135#1:389\n256#1:425\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltInsCustomizer implements AdditionalClassPartsProvider, PlatformDependentDeclarationFilter {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(JvmBuiltInsCustomizer.class), "settings", "getSettings()Lorg/jetbrains/kotlin/builtins/jvm/JvmBuiltIns$Settings;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(JvmBuiltInsCustomizer.class), "cloneableType", "getCloneableType()Lorg/jetbrains/kotlin/types/SimpleType;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(JvmBuiltInsCustomizer.class), "notConsideredDeprecation", "getNotConsideredDeprecation()Lorg/jetbrains/kotlin/descriptors/annotations/Annotations;"))};
|
||||
private final NotNullLazyValue cloneableType$delegate;
|
||||
private final MemoizedFunctionToNotNull<Pair<String, String>, Annotations> deprecationForSomeOfTheListMethods;
|
||||
private final JavaToKotlinClassMapper j2kClassMapper;
|
||||
private final CacheWithNotNullValues<FqName, ClassDescriptor> javaAnalogueClassesWithCustomSupertypeCache;
|
||||
private final KotlinType mockSerializableType;
|
||||
private final ModuleDescriptor moduleDescriptor;
|
||||
private final NotNullLazyValue notConsideredDeprecation$delegate;
|
||||
private final NotNullLazyValue settings$delegate;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class JDKMemberStatus {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ JDKMemberStatus[] $VALUES;
|
||||
public static final JDKMemberStatus HIDDEN = new JDKMemberStatus("HIDDEN", 0);
|
||||
public static final JDKMemberStatus VISIBLE = new JDKMemberStatus("VISIBLE", 1);
|
||||
public static final JDKMemberStatus DEPRECATED_LIST_METHODS = new JDKMemberStatus("DEPRECATED_LIST_METHODS", 2);
|
||||
public static final JDKMemberStatus NOT_CONSIDERED = new JDKMemberStatus("NOT_CONSIDERED", 3);
|
||||
public static final JDKMemberStatus DROP = new JDKMemberStatus("DROP", 4);
|
||||
|
||||
private static final /* synthetic */ JDKMemberStatus[] $values() {
|
||||
return new JDKMemberStatus[]{HIDDEN, VISIBLE, DEPRECATED_LIST_METHODS, NOT_CONSIDERED, DROP};
|
||||
}
|
||||
|
||||
static {
|
||||
JDKMemberStatus[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private JDKMemberStatus(String str, int i) {
|
||||
}
|
||||
|
||||
public static JDKMemberStatus valueOf(String str) {
|
||||
return (JDKMemberStatus) Enum.valueOf(JDKMemberStatus.class, str);
|
||||
}
|
||||
|
||||
public static JDKMemberStatus[] values() {
|
||||
return (JDKMemberStatus[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[JDKMemberStatus.values().length];
|
||||
try {
|
||||
iArr[JDKMemberStatus.HIDDEN.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[JDKMemberStatus.DEPRECATED_LIST_METHODS.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[JDKMemberStatus.NOT_CONSIDERED.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[JDKMemberStatus.DROP.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr[JDKMemberStatus.VISIBLE.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public JvmBuiltInsCustomizer(ModuleDescriptor moduleDescriptor, final StorageManager storageManager, Function0<JvmBuiltIns.Settings> settingsComputation) {
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(settingsComputation, "settingsComputation");
|
||||
this.moduleDescriptor = moduleDescriptor;
|
||||
this.j2kClassMapper = JavaToKotlinClassMapper.INSTANCE;
|
||||
this.settings$delegate = storageManager.createLazyValue(settingsComputation);
|
||||
this.mockSerializableType = createMockJavaIoSerializableType(storageManager);
|
||||
this.cloneableType$delegate = storageManager.createLazyValue(new Function0<SimpleType>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$cloneableType$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final SimpleType invoke() {
|
||||
JvmBuiltIns.Settings settings;
|
||||
JvmBuiltIns.Settings settings2;
|
||||
settings = JvmBuiltInsCustomizer.this.getSettings();
|
||||
ModuleDescriptor ownerModuleDescriptor = settings.getOwnerModuleDescriptor();
|
||||
ClassId cloneable_class_id = JvmBuiltInClassDescriptorFactory.Companion.getCLONEABLE_CLASS_ID();
|
||||
StorageManager storageManager2 = storageManager;
|
||||
settings2 = JvmBuiltInsCustomizer.this.getSettings();
|
||||
return FindClassInModuleKt.findNonGenericClassAcrossDependencies(ownerModuleDescriptor, cloneable_class_id, new NotFoundClasses(storageManager2, settings2.getOwnerModuleDescriptor())).getDefaultType();
|
||||
}
|
||||
});
|
||||
this.javaAnalogueClassesWithCustomSupertypeCache = storageManager.createCacheWithNotNullValues();
|
||||
this.notConsideredDeprecation$delegate = storageManager.createLazyValue(new Function0<Annotations>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$notConsideredDeprecation$2
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Annotations invoke() {
|
||||
ModuleDescriptor moduleDescriptor2;
|
||||
moduleDescriptor2 = JvmBuiltInsCustomizer.this.moduleDescriptor;
|
||||
return Annotations.Companion.create(CollectionsKt.listOf(AnnotationUtilKt.createDeprecatedAnnotation$default(moduleDescriptor2.getBuiltIns(), "This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version", null, null, true, 6, null)));
|
||||
}
|
||||
});
|
||||
this.deprecationForSomeOfTheListMethods = storageManager.createMemoizedFunction(new Function1<Pair<? extends String, ? extends String>, Annotations>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$deprecationForSomeOfTheListMethods$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Annotations invoke(Pair<? extends String, ? extends String> pair) {
|
||||
return invoke2((Pair<String, String>) pair);
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public final Annotations invoke2(Pair<String, String> pair) {
|
||||
ModuleDescriptor moduleDescriptor2;
|
||||
Intrinsics.checkNotNullParameter(pair, "<name for destructuring parameter 0>");
|
||||
String component1 = pair.component1();
|
||||
String component2 = pair.component2();
|
||||
moduleDescriptor2 = JvmBuiltInsCustomizer.this.moduleDescriptor;
|
||||
return Annotations.Companion.create(CollectionsKt.listOf(AnnotationUtilKt.createDeprecatedAnnotation$default(moduleDescriptor2.getBuiltIns(), "'" + component1 + "()' member of List is redundant in Kotlin and might be removed soon. Please use '" + component2 + "()' stdlib extension instead", w.n(component2, "()"), null, true, 4, null)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final SimpleFunctionDescriptor createCloneForArray(DeserializedClassDescriptor deserializedClassDescriptor, SimpleFunctionDescriptor simpleFunctionDescriptor) {
|
||||
FunctionDescriptor.CopyBuilder<? extends SimpleFunctionDescriptor> newCopyBuilder = simpleFunctionDescriptor.newCopyBuilder();
|
||||
newCopyBuilder.setOwner(deserializedClassDescriptor);
|
||||
newCopyBuilder.setVisibility(DescriptorVisibilities.PUBLIC);
|
||||
newCopyBuilder.setReturnType(deserializedClassDescriptor.getDefaultType());
|
||||
newCopyBuilder.setDispatchReceiverParameter(deserializedClassDescriptor.getThisAsReceiverParameter());
|
||||
SimpleFunctionDescriptor build = newCopyBuilder.build();
|
||||
Intrinsics.checkNotNull(build);
|
||||
return build;
|
||||
}
|
||||
|
||||
private final KotlinType createMockJavaIoSerializableType(StorageManager storageManager) {
|
||||
final ModuleDescriptor moduleDescriptor = this.moduleDescriptor;
|
||||
final FqName fqName = new FqName("java.io");
|
||||
ClassDescriptorImpl classDescriptorImpl = new ClassDescriptorImpl(new PackageFragmentDescriptorImpl(moduleDescriptor, fqName) { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$createMockJavaIoSerializableType$mockJavaIoPackageFragment$1
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor
|
||||
public MemberScope.Empty getMemberScope() {
|
||||
return MemberScope.Empty.INSTANCE;
|
||||
}
|
||||
}, Name.identifier("Serializable"), Modality.ABSTRACT, ClassKind.INTERFACE, CollectionsKt.listOf(new LazyWrappedType(storageManager, new Function0<KotlinType>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$createMockJavaIoSerializableType$superTypes$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final KotlinType invoke() {
|
||||
ModuleDescriptor moduleDescriptor2;
|
||||
moduleDescriptor2 = JvmBuiltInsCustomizer.this.moduleDescriptor;
|
||||
SimpleType anyType = moduleDescriptor2.getBuiltIns().getAnyType();
|
||||
Intrinsics.checkNotNullExpressionValue(anyType, "getAnyType(...)");
|
||||
return anyType;
|
||||
}
|
||||
})), SourceElement.NO_SOURCE, false, storageManager);
|
||||
classDescriptorImpl.initialize(MemberScope.Empty.INSTANCE, SetsKt.emptySet(), null);
|
||||
SimpleType defaultType = classDescriptorImpl.getDefaultType();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultType, "getDefaultType(...)");
|
||||
return defaultType;
|
||||
}
|
||||
|
||||
private final Collection<SimpleFunctionDescriptor> getAdditionalFunctions(ClassDescriptor classDescriptor, Function1<? super MemberScope, ? extends Collection<? extends SimpleFunctionDescriptor>> function1) {
|
||||
int collectionSizeOrDefault;
|
||||
final LazyJavaClassDescriptor javaAnalogue = getJavaAnalogue(classDescriptor);
|
||||
if (javaAnalogue == null) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
Collection<ClassDescriptor> mapPlatformClass = this.j2kClassMapper.mapPlatformClass(DescriptorUtilsKt.getFqNameSafe(javaAnalogue), FallbackBuiltIns.Companion.getInstance());
|
||||
final ClassDescriptor classDescriptor2 = (ClassDescriptor) CollectionsKt.lastOrNull(mapPlatformClass);
|
||||
if (classDescriptor2 == null) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
SmartSet.Companion companion = SmartSet.Companion;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(mapPlatformClass, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = mapPlatformClass.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(DescriptorUtilsKt.getFqNameSafe((ClassDescriptor) it.next()));
|
||||
}
|
||||
SmartSet create = companion.create(arrayList);
|
||||
boolean isMutable = this.j2kClassMapper.isMutable(classDescriptor);
|
||||
MemberScope unsubstitutedMemberScope = this.javaAnalogueClassesWithCustomSupertypeCache.computeIfAbsent(DescriptorUtilsKt.getFqNameSafe(javaAnalogue), new Function0<ClassDescriptor>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$getAdditionalFunctions$fakeJavaClassDescriptor$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final ClassDescriptor invoke() {
|
||||
LazyJavaClassDescriptor lazyJavaClassDescriptor = LazyJavaClassDescriptor.this;
|
||||
JavaResolverCache EMPTY = JavaResolverCache.EMPTY;
|
||||
Intrinsics.checkNotNullExpressionValue(EMPTY, "EMPTY");
|
||||
return lazyJavaClassDescriptor.copy$descriptors_jvm(EMPTY, classDescriptor2);
|
||||
}
|
||||
}).getUnsubstitutedMemberScope();
|
||||
Intrinsics.checkNotNullExpressionValue(unsubstitutedMemberScope, "getUnsubstitutedMemberScope(...)");
|
||||
Collection<? extends SimpleFunctionDescriptor> invoke = function1.invoke(unsubstitutedMemberScope);
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
for (Object obj : invoke) {
|
||||
SimpleFunctionDescriptor simpleFunctionDescriptor = (SimpleFunctionDescriptor) obj;
|
||||
if (simpleFunctionDescriptor.getKind() == CallableMemberDescriptor.Kind.DECLARATION && simpleFunctionDescriptor.getVisibility().isPublicAPI() && !KotlinBuiltIns.isDeprecated(simpleFunctionDescriptor)) {
|
||||
Collection<? extends FunctionDescriptor> overriddenDescriptors = simpleFunctionDescriptor.getOverriddenDescriptors();
|
||||
Intrinsics.checkNotNullExpressionValue(overriddenDescriptors, "getOverriddenDescriptors(...)");
|
||||
Collection<? extends FunctionDescriptor> collection = overriddenDescriptors;
|
||||
if (!(collection instanceof Collection) || !collection.isEmpty()) {
|
||||
Iterator<T> it2 = collection.iterator();
|
||||
while (it2.hasNext()) {
|
||||
DeclarationDescriptor containingDeclaration = ((FunctionDescriptor) it2.next()).getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
|
||||
if (create.contains(DescriptorUtilsKt.getFqNameSafe(containingDeclaration))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isMutabilityViolation(simpleFunctionDescriptor, isMutable)) {
|
||||
arrayList2.add(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
|
||||
private final SimpleType getCloneableType() {
|
||||
return (SimpleType) StorageKt.getValue(this.cloneableType$delegate, this, (KProperty<?>) $$delegatedProperties[1]);
|
||||
}
|
||||
|
||||
private static final boolean getConstructors$isEffectivelyTheSameAs(ConstructorDescriptor constructorDescriptor, TypeSubstitutor typeSubstitutor, ConstructorDescriptor constructorDescriptor2) {
|
||||
return OverridingUtil.getBothWaysOverridability(constructorDescriptor, constructorDescriptor2.substitute(typeSubstitutor)) == OverridingUtil.OverrideCompatibilityInfo.Result.OVERRIDABLE;
|
||||
}
|
||||
|
||||
private final LazyJavaClassDescriptor getJavaAnalogue(ClassDescriptor classDescriptor) {
|
||||
ClassId mapKotlinToJava;
|
||||
FqName asSingleFqName;
|
||||
if (KotlinBuiltIns.isAny(classDescriptor) || !KotlinBuiltIns.isUnderKotlinPackage(classDescriptor)) {
|
||||
return null;
|
||||
}
|
||||
FqNameUnsafe fqNameUnsafe = DescriptorUtilsKt.getFqNameUnsafe(classDescriptor);
|
||||
if (fqNameUnsafe.isSafe() && (mapKotlinToJava = JavaToKotlinClassMap.INSTANCE.mapKotlinToJava(fqNameUnsafe)) != null && (asSingleFqName = mapKotlinToJava.asSingleFqName()) != null) {
|
||||
ClassDescriptor resolveClassByFqName = DescriptorUtilKt.resolveClassByFqName(getSettings().getOwnerModuleDescriptor(), asSingleFqName, NoLookupLocation.FROM_BUILTINS);
|
||||
if (resolveClassByFqName instanceof LazyJavaClassDescriptor) {
|
||||
return (LazyJavaClassDescriptor) resolveClassByFqName;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final JDKMemberStatus getJdkMethodStatus(FunctionDescriptor functionDescriptor) {
|
||||
DeclarationDescriptor containingDeclaration = functionDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
final String computeJvmDescriptor$default = MethodSignatureMappingKt.computeJvmDescriptor$default(functionDescriptor, false, false, 3, null);
|
||||
final Ref.ObjectRef objectRef = new Ref.ObjectRef();
|
||||
Object dfs = DFS.dfs(CollectionsKt.listOf((ClassDescriptor) containingDeclaration), new DFS.Neighbors(this) { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$$Lambda$1
|
||||
private final JvmBuiltInsCustomizer arg$0;
|
||||
|
||||
{
|
||||
this.arg$0 = this;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
|
||||
public Iterable getNeighbors(Object obj) {
|
||||
Iterable jdkMethodStatus$lambda$9;
|
||||
jdkMethodStatus$lambda$9 = JvmBuiltInsCustomizer.getJdkMethodStatus$lambda$9(this.arg$0, (ClassDescriptor) obj);
|
||||
return jdkMethodStatus$lambda$9;
|
||||
}
|
||||
}, new DFS.AbstractNodeHandler<ClassDescriptor, JDKMemberStatus>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$getJdkMethodStatus$2
|
||||
/* JADX WARN: Type inference failed for: r0v4, types: [kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$JDKMemberStatus, T] */
|
||||
/* JADX WARN: Type inference failed for: r0v5, types: [kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$JDKMemberStatus, T] */
|
||||
/* JADX WARN: Type inference failed for: r0v6, types: [kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$JDKMemberStatus, T] */
|
||||
/* JADX WARN: Type inference failed for: r0v7, types: [kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$JDKMemberStatus, T] */
|
||||
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler, kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler
|
||||
public boolean beforeChildren(ClassDescriptor javaClassDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(javaClassDescriptor, "javaClassDescriptor");
|
||||
String signature = MethodSignatureBuildingUtilsKt.signature(SignatureBuildingComponents.INSTANCE, javaClassDescriptor, computeJvmDescriptor$default);
|
||||
JvmBuiltInsSignatures jvmBuiltInsSignatures = JvmBuiltInsSignatures.INSTANCE;
|
||||
if (jvmBuiltInsSignatures.getHIDDEN_METHOD_SIGNATURES().contains(signature)) {
|
||||
objectRef.element = JvmBuiltInsCustomizer.JDKMemberStatus.HIDDEN;
|
||||
} else if (jvmBuiltInsSignatures.getVISIBLE_METHOD_SIGNATURES().contains(signature)) {
|
||||
objectRef.element = JvmBuiltInsCustomizer.JDKMemberStatus.VISIBLE;
|
||||
} else if (jvmBuiltInsSignatures.getDEPRECATED_LIST_METHODS().contains(signature)) {
|
||||
objectRef.element = JvmBuiltInsCustomizer.JDKMemberStatus.DEPRECATED_LIST_METHODS;
|
||||
} else if (jvmBuiltInsSignatures.getDROP_LIST_METHOD_SIGNATURES().contains(signature)) {
|
||||
objectRef.element = JvmBuiltInsCustomizer.JDKMemberStatus.DROP;
|
||||
}
|
||||
return objectRef.element == null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler
|
||||
public JvmBuiltInsCustomizer.JDKMemberStatus result() {
|
||||
JvmBuiltInsCustomizer.JDKMemberStatus jDKMemberStatus = objectRef.element;
|
||||
return jDKMemberStatus == null ? JvmBuiltInsCustomizer.JDKMemberStatus.NOT_CONSIDERED : jDKMemberStatus;
|
||||
}
|
||||
});
|
||||
Intrinsics.checkNotNullExpressionValue(dfs, "dfs(...)");
|
||||
return (JDKMemberStatus) dfs;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Iterable getJdkMethodStatus$lambda$9(JvmBuiltInsCustomizer this$0, ClassDescriptor classDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(this$0, "this$0");
|
||||
Collection<KotlinType> mo1395getSupertypes = classDescriptor.getTypeConstructor().mo1395getSupertypes();
|
||||
Intrinsics.checkNotNullExpressionValue(mo1395getSupertypes, "getSupertypes(...)");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<T> it = mo1395getSupertypes.iterator();
|
||||
while (it.hasNext()) {
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = ((KotlinType) it.next()).getConstructor().mo1394getDeclarationDescriptor();
|
||||
LazyJavaClassDescriptor lazyJavaClassDescriptor = null;
|
||||
ClassifierDescriptor original = mo1394getDeclarationDescriptor != null ? mo1394getDeclarationDescriptor.getOriginal() : null;
|
||||
ClassDescriptor classDescriptor2 = original instanceof ClassDescriptor ? (ClassDescriptor) original : null;
|
||||
if (classDescriptor2 != null && (lazyJavaClassDescriptor = this$0.getJavaAnalogue(classDescriptor2)) == null) {
|
||||
lazyJavaClassDescriptor = classDescriptor2;
|
||||
}
|
||||
if (lazyJavaClassDescriptor != null) {
|
||||
arrayList.add(lazyJavaClassDescriptor);
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
private final Annotations getNotConsideredDeprecation() {
|
||||
return (Annotations) StorageKt.getValue(this.notConsideredDeprecation$delegate, this, (KProperty<?>) $$delegatedProperties[2]);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final JvmBuiltIns.Settings getSettings() {
|
||||
return (JvmBuiltIns.Settings) StorageKt.getValue(this.settings$delegate, this, (KProperty<?>) $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
private final boolean isMutabilityViolation(SimpleFunctionDescriptor simpleFunctionDescriptor, boolean z3) {
|
||||
DeclarationDescriptor containingDeclaration = simpleFunctionDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
String computeJvmDescriptor$default = MethodSignatureMappingKt.computeJvmDescriptor$default(simpleFunctionDescriptor, false, false, 3, null);
|
||||
if (z3 ^ JvmBuiltInsSignatures.INSTANCE.getMUTABLE_METHOD_SIGNATURES().contains(MethodSignatureBuildingUtilsKt.signature(SignatureBuildingComponents.INSTANCE, (ClassDescriptor) containingDeclaration, computeJvmDescriptor$default))) {
|
||||
return true;
|
||||
}
|
||||
Boolean ifAny = DFS.ifAny(CollectionsKt.listOf(simpleFunctionDescriptor), new DFS.Neighbors() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$$Lambda$0
|
||||
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
|
||||
public Iterable getNeighbors(Object obj) {
|
||||
Iterable isMutabilityViolation$lambda$7;
|
||||
isMutabilityViolation$lambda$7 = JvmBuiltInsCustomizer.isMutabilityViolation$lambda$7((CallableMemberDescriptor) obj);
|
||||
return isMutabilityViolation$lambda$7;
|
||||
}
|
||||
}, new Function1<CallableMemberDescriptor, Boolean>() { // from class: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer$isMutabilityViolation$2
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor) {
|
||||
boolean z4;
|
||||
JavaToKotlinClassMapper javaToKotlinClassMapper;
|
||||
if (callableMemberDescriptor.getKind() == CallableMemberDescriptor.Kind.DECLARATION) {
|
||||
javaToKotlinClassMapper = JvmBuiltInsCustomizer.this.j2kClassMapper;
|
||||
DeclarationDescriptor containingDeclaration2 = callableMemberDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
if (javaToKotlinClassMapper.isMutable((ClassDescriptor) containingDeclaration2)) {
|
||||
z4 = true;
|
||||
return Boolean.valueOf(z4);
|
||||
}
|
||||
}
|
||||
z4 = false;
|
||||
return Boolean.valueOf(z4);
|
||||
}
|
||||
});
|
||||
Intrinsics.checkNotNullExpressionValue(ifAny, "ifAny(...)");
|
||||
return ifAny.booleanValue();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final Iterable isMutabilityViolation$lambda$7(CallableMemberDescriptor callableMemberDescriptor) {
|
||||
return callableMemberDescriptor.getOriginal().getOverriddenDescriptors();
|
||||
}
|
||||
|
||||
private final boolean isTrivialCopyConstructorFor(ConstructorDescriptor constructorDescriptor, ClassDescriptor classDescriptor) {
|
||||
if (constructorDescriptor.getValueParameters().size() != 1) {
|
||||
return false;
|
||||
}
|
||||
List<ValueParameterDescriptor> valueParameters = constructorDescriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = ((ValueParameterDescriptor) CollectionsKt.single((List) valueParameters)).getType().getConstructor().mo1394getDeclarationDescriptor();
|
||||
return Intrinsics.areEqual(mo1394getDeclarationDescriptor != null ? DescriptorUtilsKt.getFqNameUnsafe(mo1394getDeclarationDescriptor) : null, DescriptorUtilsKt.getFqNameUnsafe(classDescriptor));
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider
|
||||
public Collection<ClassConstructorDescriptor> getConstructors(ClassDescriptor classDescriptor) {
|
||||
ClassDescriptor mapJavaToKotlin$default;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(classDescriptor, "classDescriptor");
|
||||
if (classDescriptor.getKind() != ClassKind.CLASS || !getSettings().isAdditionalBuiltInsFeatureSupported()) {
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
LazyJavaClassDescriptor javaAnalogue = getJavaAnalogue(classDescriptor);
|
||||
if (javaAnalogue != null && (mapJavaToKotlin$default = JavaToKotlinClassMapper.mapJavaToKotlin$default(this.j2kClassMapper, DescriptorUtilsKt.getFqNameSafe(javaAnalogue), FallbackBuiltIns.Companion.getInstance(), null, 4, null)) != null) {
|
||||
TypeSubstitutor buildSubstitutor = MappingUtilKt.createMappedTypeParametersSubstitution(mapJavaToKotlin$default, javaAnalogue).buildSubstitutor();
|
||||
List<ClassConstructorDescriptor> constructors = javaAnalogue.getConstructors();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : constructors) {
|
||||
ClassConstructorDescriptor classConstructorDescriptor = (ClassConstructorDescriptor) obj;
|
||||
if (classConstructorDescriptor.getVisibility().isPublicAPI()) {
|
||||
Collection<ClassConstructorDescriptor> constructors2 = mapJavaToKotlin$default.getConstructors();
|
||||
Intrinsics.checkNotNullExpressionValue(constructors2, "getConstructors(...)");
|
||||
Collection<ClassConstructorDescriptor> collection = constructors2;
|
||||
if (!(collection instanceof Collection) || !collection.isEmpty()) {
|
||||
for (ClassConstructorDescriptor classConstructorDescriptor2 : collection) {
|
||||
Intrinsics.checkNotNull(classConstructorDescriptor2);
|
||||
if (getConstructors$isEffectivelyTheSameAs(classConstructorDescriptor2, buildSubstitutor, classConstructorDescriptor)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isTrivialCopyConstructorFor(classConstructorDescriptor, classDescriptor) && !KotlinBuiltIns.isDeprecated(classConstructorDescriptor) && !JvmBuiltInsSignatures.INSTANCE.getHIDDEN_CONSTRUCTOR_SIGNATURES().contains(MethodSignatureBuildingUtilsKt.signature(SignatureBuildingComponents.INSTANCE, javaAnalogue, MethodSignatureMappingKt.computeJvmDescriptor$default(classConstructorDescriptor, false, false, 3, null)))) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
ClassConstructorDescriptor classConstructorDescriptor3 = (ClassConstructorDescriptor) it.next();
|
||||
FunctionDescriptor.CopyBuilder<? extends FunctionDescriptor> newCopyBuilder = classConstructorDescriptor3.newCopyBuilder();
|
||||
newCopyBuilder.setOwner(classDescriptor);
|
||||
newCopyBuilder.setReturnType(classDescriptor.getDefaultType());
|
||||
newCopyBuilder.setPreserveSourceElement();
|
||||
newCopyBuilder.setSubstitution(buildSubstitutor.getSubstitution());
|
||||
if (!JvmBuiltInsSignatures.INSTANCE.getVISIBLE_CONSTRUCTOR_SIGNATURES().contains(MethodSignatureBuildingUtilsKt.signature(SignatureBuildingComponents.INSTANCE, javaAnalogue, MethodSignatureMappingKt.computeJvmDescriptor$default(classConstructorDescriptor3, false, false, 3, null)))) {
|
||||
newCopyBuilder.setAdditionalAnnotations(getNotConsideredDeprecation());
|
||||
}
|
||||
FunctionDescriptor build = newCopyBuilder.build();
|
||||
Intrinsics.checkNotNull(build, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor");
|
||||
arrayList2.add((ClassConstructorDescriptor) build);
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:38:0x010a, code lost:
|
||||
|
||||
if (r3 != 4) goto L52;
|
||||
*/
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.util.Collection<kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor> getFunctions(final kotlin.reflect.jvm.internal.impl.name.Name r7, kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r8) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 407
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsCustomizer.getFunctions(kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor):java.util.Collection");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider
|
||||
public Collection<KotlinType> getSupertypes(ClassDescriptor classDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(classDescriptor, "classDescriptor");
|
||||
FqNameUnsafe fqNameUnsafe = DescriptorUtilsKt.getFqNameUnsafe(classDescriptor);
|
||||
JvmBuiltInsSignatures jvmBuiltInsSignatures = JvmBuiltInsSignatures.INSTANCE;
|
||||
if (!jvmBuiltInsSignatures.isArrayOrPrimitiveArray(fqNameUnsafe)) {
|
||||
return jvmBuiltInsSignatures.isSerializableInJava(fqNameUnsafe) ? CollectionsKt.listOf(this.mockSerializableType) : CollectionsKt.emptyList();
|
||||
}
|
||||
SimpleType cloneableType = getCloneableType();
|
||||
Intrinsics.checkNotNullExpressionValue(cloneableType, "<get-cloneableType>(...)");
|
||||
return CollectionsKt.listOf((Object[]) new KotlinType[]{cloneableType, this.mockSerializableType});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter
|
||||
public boolean isFunctionAvailable(ClassDescriptor classDescriptor, SimpleFunctionDescriptor functionDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(classDescriptor, "classDescriptor");
|
||||
Intrinsics.checkNotNullParameter(functionDescriptor, "functionDescriptor");
|
||||
LazyJavaClassDescriptor javaAnalogue = getJavaAnalogue(classDescriptor);
|
||||
if (javaAnalogue == null || !functionDescriptor.getAnnotations().hasAnnotation(PlatformDependentDeclarationFilterKt.getPLATFORM_DEPENDENT_ANNOTATION_FQ_NAME())) {
|
||||
return true;
|
||||
}
|
||||
if (!getSettings().isAdditionalBuiltInsFeatureSupported()) {
|
||||
return false;
|
||||
}
|
||||
String computeJvmDescriptor$default = MethodSignatureMappingKt.computeJvmDescriptor$default(functionDescriptor, false, false, 3, null);
|
||||
LazyJavaClassMemberScope unsubstitutedMemberScope = javaAnalogue.getUnsubstitutedMemberScope();
|
||||
Name name = functionDescriptor.getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
Collection<SimpleFunctionDescriptor> contributedFunctions = unsubstitutedMemberScope.getContributedFunctions(name, NoLookupLocation.FROM_BUILTINS);
|
||||
if ((contributedFunctions instanceof Collection) && contributedFunctions.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
Iterator<T> it = contributedFunctions.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (Intrinsics.areEqual(MethodSignatureMappingKt.computeJvmDescriptor$default((SimpleFunctionDescriptor) it.next(), false, false, 3, null), computeJvmDescriptor$default)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider
|
||||
public Set<Name> getFunctionsNames(ClassDescriptor classDescriptor) {
|
||||
LazyJavaClassMemberScope unsubstitutedMemberScope;
|
||||
Set<Name> functionNames;
|
||||
Intrinsics.checkNotNullParameter(classDescriptor, "classDescriptor");
|
||||
if (!getSettings().isAdditionalBuiltInsFeatureSupported()) {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
LazyJavaClassDescriptor javaAnalogue = getJavaAnalogue(classDescriptor);
|
||||
return (javaAnalogue == null || (unsubstitutedMemberScope = javaAnalogue.getUnsubstitutedMemberScope()) == null || (functionNames = unsubstitutedMemberScope.getFunctionNames()) == null) ? SetsKt.emptySet() : functionNames;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltInsCustomizerKt {
|
||||
private static final Name GET_FIRST_LIST_NAME;
|
||||
private static final Name GET_LAST_LIST_NAME;
|
||||
|
||||
static {
|
||||
Name identifier = Name.identifier("getFirst");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
GET_FIRST_LIST_NAME = identifier;
|
||||
Name identifier2 = Name.identifier("getLast");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
|
||||
GET_LAST_LIST_NAME = identifier2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.io.InputStream;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.functions.BuiltInFictitiousFunctionClassFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.LookupTracker;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinClassFinder;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.sam.SamConversionResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.AbstractDeserializedPackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoaderImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ContractDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedClassDataFinder;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragment;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ErrorReporter;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.FlexibleTypeDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.JvmEnumEntriesDeserializationSupport;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.LocalClassifierTypeSettings;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInSerializerProtocol;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsPackageFragmentImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.NewKotlinTypeChecker;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltInsPackageFragmentProvider extends AbstractDeserializedPackageFragmentProvider {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public JvmBuiltInsPackageFragmentProvider(StorageManager storageManager, KotlinClassFinder finder, ModuleDescriptor moduleDescriptor, NotFoundClasses notFoundClasses, AdditionalClassPartsProvider additionalClassPartsProvider, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, DeserializationConfiguration deserializationConfiguration, NewKotlinTypeChecker kotlinTypeChecker, SamConversionResolver samConversionResolver) {
|
||||
super(storageManager, finder, moduleDescriptor);
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(finder, "finder");
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
Intrinsics.checkNotNullParameter(notFoundClasses, "notFoundClasses");
|
||||
Intrinsics.checkNotNullParameter(additionalClassPartsProvider, "additionalClassPartsProvider");
|
||||
Intrinsics.checkNotNullParameter(platformDependentDeclarationFilter, "platformDependentDeclarationFilter");
|
||||
Intrinsics.checkNotNullParameter(deserializationConfiguration, "deserializationConfiguration");
|
||||
Intrinsics.checkNotNullParameter(kotlinTypeChecker, "kotlinTypeChecker");
|
||||
Intrinsics.checkNotNullParameter(samConversionResolver, "samConversionResolver");
|
||||
DeserializedClassDataFinder deserializedClassDataFinder = new DeserializedClassDataFinder(this);
|
||||
BuiltInSerializerProtocol builtInSerializerProtocol = BuiltInSerializerProtocol.INSTANCE;
|
||||
AnnotationAndConstantLoaderImpl annotationAndConstantLoaderImpl = new AnnotationAndConstantLoaderImpl(moduleDescriptor, notFoundClasses, builtInSerializerProtocol);
|
||||
LocalClassifierTypeSettings.Default r7 = LocalClassifierTypeSettings.Default.INSTANCE;
|
||||
ErrorReporter DO_NOTHING = ErrorReporter.DO_NOTHING;
|
||||
Intrinsics.checkNotNullExpressionValue(DO_NOTHING, "DO_NOTHING");
|
||||
setComponents(new DeserializationComponents(storageManager, moduleDescriptor, deserializationConfiguration, deserializedClassDataFinder, annotationAndConstantLoaderImpl, this, r7, DO_NOTHING, LookupTracker.DO_NOTHING.INSTANCE, FlexibleTypeDeserializer.ThrowException.INSTANCE, CollectionsKt.listOf((Object[]) new ClassDescriptorFactory[]{new BuiltInFictitiousFunctionClassFactory(storageManager, moduleDescriptor), new JvmBuiltInClassDescriptorFactory(storageManager, moduleDescriptor, null, 4, null)}), notFoundClasses, ContractDeserializer.Companion.getDEFAULT(), additionalClassPartsProvider, platformDependentDeclarationFilter, builtInSerializerProtocol.getExtensionRegistry(), kotlinTypeChecker, samConversionResolver, null, JvmEnumEntriesDeserializationSupport.INSTANCE, 262144, null));
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AbstractDeserializedPackageFragmentProvider
|
||||
public DeserializedPackageFragment findPackage(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
InputStream findBuiltInsData = getFinder().findBuiltInsData(fqName);
|
||||
if (findBuiltInsData != null) {
|
||||
return BuiltInsPackageFragmentImpl.Companion.create(fqName, getStorageManager(), getModuleDescriptor(), findBuiltInsData, false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.load.kotlin.SignatureBuildingComponents;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nJvmBuiltInsSignatures.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JvmBuiltInsSignatures.kt\norg/jetbrains/kotlin/builtins/jvm/JvmBuiltInsSignatures\n+ 2 SignatureBuildingComponents.kt\norg/jetbrains/kotlin/load/kotlin/SignatureBuildingComponentsKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,204:1\n13#2:205\n13#2:211\n13#2:217\n13#2:218\n13#2:219\n13#2:220\n13#2:221\n13#2:222\n1446#3,5:206\n1446#3,5:212\n*S KotlinDebug\n*F\n+ 1 JvmBuiltInsSignatures.kt\norg/jetbrains/kotlin/builtins/jvm/JvmBuiltInsSignatures\n*L\n64#1:205\n177#1:211\n23#1:217\n71#1:218\n80#1:219\n136#1:220\n155#1:221\n172#1:222\n65#1:206,5\n181#1:212,5\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmBuiltInsSignatures {
|
||||
private static final Set<String> DEPRECATED_LIST_METHODS;
|
||||
private static final Set<String> DROP_LIST_METHOD_SIGNATURES;
|
||||
private static final Set<String> HIDDEN_CONSTRUCTOR_SIGNATURES;
|
||||
private static final Set<String> HIDDEN_METHOD_SIGNATURES;
|
||||
public static final JvmBuiltInsSignatures INSTANCE;
|
||||
private static final Set<String> MUTABLE_METHOD_SIGNATURES;
|
||||
private static final Set<String> VISIBLE_CONSTRUCTOR_SIGNATURES;
|
||||
private static final Set<String> VISIBLE_METHOD_SIGNATURES;
|
||||
|
||||
static {
|
||||
JvmBuiltInsSignatures jvmBuiltInsSignatures = new JvmBuiltInsSignatures();
|
||||
INSTANCE = jvmBuiltInsSignatures;
|
||||
SignatureBuildingComponents signatureBuildingComponents = SignatureBuildingComponents.INSTANCE;
|
||||
DROP_LIST_METHOD_SIGNATURES = SetsKt.plus(signatureBuildingComponents.inJavaUtil("Collection", "toArray()[Ljava/lang/Object;", "toArray([Ljava/lang/Object;)[Ljava/lang/Object;"), "java/lang/annotation/Annotation.annotationType()Ljava/lang/Class;");
|
||||
HIDDEN_METHOD_SIGNATURES = SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus((Set) jvmBuiltInsSignatures.buildPrimitiveValueMethodsSet(), (Iterable) signatureBuildingComponents.inJavaUtil("List", "sort(Ljava/util/Comparator;)V", "reversed()Ljava/util/List;")), (Iterable) signatureBuildingComponents.inJavaLang("String", "codePointAt(I)I", "codePointBefore(I)I", "codePointCount(II)I", "compareToIgnoreCase(Ljava/lang/String;)I", "concat(Ljava/lang/String;)Ljava/lang/String;", "contains(Ljava/lang/CharSequence;)Z", "contentEquals(Ljava/lang/CharSequence;)Z", "contentEquals(Ljava/lang/StringBuffer;)Z", "endsWith(Ljava/lang/String;)Z", "equalsIgnoreCase(Ljava/lang/String;)Z", "getBytes()[B", "getBytes(II[BI)V", "getBytes(Ljava/lang/String;)[B", "getBytes(Ljava/nio/charset/Charset;)[B", "getChars(II[CI)V", "indexOf(I)I", "indexOf(II)I", "indexOf(Ljava/lang/String;)I", "indexOf(Ljava/lang/String;I)I", "intern()Ljava/lang/String;", "isEmpty()Z", "lastIndexOf(I)I", "lastIndexOf(II)I", "lastIndexOf(Ljava/lang/String;)I", "lastIndexOf(Ljava/lang/String;I)I", "matches(Ljava/lang/String;)Z", "offsetByCodePoints(II)I", "regionMatches(ILjava/lang/String;II)Z", "regionMatches(ZILjava/lang/String;II)Z", "replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "replace(CC)Ljava/lang/String;", "replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;", "split(Ljava/lang/String;I)[Ljava/lang/String;", "split(Ljava/lang/String;)[Ljava/lang/String;", "startsWith(Ljava/lang/String;I)Z", "startsWith(Ljava/lang/String;)Z", "substring(II)Ljava/lang/String;", "substring(I)Ljava/lang/String;", "toCharArray()[C", "toLowerCase()Ljava/lang/String;", "toLowerCase(Ljava/util/Locale;)Ljava/lang/String;", "toUpperCase()Ljava/lang/String;", "toUpperCase(Ljava/util/Locale;)Ljava/lang/String;", "trim()Ljava/lang/String;", "isBlank()Z", "lines()Ljava/util/stream/Stream;", "repeat(I)Ljava/lang/String;")), (Iterable) signatureBuildingComponents.inJavaLang("Double", "isInfinite()Z", "isNaN()Z")), (Iterable) signatureBuildingComponents.inJavaLang("Float", "isInfinite()Z", "isNaN()Z")), (Iterable) signatureBuildingComponents.inJavaLang("Enum", "getDeclaringClass()Ljava/lang/Class;", "finalize()V")), (Iterable) signatureBuildingComponents.inJavaLang("CharSequence", "isEmpty()Z"));
|
||||
DEPRECATED_LIST_METHODS = signatureBuildingComponents.inJavaUtil("List", "getFirst()Ljava/lang/Object;", "getLast()Ljava/lang/Object;");
|
||||
VISIBLE_METHOD_SIGNATURES = SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus(SetsKt.plus((Set) signatureBuildingComponents.inJavaLang("CharSequence", "codePoints()Ljava/util/stream/IntStream;", "chars()Ljava/util/stream/IntStream;"), (Iterable) signatureBuildingComponents.inJavaUtil("Iterator", "forEachRemaining(Ljava/util/function/Consumer;)V")), (Iterable) signatureBuildingComponents.inJavaLang("Iterable", "forEach(Ljava/util/function/Consumer;)V", "spliterator()Ljava/util/Spliterator;")), (Iterable) signatureBuildingComponents.inJavaLang("Throwable", "setStackTrace([Ljava/lang/StackTraceElement;)V", "fillInStackTrace()Ljava/lang/Throwable;", "getLocalizedMessage()Ljava/lang/String;", "printStackTrace()V", "printStackTrace(Ljava/io/PrintStream;)V", "printStackTrace(Ljava/io/PrintWriter;)V", "getStackTrace()[Ljava/lang/StackTraceElement;", "initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;", "getSuppressed()[Ljava/lang/Throwable;", "addSuppressed(Ljava/lang/Throwable;)V")), (Iterable) signatureBuildingComponents.inJavaUtil("Collection", "spliterator()Ljava/util/Spliterator;", "parallelStream()Ljava/util/stream/Stream;", "stream()Ljava/util/stream/Stream;", "removeIf(Ljava/util/function/Predicate;)Z")), (Iterable) signatureBuildingComponents.inJavaUtil("List", "replaceAll(Ljava/util/function/UnaryOperator;)V", "addFirst(Ljava/lang/Object;)V", "addLast(Ljava/lang/Object;)V", "removeFirst()Ljava/lang/Object;", "removeLast()Ljava/lang/Object;")), (Iterable) signatureBuildingComponents.inJavaUtil("Map", "getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "forEach(Ljava/util/function/BiConsumer;)V", "replaceAll(Ljava/util/function/BiFunction;)V", "merge(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "computeIfPresent(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "replace(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z", "replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;", "compute(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;"));
|
||||
MUTABLE_METHOD_SIGNATURES = SetsKt.plus(SetsKt.plus((Set) signatureBuildingComponents.inJavaUtil("Collection", "removeIf(Ljava/util/function/Predicate;)Z"), (Iterable) signatureBuildingComponents.inJavaUtil("List", "replaceAll(Ljava/util/function/UnaryOperator;)V", "sort(Ljava/util/Comparator;)V")), (Iterable) signatureBuildingComponents.inJavaUtil("Map", "computeIfAbsent(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;", "computeIfPresent(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "compute(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "merge(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "remove(Ljava/lang/Object;Ljava/lang/Object;)Z", "replaceAll(Ljava/util/function/BiFunction;)V", "replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "replace(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z"));
|
||||
Set<String> buildPrimitiveStringConstructorsSet = jvmBuiltInsSignatures.buildPrimitiveStringConstructorsSet();
|
||||
String[] constructors = signatureBuildingComponents.constructors("D");
|
||||
Set plus = SetsKt.plus((Set) buildPrimitiveStringConstructorsSet, (Iterable) signatureBuildingComponents.inJavaLang("Float", (String[]) Arrays.copyOf(constructors, constructors.length)));
|
||||
String[] constructors2 = signatureBuildingComponents.constructors("[C", "[CII", "[III", "[BIILjava/lang/String;", "[BIILjava/nio/charset/Charset;", "[BLjava/lang/String;", "[BLjava/nio/charset/Charset;", "[BII", "[B", "Ljava/lang/StringBuffer;", "Ljava/lang/StringBuilder;");
|
||||
HIDDEN_CONSTRUCTOR_SIGNATURES = SetsKt.plus(plus, (Iterable) signatureBuildingComponents.inJavaLang("String", (String[]) Arrays.copyOf(constructors2, constructors2.length)));
|
||||
String[] constructors3 = signatureBuildingComponents.constructors("Ljava/lang/String;Ljava/lang/Throwable;ZZ");
|
||||
VISIBLE_CONSTRUCTOR_SIGNATURES = signatureBuildingComponents.inJavaLang("Throwable", (String[]) Arrays.copyOf(constructors3, constructors3.length));
|
||||
}
|
||||
|
||||
private JvmBuiltInsSignatures() {
|
||||
}
|
||||
|
||||
private final Set<String> buildPrimitiveStringConstructorsSet() {
|
||||
SignatureBuildingComponents signatureBuildingComponents = SignatureBuildingComponents.INSTANCE;
|
||||
JvmPrimitiveType jvmPrimitiveType = JvmPrimitiveType.BOOLEAN;
|
||||
JvmPrimitiveType jvmPrimitiveType2 = JvmPrimitiveType.BYTE;
|
||||
List listOf = CollectionsKt.listOf((Object[]) new JvmPrimitiveType[]{jvmPrimitiveType, jvmPrimitiveType2, JvmPrimitiveType.DOUBLE, JvmPrimitiveType.FLOAT, jvmPrimitiveType2, JvmPrimitiveType.INT, JvmPrimitiveType.LONG, JvmPrimitiveType.SHORT});
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
||||
Iterator it = listOf.iterator();
|
||||
while (it.hasNext()) {
|
||||
String asString = ((JvmPrimitiveType) it.next()).getWrapperFqName().shortName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
String[] constructors = signatureBuildingComponents.constructors("Ljava/lang/String;");
|
||||
CollectionsKt__MutableCollectionsKt.addAll(linkedHashSet, signatureBuildingComponents.inJavaLang(asString, (String[]) Arrays.copyOf(constructors, constructors.length)));
|
||||
}
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
private final Set<String> buildPrimitiveValueMethodsSet() {
|
||||
SignatureBuildingComponents signatureBuildingComponents = SignatureBuildingComponents.INSTANCE;
|
||||
List<JvmPrimitiveType> listOf = CollectionsKt.listOf((Object[]) new JvmPrimitiveType[]{JvmPrimitiveType.BOOLEAN, JvmPrimitiveType.CHAR});
|
||||
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
||||
for (JvmPrimitiveType jvmPrimitiveType : listOf) {
|
||||
String asString = jvmPrimitiveType.getWrapperFqName().shortName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
CollectionsKt__MutableCollectionsKt.addAll(linkedHashSet, signatureBuildingComponents.inJavaLang(asString, jvmPrimitiveType.getJavaKeywordName() + "Value()" + jvmPrimitiveType.getDesc()));
|
||||
}
|
||||
return linkedHashSet;
|
||||
}
|
||||
|
||||
public final Set<String> getDEPRECATED_LIST_METHODS() {
|
||||
return DEPRECATED_LIST_METHODS;
|
||||
}
|
||||
|
||||
public final Set<String> getDROP_LIST_METHOD_SIGNATURES() {
|
||||
return DROP_LIST_METHOD_SIGNATURES;
|
||||
}
|
||||
|
||||
public final Set<String> getHIDDEN_CONSTRUCTOR_SIGNATURES() {
|
||||
return HIDDEN_CONSTRUCTOR_SIGNATURES;
|
||||
}
|
||||
|
||||
public final Set<String> getHIDDEN_METHOD_SIGNATURES() {
|
||||
return HIDDEN_METHOD_SIGNATURES;
|
||||
}
|
||||
|
||||
public final Set<String> getMUTABLE_METHOD_SIGNATURES() {
|
||||
return MUTABLE_METHOD_SIGNATURES;
|
||||
}
|
||||
|
||||
public final Set<String> getVISIBLE_CONSTRUCTOR_SIGNATURES() {
|
||||
return VISIBLE_CONSTRUCTOR_SIGNATURES;
|
||||
}
|
||||
|
||||
public final Set<String> getVISIBLE_METHOD_SIGNATURES() {
|
||||
return VISIBLE_METHOD_SIGNATURES;
|
||||
}
|
||||
|
||||
public final boolean isArrayOrPrimitiveArray(FqNameUnsafe fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
return Intrinsics.areEqual(fqName, StandardNames.FqNames.array) || StandardNames.isPrimitiveArray(fqName);
|
||||
}
|
||||
|
||||
public final boolean isSerializableInJava(FqNameUnsafe fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
if (isArrayOrPrimitiveArray(fqName)) {
|
||||
return true;
|
||||
}
|
||||
ClassId mapKotlinToJava = JavaToKotlinClassMap.INSTANCE.mapKotlinToJava(fqName);
|
||||
if (mapKotlinToJava == null) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
return Serializable.class.isAssignableFrom(Class.forName(mapKotlinToJava.asSingleFqName().asString()));
|
||||
} catch (ClassNotFoundException unused) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package kotlin.reflect.jvm.internal.impl.builtins.jvm;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructorSubstitution;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nmappingUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 mappingUtil.kt\norg/jetbrains/kotlin/builtins/jvm/MappingUtilKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,24:1\n1549#2:25\n1620#2,3:26\n1549#2:29\n1620#2,3:30\n*S KotlinDebug\n*F\n+ 1 mappingUtil.kt\norg/jetbrains/kotlin/builtins/jvm/MappingUtilKt\n*L\n20#1:25\n20#1:26,3\n21#1:29\n21#1:30,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class MappingUtilKt {
|
||||
public static final TypeConstructorSubstitution createMappedTypeParametersSubstitution(ClassDescriptor from, ClassDescriptor to) {
|
||||
int collectionSizeOrDefault;
|
||||
int collectionSizeOrDefault2;
|
||||
Intrinsics.checkNotNullParameter(from, "from");
|
||||
Intrinsics.checkNotNullParameter(to, "to");
|
||||
from.getDeclaredTypeParameters().size();
|
||||
to.getDeclaredTypeParameters().size();
|
||||
TypeConstructorSubstitution.Companion companion = TypeConstructorSubstitution.Companion;
|
||||
List<TypeParameterDescriptor> declaredTypeParameters = from.getDeclaredTypeParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(declaredTypeParameters, "getDeclaredTypeParameters(...)");
|
||||
List<TypeParameterDescriptor> list = declaredTypeParameters;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((TypeParameterDescriptor) it.next()).getTypeConstructor());
|
||||
}
|
||||
List<TypeParameterDescriptor> declaredTypeParameters2 = to.getDeclaredTypeParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(declaredTypeParameters2, "getDeclaredTypeParameters(...)");
|
||||
List<TypeParameterDescriptor> list2 = declaredTypeParameters2;
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
Iterator<T> it2 = list2.iterator();
|
||||
while (it2.hasNext()) {
|
||||
SimpleType defaultType = ((TypeParameterDescriptor) it2.next()).getDefaultType();
|
||||
Intrinsics.checkNotNullExpressionValue(defaultType, "getDefaultType(...)");
|
||||
arrayList2.add(TypeUtilsKt.asTypeProjection(defaultType));
|
||||
}
|
||||
return TypeConstructorSubstitution.Companion.createByConstructorsMap$default(companion, MapsKt.toMap(CollectionsKt.zip(arrayList, arrayList2)), false, 2, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package kotlin.reflect.jvm.internal.impl.descriptors;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface CallableDescriptor extends DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, Substitutable<CallableDescriptor> {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface UserDataKey<V> {
|
||||
}
|
||||
|
||||
List<ReceiverParameterDescriptor> getContextReceiverParameters();
|
||||
|
||||
ReceiverParameterDescriptor getDispatchReceiverParameter();
|
||||
|
||||
ReceiverParameterDescriptor getExtensionReceiverParameter();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
CallableDescriptor getOriginal();
|
||||
|
||||
Collection<? extends CallableDescriptor> getOverriddenDescriptors();
|
||||
|
||||
KotlinType getReturnType();
|
||||
|
||||
List<TypeParameterDescriptor> getTypeParameters();
|
||||
|
||||
<V> V getUserData(UserDataKey<V> userDataKey);
|
||||
|
||||
List<ValueParameterDescriptor> getValueParameters();
|
||||
|
||||
boolean hasSynthesizedParameterNames();
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kotlin.reflect.jvm.internal.impl.descriptors;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface CallableMemberDescriptor extends CallableDescriptor, MemberDescriptor {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public enum Kind {
|
||||
DECLARATION,
|
||||
FAKE_OVERRIDE,
|
||||
DELEGATION,
|
||||
SYNTHESIZED;
|
||||
|
||||
public boolean isReal() {
|
||||
return this != FAKE_OVERRIDE;
|
||||
}
|
||||
}
|
||||
|
||||
CallableMemberDescriptor copy(DeclarationDescriptor declarationDescriptor, Modality modality, DescriptorVisibility descriptorVisibility, Kind kind, boolean z3);
|
||||
|
||||
Kind getKind();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
CallableMemberDescriptor getOriginal();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor
|
||||
Collection<? extends CallableMemberDescriptor> getOverriddenDescriptors();
|
||||
|
||||
void setOverriddenDescriptors(Collection<? extends CallableMemberDescriptor> collection);
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package kotlin.reflect.jvm.internal.impl.descriptors;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class CapturedTypeParameterDescriptor implements TypeParameterDescriptor {
|
||||
private final DeclarationDescriptor declarationDescriptor;
|
||||
private final int declaredTypeParametersCount;
|
||||
private final TypeParameterDescriptor originalDescriptor;
|
||||
|
||||
public CapturedTypeParameterDescriptor(TypeParameterDescriptor originalDescriptor, DeclarationDescriptor declarationDescriptor, int i) {
|
||||
Intrinsics.checkNotNullParameter(originalDescriptor, "originalDescriptor");
|
||||
Intrinsics.checkNotNullParameter(declarationDescriptor, "declarationDescriptor");
|
||||
this.originalDescriptor = originalDescriptor;
|
||||
this.declarationDescriptor = declarationDescriptor;
|
||||
this.declaredTypeParametersCount = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
public <R, D> R accept(DeclarationDescriptorVisitor<R, D> declarationDescriptorVisitor, D d4) {
|
||||
return (R) this.originalDescriptor.accept(declarationDescriptorVisitor, d4);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotated
|
||||
public Annotations getAnnotations() {
|
||||
return this.originalDescriptor.getAnnotations();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorNonRoot, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
public DeclarationDescriptor getContainingDeclaration() {
|
||||
return this.declarationDescriptor;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor
|
||||
public SimpleType getDefaultType() {
|
||||
return this.originalDescriptor.getDefaultType();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public int getIndex() {
|
||||
return this.originalDescriptor.getIndex() + this.declaredTypeParametersCount;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.Named
|
||||
public Name getName() {
|
||||
return this.originalDescriptor.getName();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithSource
|
||||
public SourceElement getSource() {
|
||||
return this.originalDescriptor.getSource();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public StorageManager getStorageManager() {
|
||||
return this.originalDescriptor.getStorageManager();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor
|
||||
public TypeConstructor getTypeConstructor() {
|
||||
return this.originalDescriptor.getTypeConstructor();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public List<KotlinType> getUpperBounds() {
|
||||
return this.originalDescriptor.getUpperBounds();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public Variance getVariance() {
|
||||
return this.originalDescriptor.getVariance();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public boolean isCapturedFromOuterDeclaration() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor
|
||||
public boolean isReified() {
|
||||
return this.originalDescriptor.isReified();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.originalDescriptor + "[inner-copy]";
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
public TypeParameterDescriptor getOriginal() {
|
||||
TypeParameterDescriptor original = this.originalDescriptor.getOriginal();
|
||||
Intrinsics.checkNotNullExpressionValue(original, "getOriginal(...)");
|
||||
return original;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package kotlin.reflect.jvm.internal.impl.descriptors;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ClassConstructorDescriptor extends ConstructorDescriptor {
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
ClassConstructorDescriptor getOriginal();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.Substitutable
|
||||
ClassConstructorDescriptor substitute(TypeSubstitutor typeSubstitutor);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package kotlin.reflect.jvm.internal.impl.descriptors;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitution;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ClassDescriptor extends ClassOrPackageFragmentDescriptor, ClassifierDescriptorWithTypeParameters {
|
||||
/* renamed from: getCompanionObjectDescriptor */
|
||||
ClassDescriptor mo1387getCompanionObjectDescriptor();
|
||||
|
||||
Collection<ClassConstructorDescriptor> getConstructors();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorNonRoot, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
DeclarationDescriptor getContainingDeclaration();
|
||||
|
||||
List<ReceiverParameterDescriptor> getContextReceivers();
|
||||
|
||||
List<TypeParameterDescriptor> getDeclaredTypeParameters();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor
|
||||
SimpleType getDefaultType();
|
||||
|
||||
ClassKind getKind();
|
||||
|
||||
MemberScope getMemberScope(TypeSubstitution typeSubstitution);
|
||||
|
||||
Modality getModality();
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor
|
||||
ClassDescriptor getOriginal();
|
||||
|
||||
Collection<ClassDescriptor> getSealedSubclasses();
|
||||
|
||||
MemberScope getStaticScope();
|
||||
|
||||
ReceiverParameterDescriptor getThisAsReceiverParameter();
|
||||
|
||||
MemberScope getUnsubstitutedInnerClassesScope();
|
||||
|
||||
MemberScope getUnsubstitutedMemberScope();
|
||||
|
||||
/* renamed from: getUnsubstitutedPrimaryConstructor */
|
||||
ClassConstructorDescriptor mo1388getUnsubstitutedPrimaryConstructor();
|
||||
|
||||
ValueClassRepresentation<SimpleType> getValueClassRepresentation();
|
||||
|
||||
DescriptorVisibility getVisibility();
|
||||
|
||||
boolean isCompanionObject();
|
||||
|
||||
boolean isData();
|
||||
|
||||
boolean isFun();
|
||||
|
||||
boolean isInline();
|
||||
|
||||
boolean isValue();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user