Class TransformerHelper
- java.lang.Object
-
- org.powermock.core.transformers.javassist.support.TransformerHelper
-
public class TransformerHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVOID
-
Constructor Summary
Constructors Constructor Description TransformerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetCorrectReturnValueType(javassist.CtClass returnTypeAsCtClass)static java.lang.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 Detail
-
VOID
public static final java.lang.String VOID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAccessFlagSynthetic
private static boolean isAccessFlagSynthetic(javassist.CtMethod method)
-
isBridgeMethod
private static boolean isBridgeMethod(javassist.CtMethod method)
-
getCorrectReturnValueType
public static java.lang.String getCorrectReturnValueType(javassist.CtClass returnTypeAsCtClass)
- 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 java.lang.String getReturnTypeAsString(javassist.CtMethod method) throws javassist.NotFoundException- Throws:
javassist.NotFoundException
-
shouldTreatAsSystemClassCall
public static boolean shouldTreatAsSystemClassCall(javassist.CtClass declaringClass)
-
-