<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=utf-8">
</head>
<body>
<style type="text/css">
<!--
div#d_1572513741516 p
        {font-family:Calibri,Arial,Helvetica,sans-serif;
        font-size:12.0pt;
        color:#1F497D}
-->
</style>
<div id="d_1572513741516" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; color:#1F497D">
<p dir="ltr" style="margin-top:0; margin-bottom:0">Hi Umar.</p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0">SootClasses cannot have type parameters. This is because in bytecode they do not exist either.</p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0">Best wishes</p>
<p dir="ltr" style="margin-top:0; margin-bottom:0">Eric</p>
<br>
<div id="signature-x" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; color:#1F497D">
--<br>
Sent from my mobile<br>
</div>
</div>
<div id="quoted_header" style="clear:both">
<hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1">
<div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'"><b>Von:</b> Umar Farooq <ufaro001@ucr.edu><br>
<b>Gesendet:</b> Donnerstag, 31. Oktober 2019 05:50<br>
<b>An:</b> soot-list@CS.McGill.CA<br>
<b>Betreff:</b> [Soot-list] Creating a class from scratch with diamond operator <br>
</span></div>
</div>
<br type="attribution">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<p style="margin-bottom:16px; color:rgb(36,41,46); font-size:14px; margin-top:0px">
Hi,</p>
<p style="margin-top:0px; margin-bottom:16px; color:rgb(36,41,46); font-size:14px">
I am trying to create a class from scratch using jimple APIs, the class should extend a superclass by specifying a type parameter using a diamond(<code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:11.899999618530273px; padding:0.2em 0.4em; margin:0px"><T></code>)
 operator. The class should look like this if we were writing in java.</p>
<div class="gmail-highlight gmail-highlight-source-java" style="margin-bottom:16px; color:rgb(36,41,46); font-size:14px; overflow:visible">
<pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:11.899999618530273px; margin-top:0px; margin-bottom:0px; word-wrap:normal; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); word-break:normal"><span class="gmail-pl-k" style="color:rgb(215,58,73)">public</span> <span class="gmail-pl-k" style="color:rgb(215,58,73)">class</span> <span class="gmail-pl-en" style="color:rgb(111,66,193)">MyClassType</span> <span class="gmail-pl-k" style="color:rgb(215,58,73)">extends</span> <span class="gmail-pl-e" style="color:rgb(111,66,193)">TypeToken<<span class="gmail-pl-smi" style="color:rgb(36,41,46)">MyClass</span>></span> {

}</pre>
</div>
<p style="margin-top:0px; margin-bottom:16px; color:rgb(36,41,46); font-size:14px">
I can see <code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:11.899999618530273px; padding:0.2em 0.4em; margin:0px">setSuperclass</code> API for <code style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:11.899999618530273px; padding:0.2em 0.4em; margin:0px">SootClass</code>,
 but I could not find any option to specify the type parameter.</p>
<p style="margin-top:0px; margin-bottom:16px; color:rgb(36,41,46); font-size:14px">
Any idea about this?</p>
<p style="margin-top:0px; color:rgb(36,41,46); font-size:14px; margin-bottom:0px">
Bests,</p>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div><font color="#000000">Umar Farooq</font></div>
<div><font color="#000000">Ph.D. Candidate,<span class="gmail_default" style="font-family:arial,helvetica,sans-serif"> </span></font><span style="color:rgb(0,0,0)">Computer Science & Engineering</span></div>
<div><font color="#000000">University of California, Riverside</font></div>
<div style="color:rgb(136,136,136)"><a href="http://www.cs.ucr.edu/~ufaro001/" target="_blank">http://www.cs.ucr.edu/~ufaro001/</a> <br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>