Class TransformerHelper

java.lang.Object
org.powermock.core.transformers.javassist.support.TransformerHelper

public class TransformerHelper extends Object
  • Field Details

  • Constructor Details

    • TransformerHelper

      public TransformerHelper()
  • Method Details

    • isAccessFlagSynthetic

      private static boolean isAccessFlagSynthetic(javassist.CtMethod method)
    • isBridgeMethod

      private static boolean isBridgeMethod(javassist.CtMethod method)
    • getCorrectReturnValueType

      public static 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 String getReturnTypeAsString(javassist.CtMethod method) throws javassist.NotFoundException
      Throws:
      javassist.NotFoundException
    • shouldTreatAsSystemClassCall

      public static boolean shouldTreatAsSystemClassCall(javassist.CtClass declaringClass)