Class InvokeUtils

java.lang.Object
pascal.taie.analysis.pta.plugin.util.InvokeUtils

public final class InvokeUtils extends Object
Provides utility methods to conveniently handle Invoke.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Special number representing the base variable of an invocation.
    static final int
    Special number representing the variable that receivers the result of the invocation.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Var
    getVar(Invoke callSite, int index)
    Retrieves variable from a call site and index.
    static int
    Coverts string to index.
    static String
    toString(int index)
    Converts index to string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BASE

      public static final int BASE
      Special number representing the base variable of an invocation.
      See Also:
    • RESULT

      public static final int RESULT
      Special number representing the variable that receivers the result of the invocation.
      See Also:
  • Method Details

    • toInt

      public static int toInt(String s)
      Coverts string to index.
    • toString

      public static String toString(int index)
      Converts index to string.
    • getVar

      public static Var getVar(Invoke callSite, int index)
      Retrieves variable from a call site and index.