public class InstructionComparator
extends java.lang.Object
AbstractInsnNode which can be used to compare two instruction lists.| Constructor and Description |
|---|
InstructionComparator()
Creates a new instruction comparator which ignores frames and line numbers.
|
InstructionComparator(int... ignoredInstructionTypes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(org.objectweb.asm.tree.AbstractInsnNode[] insns1,
org.objectweb.asm.tree.AbstractInsnNode[] insns2)
Compare two arrays of
AbstractInsnNode. |
boolean |
equals(org.objectweb.asm.tree.AbstractInsnNode insn1,
org.objectweb.asm.tree.AbstractInsnNode insn2)
Compare two
AbstractInsnNode. |
boolean |
equals(org.objectweb.asm.tree.InsnList insnList1,
org.objectweb.asm.tree.InsnList insnList2)
Check if two
InsnList are equal. |
boolean |
equals(java.util.List<? extends org.objectweb.asm.tree.AbstractInsnNode> insnList1,
java.util.List<? extends org.objectweb.asm.tree.AbstractInsnNode> insnList2)
Check if two lists of
AbstractInsnNode are equal. |
public InstructionComparator()
public InstructionComparator(int... ignoredInstructionTypes)
public boolean equals(org.objectweb.asm.tree.InsnList insnList1,
org.objectweb.asm.tree.InsnList insnList2)
InsnList are equal.insnList1 - The first instruction listinsnList2 - The second instruction listpublic boolean equals(java.util.List<? extends org.objectweb.asm.tree.AbstractInsnNode> insnList1,
java.util.List<? extends org.objectweb.asm.tree.AbstractInsnNode> insnList2)
AbstractInsnNode are equal.insnList1 - The first list of instructionsinsnList2 - The second list of instructionspublic boolean equals(org.objectweb.asm.tree.AbstractInsnNode[] insns1,
org.objectweb.asm.tree.AbstractInsnNode[] insns2)
AbstractInsnNode.insns1 - The first array of instructionsinsns2 - The second array of instructionspublic boolean equals(org.objectweb.asm.tree.AbstractInsnNode insn1,
org.objectweb.asm.tree.AbstractInsnNode insn2)
AbstractInsnNode.AbstractInsnNode.getNext() and AbstractInsnNode.getPrevious() instructions.insn1 - The first instructioninsn2 - The second instruction