/** * Returns a hash code for this object, consistent with structural equality. */ public int equivHashCode() { return baseBox.getValue().equivHashCode() * 101 + getMethod().equivHashCode() * 17; }
private static int argCountOf(SootMethodRef m) { int argCount = 0; for (Type t : m.parameterTypes()) { argCount += sizeOfType(t); } return argCount; }
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().newInterfaceInvokeInst(methodRef, argCountOf(methodRef)); out.add(u); u.addAllTagsOf(context.getCurrentUnit()); } }
public boolean equivTo(Object o) { if (o instanceof AbstractInterfaceInvokeExpr) { AbstractInterfaceInvokeExpr ie = (AbstractInterfaceInvokeExpr) 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; }
private static int argCountOf(SootMethodRef m) { int argCount = 0; Iterator typeIt = m.parameterTypes().iterator(); while(typeIt.hasNext()) { Type t = (Type) typeIt.next(); argCount += sizeOfType(t); } return argCount; } }
/** Returns a hash code for this object, consistent with structural equality. */ public int equivHashCode() { return baseBox.getValue().equivHashCode() * 101 + getMethod().equivHashCode() * 17; }
private static int argCountOf(SootMethodRef m) { int argCount = 0; Iterator typeIt = m.parameterTypes().iterator(); while(typeIt.hasNext()) { Type t = (Type) typeIt.next(); argCount += sizeOfType(t); } return argCount; } }
/** 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 AbstractInterfaceInvokeExpr) { AbstractInterfaceInvokeExpr ie = (AbstractInterfaceInvokeExpr)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 AbstractInterfaceInvokeExpr) { AbstractInterfaceInvokeExpr ie = (AbstractInterfaceInvokeExpr)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; }