Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does .v() mean in soot library?

Tags:

java

soot

I work with soot library.

In different examples I see .v() method, for example Jimple.v(), scene.v(), ... .

Now I want ask what does it mean? Specially in Jimple.v().

like image 850
jody abbot Avatar asked Oct 31 '15 21:10

jody abbot


1 Answers

It is the singleton pattern implementation in soot.

E.g. Jimple.v() returns the global single instance of Jimple class. Same for the Scene class.

Reference: soot / Creating a class from scratch.

like image 58
Alex Shesterov Avatar answered Oct 02 '22 09:10

Alex Shesterov