public final class InstructionComparator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InstructionComparator.InsnListSection |
| Constructor and Description |
|---|
InstructionComparator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fieldInsnEqual(org.objectweb.asm.tree.FieldInsnNode insn1,
org.objectweb.asm.tree.FieldInsnNode insn2)
Checks if two FieldInsnNodes are the same.
|
static org.objectweb.asm.tree.InsnList |
getImportantList(org.objectweb.asm.tree.InsnList list) |
static boolean |
iincInsnEqual(org.objectweb.asm.tree.IincInsnNode node1,
org.objectweb.asm.tree.IincInsnNode node2)
Checks if two IincInsnNodes are the same.
|
static boolean |
insnEqual(org.objectweb.asm.tree.AbstractInsnNode node1,
org.objectweb.asm.tree.AbstractInsnNode node2)
Compares whether or not two instructions are equal.
|
static java.util.List<java.lang.Integer> |
insnListFind(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle) |
static java.util.List<org.objectweb.asm.tree.AbstractInsnNode> |
insnListFindEnd(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle) |
static java.util.List<InstructionComparator.InsnListSection> |
insnListFindL(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle) |
static java.util.List<org.objectweb.asm.tree.AbstractInsnNode> |
insnListFindStart(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle) |
static boolean |
insnListMatches(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle,
int start) |
static boolean |
intInsnEqual(org.objectweb.asm.tree.IntInsnNode node1,
org.objectweb.asm.tree.IntInsnNode node2)
Checks if two IntInsnNodes are the same.
|
static boolean |
ldcInsnEqual(org.objectweb.asm.tree.LdcInsnNode insn1,
org.objectweb.asm.tree.LdcInsnNode insn2)
Checks if two LdcInsnNodes are the same.
|
static boolean |
methodInsnEqual(org.objectweb.asm.tree.MethodInsnNode insn1,
org.objectweb.asm.tree.MethodInsnNode insn2)
Checks if two MethodInsnNodes are the same.
|
static boolean |
typeInsnEqual(org.objectweb.asm.tree.TypeInsnNode insn1,
org.objectweb.asm.tree.TypeInsnNode insn2)
Checks if two TypeInsnNodes are the same.
|
static boolean |
varInsnEqual(org.objectweb.asm.tree.VarInsnNode insn1,
org.objectweb.asm.tree.VarInsnNode insn2)
Checks two VarInsnNodes to see if they are the same.
|
public static org.objectweb.asm.tree.InsnList getImportantList(org.objectweb.asm.tree.InsnList list)
public static boolean insnEqual(org.objectweb.asm.tree.AbstractInsnNode node1,
org.objectweb.asm.tree.AbstractInsnNode node2)
node1: - The first instruction.node2: - The second instruction.public static java.util.List<org.objectweb.asm.tree.AbstractInsnNode> insnListFindStart(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle)
public static java.util.List<java.lang.Integer> insnListFind(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle)
public static java.util.List<org.objectweb.asm.tree.AbstractInsnNode> insnListFindEnd(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle)
public static java.util.List<InstructionComparator.InsnListSection> insnListFindL(org.objectweb.asm.tree.InsnList haystack, org.objectweb.asm.tree.InsnList needle)
public static boolean insnListMatches(org.objectweb.asm.tree.InsnList haystack,
org.objectweb.asm.tree.InsnList needle,
int start)
public static boolean intInsnEqual(org.objectweb.asm.tree.IntInsnNode node1,
org.objectweb.asm.tree.IntInsnNode node2)
node1: - The first IntInsnNode to compare.node2: - The second IntInsnNode to compare.public static boolean ldcInsnEqual(org.objectweb.asm.tree.LdcInsnNode insn1,
org.objectweb.asm.tree.LdcInsnNode insn2)
insn1: - The first LdcInsnNode to compare.insn2: - The second LdcInsnNode to compare.public static boolean methodInsnEqual(org.objectweb.asm.tree.MethodInsnNode insn1,
org.objectweb.asm.tree.MethodInsnNode insn2)
insn1: - The first MethodInsNode to compare.insn2: - The second MethodInsnNode to compare.public static boolean typeInsnEqual(org.objectweb.asm.tree.TypeInsnNode insn1,
org.objectweb.asm.tree.TypeInsnNode insn2)
insn1: - The first TypeInsnNode to compare.insn2: - The second TypeInsnNode to compare.public static boolean varInsnEqual(org.objectweb.asm.tree.VarInsnNode insn1,
org.objectweb.asm.tree.VarInsnNode insn2)
insn1: - The first VarInsnNode to compare.insn2: - The second VarInsnNode to compare.public static boolean iincInsnEqual(org.objectweb.asm.tree.IincInsnNode node1,
org.objectweb.asm.tree.IincInsnNode node2)
node1: - The first IincInsnNode to compare.node2: - The second IincInsnNode to compare.public static boolean fieldInsnEqual(org.objectweb.asm.tree.FieldInsnNode insn1,
org.objectweb.asm.tree.FieldInsnNode insn2)
insn1: - The first instruction to compare.insn2: - The second instruction to compare.