7

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().

Alex Shesterov
  • 21,630
  • 10
  • 65
  • 88
jody abbot
  • 193
  • 1
  • 14

1 Answers1

7

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.

Alex Shesterov
  • 21,630
  • 10
  • 65
  • 88