Package sootup.interceptors
Class EmptySwitchEliminator
java.lang.Object
sootup.interceptors.EmptySwitchEliminator
- All Implemented Interfaces:
BodyInterceptor
Removes empty switch statements which always take the default action from a method body, i.e.
blocks of the form switch(x) { default: ... }. Such blocks are replaced by the code of the
default block.
- Author:
- Steven Arzt, 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
-
EmptySwitchEliminator
public EmptySwitchEliminator()
-
-
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
-