101 lines
2.9 KiB
Java
101 lines
2.9 KiB
Java
package d0.z.d;
|
|
|
|
import c.d.b.a.a;
|
|
import kotlin.reflect.KCallable;
|
|
import kotlin.reflect.KFunction;
|
|
/* compiled from: FunctionReference */
|
|
public class j extends d implements i, KFunction {
|
|
private final int arity;
|
|
private final int flags;
|
|
|
|
public j(int i) {
|
|
this(i, d.NO_RECEIVER, null, null, null, 0);
|
|
}
|
|
|
|
public j(int i, Object obj) {
|
|
this(i, obj, null, null, null, 0);
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public j(int i, Object obj, Class cls, String str, String str2, int i2) {
|
|
super(obj, cls, str, str2, (i2 & 1) == 1);
|
|
this.arity = i;
|
|
this.flags = i2 >> 1;
|
|
}
|
|
|
|
@Override // d0.z.d.d
|
|
public KCallable computeReflected() {
|
|
return a0.function(this);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (obj instanceof j) {
|
|
j jVar = (j) obj;
|
|
return m.areEqual(getOwner(), jVar.getOwner()) && getName().equals(jVar.getName()) && getSignature().equals(jVar.getSignature()) && this.flags == jVar.flags && this.arity == jVar.arity && m.areEqual(getBoundReceiver(), jVar.getBoundReceiver());
|
|
} else if (obj instanceof KFunction) {
|
|
return obj.equals(compute());
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // d0.z.d.i
|
|
public int getArity() {
|
|
return this.arity;
|
|
}
|
|
|
|
@Override // d0.z.d.d
|
|
public KFunction getReflected() {
|
|
return (KFunction) super.getReflected();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return getSignature().hashCode() + ((getName().hashCode() + (getOwner() == null ? 0 : getOwner().hashCode() * 31)) * 31);
|
|
}
|
|
|
|
@Override // kotlin.reflect.KFunction
|
|
public boolean isExternal() {
|
|
return getReflected().isExternal();
|
|
}
|
|
|
|
@Override // kotlin.reflect.KFunction
|
|
public boolean isInfix() {
|
|
return getReflected().isInfix();
|
|
}
|
|
|
|
@Override // kotlin.reflect.KFunction
|
|
public boolean isInline() {
|
|
return getReflected().isInline();
|
|
}
|
|
|
|
@Override // kotlin.reflect.KFunction
|
|
public boolean isOperator() {
|
|
return getReflected().isOperator();
|
|
}
|
|
|
|
@Override // d0.z.d.d, kotlin.reflect.KCallable, kotlin.reflect.KFunction
|
|
public boolean isSuspend() {
|
|
return getReflected().isSuspend();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
KCallable compute = compute();
|
|
if (compute != this) {
|
|
return compute.toString();
|
|
}
|
|
if ("<init>".equals(getName())) {
|
|
return "constructor (Kotlin reflection is not available)";
|
|
}
|
|
StringBuilder K = a.K("function ");
|
|
K.append(getName());
|
|
K.append(" (Kotlin reflection is not available)");
|
|
return K.toString();
|
|
}
|
|
}
|