All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imqa.asm.MethodChecker Maven / Gradle / Ivy

There is a newer version: 2.25.11
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy