[Soot-list] soot.Type

Eric Bodden eric.bodden at mail.mcgill.ca
Mon Jul 31 11:03:10 EDT 2006


Hello.

AFAIK there is not direct way to do what you want, i.e. convert a Method
into a SootMethod or a Class into a Soot Type. The easiest way to
retrieve a method in Soot is to my best knowledge
Scene.v().getMethod(String):

http://www.sable.mcgill.ca/soot/doc/soot/Scene.html#getMethod(java.lang.
String)

Eric

> -----Original Message-----
> From: soot-list-bounces at sable.mcgill.ca [mailto:soot-list-
> bounces at sable.mcgill.ca] On Behalf Of
Toth.Gabriella.2 at stud.u-szeged.hu
> Sent: Monday, July 31, 2006 10:26 AM
> To: Soot-list at sable.mcgill.ca
> Subject: [Soot-list] soot.Type
> 
> 
> Hi!
> I would like to cast Method to sootMethod. SootMethod's constructor:
> SootMethod(String,List,Type). The Type is soot.Type.
> Java.lang.reflect.Method.getGenericReturnType() return value is not
> soot.Type.
> How can I cast it to soot.Type? Is there any source for it or I have
to
> write it?
> Thanks
> Toth Gabriella
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> _______________________________________________
> 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