[ClavaWeaver] Implements equals for base CxxWeaverJoinPoint
@@ -575,4 +575,18 @@ public abstract class ACxxWeaverJoinPoint extends AJoinPoint {
return CxxJoinpoints.create(currentRegionTry.get(), this);
}
+
+ @Override
+ public boolean equals(Object obj) {
+ if (!(obj instanceof AJoinPoint)) {
+ return false;
+ }
+
+ return getNode().equals(((AJoinPoint) obj).getNode());
+ }
+
+ @Override
+ public int hashCode() {
+ return getNode().hashCode();
+ }
}
