[prev in list] [next in list] [prev in thread] [next in thread]
List: soot-list
Subject: Re: [Soot-list] VTable for Java
From: "Bodden, Eric" <eric.bodden () sit ! fraunhofer ! de>
Date: 2015-03-30 7:03:36
Message-ID: 4DE572E3B9038B449A94B247FA9C8A676FE52BCF () EXCH2010B ! sit ! fraunhofer ! de
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hi Naveen.
Best use Scene.v().getHierarchy() to browse Subclasses.
Cheers,
Eric
On Mar 29, 2015 13:53, Naveen Neelakandan <neelakandan@wisc.edu> wrote:
Hello,
I am working with Soot on a project. I was wondering if there was any way for me to \
obtain a VTable equivalent for Java classes from Soot?
Basically, for a given class, I would like to know for each method in that class, \
which of the sub-classes override that method. So for instance if I have a super \
class Animal with a method run() and 2 sub-classes Cat and Dog that override run(), I \
would like to be able to be able to query for these 2 sub-classes. What is the \
easiest way in which I can do this in Soot?
If there is no direct support, I am thinking I have to traverse all the classes \
myself and create a VTable-like data structure myself? I would appreciate any help \
with this.
Thanks,
Naveen Neelakandan
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">Hi Naveen.</p>
<p dir="ltr">Best use Scene.v().getHierarchy() to browse Subclasses.</p>
<p dir="ltr">Cheers,<br>
Eric</p>
<div class="gmail_quote">On Mar 29, 2015 13:53, Naveen Neelakandan \
<neelakandan@wisc.edu> wrote:<br type="attribution"> <blockquote class="quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div \
dir="ltr"> <div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:'calibri' \
, 'arial' , 'helvetica' , sans-serif"> <p>Hello,<br>
</p>
<p><br>
</p>
<p>I am working with Soot on a project. I was wondering if there was any way for me \
to obtain a VTable equivalent for Java classes from Soot?<br> </p>
<p><br>
</p>
<p>Basically, for a given class, I would like to know for each method in that class, \
which of the sub-classes override that method. So for instance if I have a super \
class Animal with a method run() and 2 sub-classes Cat and Dog that override run(), I \
would like to be able to be able to query for these 2 sub-classes. What is the \
easiest way in which I can do this in Soot?<br> </p>
<p><br>
</p>
<p>If there is no direct support, I am thinking I have to traverse all the classes \
myself and create a VTable-like data structure myself? I would appreciate any help \
with this.<br> </p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p>Naveen Neelakandan<br>
</p>
</div>
</div>
</blockquote>
</div>
</body>
</html>
_______________________________________________
Soot-list mailing list
Soot-list@CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
--===============4124336290505897957==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic