Package sootup.core.util
Class Utils
java.lang.Object
sootup.core.util.Utils
- Author:
- Linghui Luo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquiv
(EquivTo expected, EquivTo actual) static <T> void
assertInstanceOfSatisfying
(Object actual, Class<T> tClass, Consumer<T> checker) bodyStmtsAsStrings
(@NonNull Body body) filterJimple
(String str) filterJimple
(Stream<String> stream) static String
generateJimpleForTest
(@NonNull Body b) Helper for writing tests .static String
generateJimpleTest
(@NonNull List<String> stmts) static void
outputJimple
(SootClass cl, boolean print) static void
static void
print
(SootMethod method, boolean print) static List<BodyInterceptor>
wrapEachBodyInterceptorWith
(@NonNull List<BodyInterceptor> bodyInterceptors, @NonNull BiFunction<BodyInterceptor, Body.BodyBuilder, Boolean> bi) e.g. to print b to understand / compare what every interceptor does.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
wrapEachBodyInterceptorWith
public static List<BodyInterceptor> wrapEachBodyInterceptorWith(@NonNull List<BodyInterceptor> bodyInterceptors, @NonNull BiFunction<BodyInterceptor, Body.BodyBuilder, Boolean> bi) e.g. to print b to understand / compare what every interceptor does. -
outputJimple
-
print
-
print
-
assertEquiv
-
assertInstanceOfSatisfying
-
bodyStmtsAsStrings
-
filterJimple
-
filterJimple
-
generateJimpleForTest
Helper for writing tests . -
generateJimpleTest
-