public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof RetInstruction)) return false; return super.equalsInstruction(other); }
public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof RetInstruction)) return false; return super.equalsInstruction(other); }
/** * StoreInstructions are equal if the type they reference the same * type and locals index or if either is unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; String type = getTypeName(); String otherType = ((StoreInstruction) other).getTypeName(); return type == null || otherType == null || type.equals(otherType); }
/** * LoadInstructions are equal if the type they reference the same * type and locals index or if either is unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; String type = getTypeName(); String otherType = ((LoadInstruction) other).getTypeName(); return type == null || otherType == null || type.equals(otherType); }
/** * LoadInstructions are equal if the type they reference the same * type and locals index or if either is unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; String type = getTypeName(); String otherType = ((LoadInstruction) other).getTypeName(); return type == null || otherType == null || type.equals(otherType); }
/** * StoreInstructions are equal if the type they reference the same * type and locals index or if either is unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; String type = getTypeName(); String otherType = ((StoreInstruction) other).getTypeName(); return type == null || otherType == null || type.equals(otherType); }
public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof IIncInstruction)) return false; if (!super.equalsInstruction(other)) return false; IIncInstruction ins = (IIncInstruction) other; return getIncrement() == 0 || ins.getIncrement() == 0 || getIncrement() == ins.getIncrement(); }
public boolean equalsInstruction(Instruction other) { if (this == other) return true; if (!(other instanceof IIncInstruction)) return false; if (!super.equalsInstruction(other)) return false; IIncInstruction ins = (IIncInstruction) other; return getIncrement() == 0 || ins.getIncrement() == 0 || getIncrement() == ins.getIncrement(); }
/** * WideInstructions are equal if the instruction they augment is the same * or unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; if (!(other instanceof WideInstruction)) return false; WideInstruction ins = (WideInstruction) other; int code = getInstruction(); int otherCode = ins.getInstruction(); if (code != otherCode) return false; if (code == Constants.IINC) { int inc = getIncrement(); int otherInc = ins.getIncrement(); return (inc == -1) || (otherInc == -1) || (inc == otherInc); } return true; }
/** * WideInstructions are equal if the instruction they augment is the same * or unset. */ public boolean equalsInstruction(Instruction other) { if (other == this) return true; if (!super.equalsInstruction(other)) return false; if (!(other instanceof WideInstruction)) return false; WideInstruction ins = (WideInstruction) other; int code = getInstruction(); int otherCode = ins.getInstruction(); if (code != otherCode) return false; if (code == Constants.IINC) { int inc = getIncrement(); int otherInc = ins.getIncrement(); return (inc == -1) || (otherInc == -1) || (inc == otherInc); } return true; }