<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;margin-top:0px">Hi,</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px"><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="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;overflow:visible"><pre style="box-sizing:border-box;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);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal"><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">public</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">class</span> <span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193)">MyClassType</span> <span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">extends</span> <span class="gmail-pl-e" style="box-sizing:border-box;color:rgb(111,66,193)">TypeToken<<span class="gmail-pl-smi" style="box-sizing:border-box;color:rgb(36,41,46)">MyClass</span>></span> {
}</pre></div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I can see <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">setSuperclass</code> API for <code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.0470588);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">SootClass</code>, but I could not find any option to specify the type parameter.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Any idea about this?</p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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>