@Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof VarType)) { return false; } VarType vt = (VarType)o; return type == vt.type && arrayDim == vt.arrayDim && InterpreterUtil.equalObjects(value, vt.value); }
private static boolean equal(Inner o1, Inner o2) { return o1.type == o2.type && o1.accessFlags == o2.accessFlags && InterpreterUtil.equalObjects(o1.simpleName, o2.simpleName); } }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof ConstExprent)) return false; ConstExprent cn = (ConstExprent)o; return InterpreterUtil.equalObjects(constType, cn.getConstType()) && InterpreterUtil.equalObjects(value, cn.getValue()); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof IfExprent)) return false; IfExprent ie = (IfExprent)o; return InterpreterUtil.equalObjects(condition, ie.getCondition()); }
public static boolean equalLists(List<?> first, List<?> second) { if (first == null) { return second == null; } else if (second == null) { return false; } if (first.size() == second.size()) { for (int i = 0; i < first.size(); i++) { if (!equalObjects(first.get(i), second.get(i))) { return false; } } return true; } return false; }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof ArrayExprent)) return false; ArrayExprent arr = (ArrayExprent)o; return InterpreterUtil.equalObjects(array, arr.getArray()) && InterpreterUtil.equalObjects(index, arr.getIndex()); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof SwitchExprent)) { return false; } SwitchExprent sw = (SwitchExprent)o; return InterpreterUtil.equalObjects(value, sw.getValue()); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof FieldExprent)) return false; FieldExprent ft = (FieldExprent)o; return InterpreterUtil.equalObjects(name, ft.getName()) && InterpreterUtil.equalObjects(classname, ft.getClassname()) && isStatic == ft.isStatic() && InterpreterUtil.equalObjects(instance, ft.getInstance()) && InterpreterUtil.equalObjects(descriptor, ft.getDescriptor()); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof AssignmentExprent)) return false; AssignmentExprent as = (AssignmentExprent)o; return InterpreterUtil.equalObjects(left, as.getLeft()) && InterpreterUtil.equalObjects(right, as.getRight()) && condType == as.getCondType(); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof ExitExprent)) return false; ExitExprent et = (ExitExprent)o; return exitType == et.getExitType() && InterpreterUtil.equalObjects(value, et.getValue()); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof MonitorExprent)) return false; MonitorExprent me = (MonitorExprent)o; return monType == me.getMonType() && InterpreterUtil.equalObjects(value, me.getValue()); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof InvocationExprent)) return false; InvocationExprent it = (InvocationExprent)o; return InterpreterUtil.equalObjects(name, it.getName()) && InterpreterUtil.equalObjects(classname, it.getClassname()) && isStatic == it.isStatic() && InterpreterUtil.equalObjects(instance, it.getInstance()) && InterpreterUtil.equalObjects(descriptor, it.getDescriptor()) && functype == it.getFunctype() && InterpreterUtil.equalLists(lstParameters, it.getLstParameters()); }
private void calcReachabilitySuppPoints(final int edgetype) { iterateReachability((node, mapSets) -> { // consider to be a support point for (StatEdge sucedge : node.getAllSuccessorEdges()) { if ((sucedge.getType() & edgetype) != 0) { if (mapSets.containsKey(sucedge.getDestination().id)) { FastFixedSet<Integer> setReachability = mapSets.get(node.id); if (!InterpreterUtil.equalObjects(setReachability, mapSupportPoints.get(node.id))) { mapSupportPoints.put(node.id, setReachability); return true; } } } } return false; }, edgetype); }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof NewExprent)) return false; NewExprent ne = (NewExprent)o; return InterpreterUtil.equalObjects(newType, ne.getNewType()) && InterpreterUtil.equalLists(lstDims, ne.getLstDims()) && InterpreterUtil.equalObjects(constructor, ne.getConstructor()) && directArrayInit == ne.directArrayInit && InterpreterUtil.equalLists(lstArrayElements, ne.getLstArrayElements()); }
private static boolean mapsEqual(SFormsFastMapDirect map1, SFormsFastMapDirect map2) { if (map1 == null) { return map2 == null; } else if (map2 == null) { return false; } if (map1.size() != map2.size()) { return false; } for (Entry<Integer, FastSparseSet<Integer>> ent2 : map2.entryList()) { if (!InterpreterUtil.equalObjects(map1.get(ent2.getKey()), ent2.getValue())) { return false; } } return true; }
private static boolean mapsEqual(SFormsFastMapDirect map1, SFormsFastMapDirect map2) { if (map1 == null) { return map2 == null; } else if (map2 == null) { return false; } if (map1.size() != map2.size()) { return false; } for (Entry<Integer, FastSparseSet<Integer>> ent2 : map2.entryList()) { if (!InterpreterUtil.equalObjects(map1.get(ent2.getKey()), ent2.getValue())) { return false; } } return true; }
@Override public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof VarExprent)) return false; VarExprent ve = (VarExprent)o; return index == ve.getIndex() && version == ve.getVersion() && InterpreterUtil.equalObjects(getVarType(), ve.getVarType()); // FIXME: varType comparison redundant? }
if (!InterpreterUtil.equalObjects(ssau.getMapVersionFirstRange().get(leftpaar), ssau.getMapVersionFirstRange().get(usedvar))) { return false;
if (!InterpreterUtil.equalObjects(domsSuccs, doms)) {
boolean found = false; for (Range arr : lstRanges) { if (arr.handler == range.getHandler() && InterpreterUtil.equalObjects(range.getUniqueExceptionsString(), arr.uniqueStr)) { arr.protectedRange.addAll(range.getProtectedRange()); found = true;