Package sootup.java.core
Class ConstantUtil
java.lang.Object
sootup.java.core.ConstantUtil
Converts plain Java objects - e.g. annotation values - into their Jimple
Constant.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantfromObject(Object obj, @NonNull IdentifierFactory identifierFactory) Converts the given object into the Jimple constant that represents it.
-
Method Details
-
fromObject
Converts the given object into the Jimple constant that represents it.- Parameters:
obj- the value to convert, may benullidentifierFactory- the factory that provides the types of reference constants- Returns:
- the constant representing
obj
-