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
ConstructorsConstructorDescriptionLocalGenerator
(@NonNull Set<Local> existingLocals) Creates LocalsLocal
with a standard naming scheme. -
Method Summary
Modifier and TypeMethodDescriptiongenerateLocal
(@NonNull Type type) generates a newLocal
given the type for local.generateParameterLocal
(@NonNull Type type, int index) generateThisLocal
(@NonNull Type type) generate this local with given typeReturn all locals created for the body referenced in this LocalGenrator.getParameterLocal
(int i) @Nullable Local
-
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
-