io.imqa.asm.MethodChecker Maven / Gradle / Ivy
package io.imqa.asm;
import java.util.ArrayList;
public class MethodChecker {
public ArrayList checkList = new ArrayList<>();
public void addCheckList(int opcode, String owner, String name, String desc) {
checkList.add(new CheckList(opcode, owner, name, desc));
}
public boolean check(int opcode, String owner, String name, String desc) {
boolean isExist = false;
for (CheckList item : checkList) {
if (item.opcode == opcode
&& item.owner.equals(owner)
&& item.name.equals(name)
&& item.desc.equals(desc))
isExist = true;
}
return isExist;
}
}