Package sootup.core.util
Class Utils
java.lang.Object
sootup.core.util.Utils
- Author:
- Linghui Luo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertEquiv(EquivTo expected, EquivTo actual) static <T> voidassertInstanceOfSatisfying(Object actual, Class<T> tClass, Consumer<T> checker) bodyStmtsAsStrings(@NonNull Body body) filterJimple(String str) filterJimple(Stream<String> stream) static StringgenerateJimpleForTest(@NonNull Body b) Helper for writing tests .static StringgenerateJimpleTest(@NonNull List<String> stmts) static voidoutputJimple(SootClass cl, boolean print) static voidstatic voidprint(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
-