Spermatid v6.1.8版本的 MD5 值为:a375ce51a42d528ba6e2583c10478296
以下内容为反编译后的 j.java 源代码,内容仅作参考
package te;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.TreeSet;
import java.util.function.Consumer;
import org.checkerframework.com.github.javaparser.JavaToken;
import org.checkerframework.com.github.javaparser.ParseException;
import org.checkerframework.com.github.javaparser.Token;
import org.checkerframework.com.github.javaparser.ast.Modifier;
import org.checkerframework.com.github.javaparser.ast.Node;
import org.checkerframework.com.github.javaparser.ast.type.ArrayType;
public abstract class j {
public List<l0> f36610b = new ArrayList();
public boolean f36611c;
public void p(Node node, Node node2, Node node3) {
if (node.l().get().d().equals(node3.l().get().d())) {
v(node3, node2);
}
}
public void A(org.checkerframework.com.github.javaparser.d dVar) {
b(dVar);
this.f36610b = new ArrayList();
l().N();
}
public void B(boolean z10) {
this.f36611c = z10;
l().O(z10);
}
public void C(int i10) {
D().g(i10);
}
public abstract JavaToken D();
public q0 E() {
if (this.f36611c) {
return new q0(D(), D());
}
return null;
}
public abstract void b(org.checkerframework.com.github.javaparser.d dVar);
public <T> List<T> c(List<T> list, T t10) {
if (list == null) {
list = new LinkedList<>();
}
list.add(t10);
return list;
}
public <T extends Node> ue.o<T> d(ue.o<T> oVar, T t10) {
if (oVar == null) {
oVar = new ue.o<>();
}
oVar.add(t10);
return oVar;
}
public void e(EnumSet<Modifier> enumSet, Modifier modifier) {
if (enumSet.contains(modifier)) {
f("Duplicated modifier");
}
enumSet.add(modifier);
}
public void f(String str) {
this.f36610b.add(new l0(str, E(), null));
}
public <T extends Node> ue.o<T> g(ue.o<T> oVar, T t10) {
return t10 == null ? oVar : d(oVar, t10);
}
public <T extends Node> ue.o<T> h() {
return new ue.o<>();
}
public org.checkerframework.com.github.javaparser.ast.expr.l i(org.checkerframework.com.github.javaparser.ast.expr.l lVar, bf.p pVar) {
org.checkerframework.com.github.javaparser.ast.expr.p pVar2;
if (lVar instanceof org.checkerframework.com.github.javaparser.ast.expr.k) {
pVar2 = new org.checkerframework.com.github.javaparser.ast.expr.p(y(lVar, pVar), d(new ue.o(), new ve.m(lVar.l().orElse(null), EnumSet.noneOf(Modifier.class), new ue.o(), new org.checkerframework.com.github.javaparser.ast.type.g(), false, new ue.o(), ((org.checkerframework.com.github.javaparser.ast.expr.y) ((org.checkerframework.com.github.javaparser.ast.expr.k) lVar).t0()).getName())), pVar, true);
} else if (lVar instanceof org.checkerframework.com.github.javaparser.ast.expr.y) {
pVar2 = new org.checkerframework.com.github.javaparser.ast.expr.p(y(lVar, pVar), d(new ue.o(), new ve.m(lVar.l().orElse(null), EnumSet.noneOf(Modifier.class), new ue.o(), new org.checkerframework.com.github.javaparser.ast.type.g(), false, new ue.o(), ((org.checkerframework.com.github.javaparser.ast.expr.y) lVar).getName())), pVar, false);
} else {
if (lVar instanceof org.checkerframework.com.github.javaparser.ast.expr.p) {
((org.checkerframework.com.github.javaparser.ast.expr.p) lVar).x0(pVar);
v(lVar, pVar);
return lVar;
}
if (lVar instanceof org.checkerframework.com.github.javaparser.ast.expr.f) {
org.checkerframework.com.github.javaparser.ast.expr.f fVar = (org.checkerframework.com.github.javaparser.ast.expr.f) lVar;
fVar.v0(i(fVar.t0(), pVar));
return lVar;
}
f("Failed to parse lambda expression! Please create an issue at https://github.com/javaparser/javaparser/issues");
return lVar;
}
return pVar2;
}
public we.c j() {
return l().g();
}
public abstract Token k();
public abstract l l();
public List<JavaToken> m() {
return l().i();
}
public org.checkerframework.com.github.javaparser.ast.expr.c n(q0 q0Var, List<q0> list, org.checkerframework.com.github.javaparser.ast.type.d dVar, ue.o<org.checkerframework.com.github.javaparser.ast.expr.l> oVar, List<ue.o<org.checkerframework.com.github.javaparser.ast.expr.a>> list2, org.checkerframework.com.github.javaparser.ast.expr.d dVar2) {
ue.o oVar2 = new ue.o();
for (int i10 = 0; i10 < list2.size(); i10++) {
oVar2.add(new org.checkerframework.com.github.javaparser.ast.a(list.get(i10), oVar.get(i10), list2.get(i10)));
}
return new org.checkerframework.com.github.javaparser.ast.expr.c(q0Var, dVar, oVar2, dVar2);
}
public org.checkerframework.com.github.javaparser.ast.type.d o(org.checkerframework.com.github.javaparser.ast.type.d dVar, List<ArrayType.a> list) {
lf.c<org.checkerframework.com.github.javaparser.ast.type.d, List<ArrayType.a>> C0 = ArrayType.C0(dVar);
return ArrayType.D0(C0.f33899a, C0.f33900b, list).p0();
}
public final String q(ParseException parseException) {
StringBuilder sb2 = new StringBuilder("Parse error. Found ");
StringBuilder sb3 = new StringBuilder();
TreeSet treeSet = new TreeSet();
int i10 = 0;
int i11 = 0;
while (true) {
int[][] iArr = parseException.expectedTokenSequences;
if (i10 >= iArr.length) {
break;
}
if (i11 < iArr[i10].length) {
i11 = iArr[i10].length;
}
int i12 = 0;
while (true) {
int[][] iArr2 = parseException.expectedTokenSequences;
if (i12 < iArr2[i10].length) {
treeSet.add(parseException.tokenImage[iArr2[i10][i12]]);
i12++;
}
}
i10++;
}
Iterator it = treeSet.iterator();
while (it.hasNext()) {
String str = (String) it.next();
sb3.append(" ");
sb3.append(str);
}
sb2.append("");
Token token = parseException.currentToken.next;
int i13 = 0;
while (true) {
if (i13 >= i11) {
break;
}
String add_escapes = ParseException.add_escapes(token.image);
if (i13 != 0) {
sb2.append(" ");
}
if (token.kind == 0) {
sb2.append(parseException.tokenImage[0]);
break;
}
String str2 = "\"" + add_escapes + "\"";
String str3 = parseException.tokenImage[token.kind];
if (str3.equals(str2)) {
sb2.append(str3);
} else {
sb2.append(" ");
sb2.append(str2);
sb2.append(" ");
sb2.append(str3);
}
token = token.next;
i13++;
}
int[][] iArr3 = parseException.expectedTokenSequences;
if (iArr3.length != 0) {
int length = iArr3.length;
sb2.append(", expected");
sb2.append(length != 1 ? " one of " : "");
sb2.append(sb3.toString());
}
return sb2.toString();
}
public JavaToken r(ue.o<?> oVar) {
if (this.f36611c && !oVar.isEmpty()) {
return oVar.get(0).l().get().c();
}
return JavaToken.f34729e;
}
public JavaToken s(JavaToken javaToken, JavaToken javaToken2) {
if (!this.f36611c) {
return null;
}
lf.i.b(javaToken);
lf.i.b(javaToken2);
return (javaToken.h() || javaToken2.f()) ? javaToken : javaToken2;
}
public JavaToken t(JavaToken javaToken, Node node) {
if (this.f36611c) {
return s(javaToken, node.l().get().c());
}
return null;
}
public <T extends Node> ue.o<T> u(ue.o<T> oVar, T t10) {
if (oVar == null) {
oVar = new ue.o<>();
}
oVar.k(t10);
return oVar;
}
public final void v(final Node node, final Node node2) {
if (this.f36611c) {
node.g().ifPresent(new Consumer() {
@Override
public final void accept(Object obj) {
j.this.p(node, node2, (Node) obj);
}
});
node.k0(y(node, node2));
}
}
public q0 w(JavaToken javaToken, JavaToken javaToken2) {
if (this.f36611c) {
return new q0(javaToken, javaToken2);
}
return null;
}
public q0 x(Node node, JavaToken javaToken) {
if (this.f36611c) {
return new q0(node.l().get().c(), javaToken);
}
return null;
}
public q0 y(Node node, Node node2) {
if (this.f36611c) {
return new q0(node.l().get().c(), node2.l().get().d());
}
return null;
}
public q0 z(int i10, ParseException parseException) {
int i11;
q0 q0Var = null;
JavaToken D = parseException.currentToken != null ? D() : null;
do {
i11 = k().kind;
if (i11 == i10) {
break;
}
} while (i11 != 0);
JavaToken D2 = D();
if (D != null && D2 != null) {
q0Var = w(D, D2);
}
this.f36610b.add(new l0(q(parseException), q0Var, parseException));
return q0Var;
}
}