CrackMe.apk
Download file
package kotlin.reflect.jvm.internal.impl.descriptors;
import androidx.autofill.HintConstants;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import kotlin.collections.CollectionsKt;
import kotlin.collections.IntIterator;
import kotlin.collections.SetsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.ranges.RangesKt;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassDescriptorBase;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.TypeParameterDescriptorImpl;
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.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
import kotlin.reflect.jvm.internal.impl.storage.MemoizedFunctionToNotNull;
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
import kotlin.reflect.jvm.internal.impl.types.ClassTypeConstructorImpl;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
/* compiled from: NotFoundClasses.kt */
public final class NotFoundClasses {
private final MemoizedFunctionToNotNull<ClassRequest, ClassDescriptor> classes;
/* access modifiers changed from: private */
public final ModuleDescriptor module;
/* access modifiers changed from: private */
public final MemoizedFunctionToNotNull<FqName, PackageFragmentDescriptor> packageFragments;
/* access modifiers changed from: private */
public final StorageManager storageManager;
public NotFoundClasses(StorageManager storageManager2, ModuleDescriptor moduleDescriptor) {
Intrinsics.checkNotNullParameter(storageManager2, "storageManager");
Intrinsics.checkNotNullParameter(moduleDescriptor, "module");
this.storageManager = storageManager2;
this.module = moduleDescriptor;
this.packageFragments = storageManager2.createMemoizedFunction(new NotFoundClasses$packageFragments$1(this));
this.classes = storageManager2.createMemoizedFunction(new NotFoundClasses$classes$1(this));
}
/* compiled from: NotFoundClasses.kt */
private static final class ClassRequest {
private final ClassId classId;
private final List<Integer> typeParametersCount;
public final ClassId component1() {
return this.classId;
}
public final List<Integer> component2() {
return this.typeParametersCount;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ClassRequest)) {
return false;
}
ClassRequest classRequest = (ClassRequest) obj;
return Intrinsics.areEqual((Object) this.classId, (Object) classRequest.classId) && Intrinsics.areEqual((Object) this.typeParametersCount, (Object) classRequest.typeParametersCount);
}
public int hashCode() {
return (this.classId.hashCode() * 31) + this.typeParametersCount.hashCode();
}
public String toString() {
return "ClassRequest(classId=" + this.classId + ", typeParametersCount=" + this.typeParametersCount + ')';
}
public ClassRequest(ClassId classId2, List<Integer> list) {
Intrinsics.checkNotNullParameter(classId2, "classId");
Intrinsics.checkNotNullParameter(list, "typeParametersCount");
this.classId = classId2;
this.typeParametersCount = list;
}
}
/* compiled from: NotFoundClasses.kt */
public static final class MockClassDescriptor extends ClassDescriptorBase {
private final List<TypeParameterDescriptor> declaredTypeParameters;
private final boolean isInner;
private final ClassTypeConstructorImpl typeConstructor;
public ClassDescriptor getCompanionObjectDescriptor() {
return null;
}
public InlineClassRepresentation<SimpleType> getInlineClassRepresentation() {
return null;
}
public ClassConstructorDescriptor getUnsubstitutedPrimaryConstructor() {
return null;
}
public boolean isActual() {
return false;
}
public boolean isCompanionObject() {
return false;
}
public boolean isData() {
return false;
}
public boolean isExpect() {
return false;
}
public boolean isExternal() {
return false;
}
public boolean isFun() {
return false;
}
public boolean isInline() {
return false;
}
public boolean isValue() {
return false;
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public MockClassDescriptor(StorageManager storageManager, DeclarationDescriptor declarationDescriptor, Name name, boolean z, int i) {
super(storageManager, declarationDescriptor, name, SourceElement.NO_SOURCE, false);
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
Intrinsics.checkNotNullParameter(declarationDescriptor, TtmlNode.RUBY_CONTAINER);
Intrinsics.checkNotNullParameter(name, HintConstants.AUTOFILL_HINT_NAME);
this.isInner = z;
Iterable until = RangesKt.until(0, i);
Collection arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(until, 10));
Iterator it = until.iterator();
while (it.hasNext()) {
int nextInt = ((IntIterator) it).nextInt();
arrayList.add(TypeParameterDescriptorImpl.createWithDefaultBound(this, Annotations.Companion.getEMPTY(), false, Variance.INVARIANT, Name.identifier(Intrinsics.stringPlus("T", Integer.valueOf(nextInt))), nextInt, storageManager));
}
this.declaredTypeParameters = (List) arrayList;
this.typeConstructor = new ClassTypeConstructorImpl(this, TypeParameterUtilsKt.computeConstructorTypeParameters(this), SetsKt.setOf(DescriptorUtilsKt.getModule(this).getBuiltIns().getAnyType()), storageManager);
}
public ClassKind getKind() {
return ClassKind.CLASS;
}
public Modality getModality() {
return Modality.FINAL;
}
public DescriptorVisibility getVisibility() {
DescriptorVisibility descriptorVisibility = DescriptorVisibilities.PUBLIC;
Intrinsics.checkNotNullExpressionValue(descriptorVisibility, "PUBLIC");
return descriptorVisibility;
}
public ClassTypeConstructorImpl getTypeConstructor() {
return this.typeConstructor;
}
public List<TypeParameterDescriptor> getDeclaredTypeParameters() {
return this.declaredTypeParameters;
}
public boolean isInner() {
return this.isInner;
}
public Annotations getAnnotations() {
return Annotations.Companion.getEMPTY();
}
/* access modifiers changed from: protected */
public MemberScope.Empty getUnsubstitutedMemberScope(KotlinTypeRefiner kotlinTypeRefiner) {
Intrinsics.checkNotNullParameter(kotlinTypeRefiner, "kotlinTypeRefiner");
return MemberScope.Empty.INSTANCE;
}
public MemberScope.Empty getStaticScope() {
return MemberScope.Empty.INSTANCE;
}
public Collection<ClassConstructorDescriptor> getConstructors() {
return SetsKt.emptySet();
}
public Collection<ClassDescriptor> getSealedSubclasses() {
return CollectionsKt.emptyList();
}
public String toString() {
return "class " + getName() + " (not found)";
}
}
public final ClassDescriptor getClass(ClassId classId, List<Integer> list) {
Intrinsics.checkNotNullParameter(classId, "classId");
Intrinsics.checkNotNullParameter(list, "typeParametersCount");
return this.classes.invoke(new ClassRequest(classId, list));
}
}
Download file