[Soot-list] Creating a class from scratch with diamond operator

Eric Bodden eric.bodden at uni-paderborn.de
Thu Oct 31 05:22:21 EDT 2019


Hi Umar.


SootClasses cannot have type parameters. This is because in bytecode they do not exist either.


Best wishes

Eric

--
Sent from my mobile
________________________________
Von: Umar Farooq <ufaro001 at ucr.edu>
Gesendet: Donnerstag, 31. Oktober 2019 05:50
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] Creating a class from scratch with diamond operator


Hi,

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(<T>) operator. The class should look like this if we were writing in java.

public class MyClassType extends TypeToken<MyClass> {

}

I can see setSuperclass API for SootClass, but I could not find any option to specify the type parameter.

Any idea about this?

Bests,

--
Umar Farooq
Ph.D. Candidate, Computer Science & Engineering
University of California, Riverside
http://www.cs.ucr.edu/~ufaro001/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20191031/4d2b1d10/attachment-0001.html>


More information about the Soot-list mailing list