Package sootup.core.jimple.basic
Class LocalGenerator
java.lang.Object
sootup.core.jimple.basic.LocalGenerator
Generates locals for Body.
- Author:
- Linghui Luo, Markus Schmidt
-
Constructor Summary
ConstructorDescriptionLocalGenerator
(Set<Local> existingLocals) Creates LocalsLocal
with a standard naming scheme. -
Method Summary
Modifier and TypeMethodDescriptiongenerateLocal
(Type type) generates a newLocal
given the type for local.generateParameterLocal
(Type type, int index) generateThisLocal
(Type type) generate this local with given typeReturn all locals created for the body referenced in this LocalGenrator.getParameterLocal
(int i)
-
Constructor Details
-
LocalGenerator
Creates LocalsLocal
with a standard naming scheme. If a Set of Locals is provided, the LocalGenerator checks whether the name is already taken.
-
-
Method Details
-
generateThisLocal
generate this local with given type -
generateLocal
generates a newLocal
given the type for local. -
generateParameterLocal
-
getLocals
Return all locals created for the body referenced in this LocalGenrator. -
getThisLocal
-
getParameterLocal
-