jimu-decompiled/sources/org/aspectj/runtime/reflect/JoinPointImpl.java
2025-05-13 19:24:51 +02:00

114 lines
3.4 KiB
Java

package org.aspectj.runtime.reflect;
import com.ijm.dataencryption.de.DataDecryptTool;
import com.ubt.jimu.base.util.FileUtil;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.reflect.SourceLocation;
import org.aspectj.runtime.internal.AroundClosure;
/* loaded from: classes2.dex */
class JoinPointImpl implements ProceedingJoinPoint {
Object[] a;
JoinPoint.StaticPart b;
private AroundClosure c;
static class StaticPartImpl implements JoinPoint.StaticPart {
String a;
Signature b;
public StaticPartImpl(int i, String str, Signature signature, SourceLocation sourceLocation) {
this.a = str;
this.b = signature;
}
public String a() {
return this.a;
}
public Signature b() {
return this.b;
}
@Override // org.aspectj.lang.JoinPoint.StaticPart
public final String toString() {
return a(StringMaker.k);
}
String a(StringMaker stringMaker) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(stringMaker.a(a()));
stringBuffer.append("(");
stringBuffer.append(((SignatureImpl) b()).b(stringMaker));
stringBuffer.append(")");
return stringBuffer.toString();
}
}
public JoinPointImpl(JoinPoint.StaticPart staticPart, Object obj, Object obj2, Object[] objArr) {
this.b = staticPart;
this.a = objArr;
}
@Override // org.aspectj.lang.JoinPoint
public Object[] a() {
if (this.a == null) {
this.a = new Object[0];
}
Object[] objArr = this.a;
Object[] objArr2 = new Object[objArr.length];
System.arraycopy(objArr, 0, objArr2, 0, objArr.length);
return objArr2;
}
public final String toString() {
return this.b.toString();
}
@Override // org.aspectj.lang.ProceedingJoinPoint
public void a(AroundClosure aroundClosure) {
this.c = aroundClosure;
}
@Override // org.aspectj.lang.ProceedingJoinPoint
public Object a(Object[] objArr) throws Throwable {
int i;
AroundClosure aroundClosure = this.c;
if (aroundClosure == null) {
return null;
}
int flags = aroundClosure.getFlags();
int i2 = 1048576 & flags;
boolean z = (65536 & flags) != 0;
int i3 = (flags & FileUtil.ZIP_BUFFER_SIZE) != 0 ? 1 : 0;
int i4 = (flags & DataDecryptTool.DECRYPT_ALL_FILE) != 0 ? 1 : 0;
boolean z2 = (flags & 16) != 0;
boolean z3 = (flags & 1) != 0;
Object[] state = this.c.getState();
int i5 = i3 + 0 + ((!z2 || z) ? 0 : 1);
if (i3 == 0 || i4 == 0) {
i = 0;
} else {
state[0] = objArr[0];
i = 1;
}
if (z2 && z3) {
if (z) {
i = i4 + 1;
state[0] = objArr[i4];
} else {
char c = (i3 == 0 || i4 == 0) ? (char) 0 : (char) 1;
int i6 = (i3 == 0 || i4 == 0) ? 0 : 1;
int i7 = (z2 && z3 && !z) ? 1 : 0;
state[i3] = objArr[c];
i = i6 + i7;
}
}
for (int i8 = i; i8 < objArr.length; i8++) {
state[(i8 - i) + i5] = objArr[i8];
}
return this.c.run(state);
}
}