Class TransformerHelper
java.lang.Object
org.powermock.core.transformers.javassist.support.TransformerHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCorrectReturnValueType(javassist.CtClass returnTypeAsCtClass) static StringgetReturnTypeAsString(javassist.CtMethod method) private static booleanisAccessFlagSynthetic(javassist.CtMethod method) private static booleanisBridgeMethod(javassist.CtMethod method) static booleanisNotSyntheticField(javassist.bytecode.FieldInfo fieldInfo) static booleanshouldSkipMethod(javassist.CtMethod method) static booleanshouldTreatAsSystemClassCall(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)
-