Class CSObjs
java.lang.Object
pascal.taie.analysis.pta.plugin.util.CSObjs
Static utility methods for
CSObjs
.-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasDescriptor
(CSObj csObj, Descriptor desc) static boolean
static Annotation
toAnnotation
(CSObj csObj) Converts a CSObj of an Annotation to the Annotation.static JClass
Converts a CSObj of class to corresponding JClass.static JMethod
toConstructor
(CSObj csObj) Converts a CSObj of java.lang.reflect.Constructor to corresponding JMethod.static JField
Converts a CSObj of java.lang.reflect.Method to corresponding JMethod.static JMethod
Converts a CSObj of java.lang.reflect.Method to corresponding JMethod.static MethodHandle
toMethodHandle
(CSObj csObj) Converts a CSObj of MethodHandle constant to corresponding MethodHandle.static MethodType
toMethodType
(CSObj csObj) Converts a CSObj of MethodType to corresponding MethodType.static String
Converts a CSObj of string constant to corresponding String.static Type
Converts a CSObj of class to corresponding type.
-
Method Details
-
hasDescriptor
- Returns:
true
ifcsObj
isMockObj
and it has descriptordesc
.
-
toString
Converts a CSObj of string constant to corresponding String. If the object is not a string constant, then return null. -
toClass
Converts a CSObj of class to corresponding JClass. If the object is not a class constant, then return null. -
toConstructor
Converts a CSObj of java.lang.reflect.Constructor to corresponding JMethod. If the object does not represent a Constructor, then return null. -
toMethod
Converts a CSObj of java.lang.reflect.Method to corresponding JMethod. If the object does not represent a Method, then return null. -
toField
Converts a CSObj of java.lang.reflect.Method to corresponding JMethod. If the object does not represent a Method, then return null. -
toType
Converts a CSObj of class to corresponding type. If the object is not a class constant, then return null. -
toMethodType
Converts a CSObj of MethodType to corresponding MethodType. If the object is not a MethodType, then return null. -
toMethodHandle
Converts a CSObj of MethodHandle constant to corresponding MethodHandle. If the object is not a MethodHandle constant, then return null. -
toAnnotation
Converts a CSObj of an Annotation to the Annotation. If the object is not an Annotation object, then return null. -
isArray
- Returns:
true
if given csObj is an array object.
-