Package sootup.interceptors
Class ConstantPropagatorAndFolder
java.lang.Object
sootup.interceptors.ConstantPropagatorAndFolder
- All Implemented Interfaces:
BodyInterceptor
Does constant propagation and folding. Constant folding is the compile-time evaluation of
constant expressions (i.e. 2 * 3).
- Author:
- Marcus Nachtigall
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptBody
(Body.BodyBuilder builder, View view) Takes a BodyBuilder and may apply a transformation to it, for example removing unused local variables.
-
Constructor Details
-
ConstantPropagatorAndFolder
public ConstantPropagatorAndFolder()
-
-
Method Details
-
interceptBody
Description copied from interface:BodyInterceptor
Takes a BodyBuilder and may apply a transformation to it, for example removing unused local variables.- Specified by:
interceptBody
in interfaceBodyInterceptor
-