Class LocalGenerator

java.lang.Object
sootup.core.jimple.basic.LocalGenerator

public class LocalGenerator extends Object
Generates locals for Body.
Author:
Linghui Luo, Markus Schmidt
  • Constructor Details

    • LocalGenerator

      public LocalGenerator(@Nonnull Set<Local> existingLocals)
      Creates Locals Local with a standard naming scheme. If a Set of Locals is provided, the LocalGenerator checks whether the name is already taken.
  • Method Details

    • generateThisLocal

      public Local generateThisLocal(@Nonnull Type type)
      generate this local with given type
    • generateLocal

      public Local generateLocal(@Nonnull Type type)
      generates a new Local given the type for local.
    • generateParameterLocal

      public Local generateParameterLocal(@Nonnull Type type, int index)
    • getLocals

      public Set<Local> getLocals()
      Return all locals created for the body referenced in this LocalGenrator.
    • getThisLocal

      @Nullable public Local getThisLocal()
    • getParameterLocal

      public Local getParameterLocal(int i)