use of org.objectweb.asm.tree.MultiANewArrayInsnNode in project spring-loaded by spring-projects.
the class TypeDiffComputer method sameMultiANewArrayInsn.
private static boolean sameMultiANewArrayInsn(AbstractInsnNode o, AbstractInsnNode n) {
if (!(n instanceof MultiANewArrayInsnNode)) {
return false;
}
MultiANewArrayInsnNode mnao = (MultiANewArrayInsnNode) o;
MultiANewArrayInsnNode mnan = (MultiANewArrayInsnNode) n;
if (!mnao.desc.equals(mnan.desc)) {
return false;
}
if (mnao.dims != mnan.dims) {
return false;
}
return true;
}
use of org.objectweb.asm.tree.MultiANewArrayInsnNode in project maple-ir by LLVM-but-worse.
the class MultiANewArrayInsnNodeSerializer method deserialize.
@Override
public MultiANewArrayInsnNode deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
JsonObject jsonObject = (JsonObject) json;
String desc = jsonObject.get("desc").getAsString();
int dims = jsonObject.get("dims").getAsInt();
return new MultiANewArrayInsnNode(desc, dims);
}
Aggregations