/** * Returns a hash code for this object, consistent with structural equality. */ public int equivHashCode() { return baseBox.getValue().equivHashCode() * 101 + getMethod().equivHashCode() * 17; }
public void convertToBaf(JimpleToBafContext context, List<Unit> out) { ((ConvertToBaf) (getBase())).convertToBaf(context, out); if (argBoxes != null) { for (ValueBox element : argBoxes) { ((ConvertToBaf) (element.getValue())).convertToBaf(context, out); } } Unit u = Baf.v().newSpecialInvokeInst(methodRef); out.add(u); u.addAllTagsOf(context.getCurrentUnit()); } }
public boolean equivTo(Object o) { if (o instanceof AbstractSpecialInvokeExpr) { AbstractSpecialInvokeExpr ie = (AbstractSpecialInvokeExpr) o; if (!(baseBox.getValue().equivTo(ie.baseBox.getValue()) && getMethod().equals(ie.getMethod()) && (argBoxes == null ? 0 : argBoxes.length) == (ie.argBoxes == null ? 0 : ie.argBoxes.length))) { return false; } if (argBoxes != null) { for (int i = 0; i < argBoxes.length; i++) { if (!(argBoxes[i]).getValue().equivTo(ie.argBoxes[i].getValue())) { return false; } } } return true; } return false; }
/** Returns a hash code for this object, consistent with structural equality. */ public int equivHashCode() { return baseBox.getValue().equivHashCode() * 101 + getMethod().equivHashCode() * 17; }
/** Returns a hash code for this object, consistent with structural equality. */ public int equivHashCode() { return baseBox.getValue().equivHashCode() * 101 + getMethod().equivHashCode() * 17; }
public boolean equivTo(Object o) { if (o instanceof AbstractSpecialInvokeExpr) { AbstractSpecialInvokeExpr ie = (AbstractSpecialInvokeExpr)o; if (!(baseBox.getValue().equivTo(ie.baseBox.getValue()) && getMethod().equals(ie.getMethod()) && argBoxes.length == ie.argBoxes.length)) return false; for (ValueBox element : argBoxes) if (!(element.getValue().equivTo(element.getValue()))) return false; return true; } return false; }
public boolean equivTo(Object o) { if (o instanceof AbstractSpecialInvokeExpr) { AbstractSpecialInvokeExpr ie = (AbstractSpecialInvokeExpr)o; if (!(baseBox.getValue().equivTo(ie.baseBox.getValue()) && getMethod().equals(ie.getMethod()) && argBoxes.length == ie.argBoxes.length)) return false; for (ValueBox element : argBoxes) if (!(element.getValue().equivTo(element.getValue()))) return false; return true; } return false; }