[Soot-list] How compare 2 Stmt objects for equality? - IGNORE PREVIOUS EMAIL

John Dean jdean4 at kc.rr.com
Sat Jul 14 21:42:05 EDT 2012


All,
Ignore the following email. It was answered previously.
I sent the following email prior to my subscription being processed, and
then I sent it again after it was processed. I guess the premature email was
finally sent (long after it was answered).

Thanks,
John

-----Original Message-----
From: soot-list-bounces at sable.mcgill.ca
[mailto:soot-list-bounces at sable.mcgill.ca] On Behalf Of John Dean
Sent: Wednesday, July 11, 2012 2:37 PM
To: soot-list at sable.mcgill.ca
Subject: [Soot-list] How compare 2 Stmt objects for equality?

All,

1. Can someone tell me the best way to compare two Stmt objects for
equality?

I looked for an equals method for Stmt and also for some of Stmt's
implementing classes, and all I see in the API is the standard equals method
from the Object class (and testing for reference equality doesn't help me).
I also looked for get methods so I could compare fields within a Stmt, and
that doesn't appear to help.

2. To test for Stmt equality, I even looked at the Stmt class's toString
method, but I'm having a hard time understanding it. What is its UnitPrinter
parameter for? Why is the return type void?

Thanks,
John



_______________________________________________
Soot-list mailing list
Soot-list at sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list



More information about the Soot-list mailing list