FileDocCategorySizeDatePackage
InstructionComparator.javaAPI DocJava SE 6 API4578Tue Jun 10 00:22:20 BST 2008com.sun.org.apache.bcel.internal.generic

InstructionComparator

public interface InstructionComparator
Equality of instructions isn't clearly to be defined. You might wish, for example, to compare whether instructions have the same meaning. E.g., whether two INVOKEVIRTUALs describe the same call.
The DEFAULT comparator however, considers two instructions to be equal if they have same opcode and point to the same indexes (if any) in the constant pool or the same local variable index. Branch instructions must have the same target.
see
Instruction
version
$Id: InstructionComparator.java,v 1.1.2.1 2005/07/31 23:46:03 jeffsuttor Exp $
author
M. Dahm

Fields Summary
public static final InstructionComparator
DEFAULT
Constructors Summary
Methods Summary
public booleanequals(com.sun.org.apache.bcel.internal.generic.Instruction i1, com.sun.org.apache.bcel.internal.generic.Instruction i2)