Package sootup.interceptors
Class UnreachableCodeEliminator
java.lang.Object
sootup.interceptors.UnreachableCodeEliminator
- All Implemented Interfaces:
BodyInterceptor
A BodyInterceptor that removes all unreachable stmts from the given Body.
- Author:
- Zun Wang
-
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
-
UnreachableCodeEliminator
public UnreachableCodeEliminator()
-
-
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
-