Top Description Fields Methods
com.sun.org.apache.bcel.internal.generic

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 Also
Instruction

Field Summary

Modifier and TypeField and Description
public static final InstructionComparator

Method Summary

Modifier and TypeMethod and Description
public boolean

Field Detail

DEFAULTback to summary
public static final InstructionComparator DEFAULT

Method Detail

equalsback to summary
public boolean equals(Instruction i1, Instruction i2)