Class ConstantUtil

java.lang.Object
sootup.java.core.ConstantUtil

public class ConstantUtil extends Object
Converts plain Java objects - e.g. annotation values - into their Jimple Constant.
  • Method Details

    • fromObject

      public static Constant fromObject(Object obj, @NonNull IdentifierFactory identifierFactory)
      Converts the given object into the Jimple constant that represents it.
      Parameters:
      obj - the value to convert, may be null
      identifierFactory - the factory that provides the types of reference constants
      Returns:
      the constant representing obj