Class CallFilter

java.lang.Object
sootup.callgraph.scope.CallFilter

public final class CallFilter extends Object
The calls of a method that a CallResolver lets the call graph algorithm resolve: all(), none() or those of the statements accepted by a predicate (of(java.util.function.Predicate<sootup.core.jimple.common.stmt.InvokableStmt>)). Only none() lets the algorithm skip the method without loading its body.
  • Method Details

    • all

      public static @NonNull CallFilter all()
      Resolves the calls of every statement.
    • none

      public static @NonNull CallFilter none()
      Resolves no call; the body of the method is not loaded.
    • of

      public static @NonNull CallFilter of(@NonNull Predicate<InvokableStmt> resolvesStatement)
      Resolves the calls of the statements accepted by resolvesStatement, which is asked once per invokable statement of the loaded body.
    • resolvesNone

      public boolean resolvesNone()
      Whether no call of the method is resolved, so that its body need not be loaded.
    • resolves

      public boolean resolves(@NonNull InvokableStmt statement)
      Whether the calls of statement are resolved.