public boolean equals(Object o) { if (o instanceof EquivalentValue) { o = ((EquivalentValue) o).e; } return e.equivTo(o); }
/** * compares the encapsulated value with <code>v</code>, using <code>equivTo</code> **/ public boolean equivToValue(Value v) { return e.equivTo(v); }
public boolean equivTo(Object o) { return e.equivTo(o); }
/** * Returns true if this object is structurally equivalent to c. AbstractDataSources are equal and equivalent if their * sourcename is the same */ public boolean equivTo(Object c) { if (sourcename instanceof Value) { return (c instanceof AbstractDataSource && ((Value) sourcename).equivTo(((AbstractDataSource) c).sourcename)); } return (c instanceof AbstractDataSource && ((AbstractDataSource) c).sourcename.equals(sourcename)); }
public boolean equivTo(Object o) { if (o instanceof AbstractNewArrayExpr) { AbstractNewArrayExpr ae = (AbstractNewArrayExpr) o; return sizeBox.getValue().equivTo(ae.sizeBox.getValue()) && baseType.equals(ae.baseType); } return false; }
public boolean equivTo(Object o) { if (o instanceof AbstractCastExpr) { AbstractCastExpr ace = (AbstractCastExpr) o; return opBox.getValue().equivTo(ace.opBox.getValue()) && type.equals(ace.type); } return false; }
public boolean equivTo(Object o) { if (o instanceof AbstractInstanceOfExpr) { AbstractInstanceOfExpr aie = (AbstractInstanceOfExpr) o; return opBox.getValue().equivTo(aie.opBox.getValue()) && checkType.equals(aie.checkType); } return false; }
public boolean equivTo(Object o) { if (o instanceof AbstractLengthExpr) { return opBox.getValue().equivTo(((AbstractLengthExpr) o).opBox.getValue()); } return false; }
/** Compares the specified object with this one for structural equality. */ public boolean equivTo(Object o) { if (o instanceof AbstractNegExpr) { return opBox.getValue().equivTo(((AbstractNegExpr) o).opBox.getValue()); } return false; }
/** * Determines if this operand is equal to another operand. * * @param other * the other operand. * @return {@code true} if this operand is equal to another operand, {@code false} otherwise. */ boolean equivTo(Operand other) { if (other.value == null && value == null) { return true; } return stackOrValue().equivTo(other.stackOrValue()); }
public boolean equivTo(Object o) { if (o instanceof AbstractInstanceFieldRef) { AbstractInstanceFieldRef fr = (AbstractInstanceFieldRef) o; return fr.getField().equals(getField()) && fr.baseBox.getValue().equivTo(baseBox.getValue()); } return false; }
/** * Two ValueUnitPairs are equivTo iff they hold the same Unit objects and equivalent Value objects within them. * * @param other * another ValueUnitPair * @return true if other contains the same objects as this. **/ public boolean equivTo(Object other) { return (other instanceof ValueUnitPair) && ((ValueUnitPair) other).getValue().equivTo(this.getValue()) && ((ValueUnitPair) other).getUnit().equals(getUnit()); }
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; }
public boolean equivTo(Object o) { if (o instanceof AbstractVirtualInvokeExpr) { AbstractVirtualInvokeExpr ie = (AbstractVirtualInvokeExpr) 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; }
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; }
public boolean equivTo(Object o) { if (o instanceof AbstractStaticInvokeExpr) { AbstractStaticInvokeExpr ie = (AbstractStaticInvokeExpr) o; if (!(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; }
/** Compares the specified object with this one for structural equality. */ public boolean equivTo(Object o) { if (o instanceof DNotExpr) { return getOpBox().getValue().equivTo(((DNotExpr) o).getOpBox().getValue()); } return false; }
public boolean equivTo(Object o) { if (o instanceof GNewInvokeExpr) { GNewInvokeExpr ie = (GNewInvokeExpr) o; if (!(getMethod().equals(ie.getMethod()) && (argBoxes == null ? 0 : argBoxes.length) == (ie.argBoxes == null ? 0 : ie.argBoxes.length))) { return false; } if (argBoxes != null) { for (ValueBox element : argBoxes) { if (!(element.getValue().equivTo(element.getValue()))) { return false; } } } if (!type.equals(ie.type)) { return false; } return true; } return false; }