Package sootup.core.util
Class Utils
java.lang.Object
sootup.core.util.Utils
- Author:
- Linghui Luo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquiv
(EquivTo expected, EquivTo actual) static <T> void
assertInstanceOfSatisfying
(Object actual, Class<T> tClass, Consumer<T> checker) bodyStmtsAsStrings
(Body body) filterJimple
(String str) filterJimple
(Stream<String> stream) static String
Helper for writing tests .static String
generateJimpleTest
(List<String> stmts) static void
outputJimple
(SootClass cl, boolean print) static void
static void
print
(SootMethod method, boolean print) static List<BodyInterceptor>
wrapEachBodyInterceptorWith
(List<BodyInterceptor> bodyInterceptors, BiFunction<BodyInterceptor, Body.BodyBuilder, Boolean> bi) e.g.
-
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
-