[Soot-list] Create a method with no arguments?
Kelvin Tian
kevinn.tian at gmail.com
Wed Jul 22 17:02:31 EDT 2009
Hi,
Just a silly question. I wanna create a method with no arguments, like
this void Foo(). The tutorial example to create main() method is like
below, and the second argument is a list, like below.
===
method = new SootMethod("main",
Arrays.asList(new Type[] {ArrayType.v(RefType.v("java.lang.String"), 1)}),
VoidType.v(), Modifier.PUBLIC | Modifier.STATIC);
===
If I want to create a method with no arguments, what am I supposed to put as
the second argument of SootMethod constructor? I tried null, VoidType.v()
and so on, it just doesn't work. Thanks for any suggestions!
--
Best regards,
Kelvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090722/92011a06/attachment.html
More information about the Soot-list
mailing list