Search code examples
javasoot

What does .v() mean in soot library?


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


Solution

  • 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.