Class TransformerHelper
java.lang.Object
org.powermock.core.transformers.javassist.support.TransformerHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCorrectReturnValueType
(javassist.CtClass returnTypeAsCtClass) static String
getReturnTypeAsString
(javassist.CtMethod method) private static boolean
isAccessFlagSynthetic
(javassist.CtMethod method) private static boolean
isBridgeMethod
(javassist.CtMethod method) static boolean
isNotSyntheticField
(javassist.bytecode.FieldInfo fieldInfo) static boolean
shouldSkipMethod
(javassist.CtMethod method) static boolean
shouldTreatAsSystemClassCall
(javassist.CtClass declaringClass)
-
Field Details
-
VOID
- See Also:
-
-
Constructor Details
-
TransformerHelper
public TransformerHelper()
-
-
Method Details
-
isAccessFlagSynthetic
private static boolean isAccessFlagSynthetic(javassist.CtMethod method) -
isBridgeMethod
private static boolean isBridgeMethod(javassist.CtMethod method) -
getCorrectReturnValueType
- Returns:
- The correct return type, i.e. takes care of casting the a wrapper type to primitive type if needed.
-
isNotSyntheticField
public static boolean isNotSyntheticField(javassist.bytecode.FieldInfo fieldInfo) -
shouldSkipMethod
public static boolean shouldSkipMethod(javassist.CtMethod method) -
getReturnTypeAsString
public static String getReturnTypeAsString(javassist.CtMethod method) throws javassist.NotFoundException - Throws:
javassist.NotFoundException
-
shouldTreatAsSystemClassCall
public static boolean shouldTreatAsSystemClassCall(javassist.CtClass declaringClass)
-