Class CtUtils

java.lang.Object
panda.utilities.CtUtils

public final class CtUtils extends Object
Javassist utils
  • Method Details

    • hasCustomSuperclass

      public static boolean hasCustomSuperclass(javassist.CtClass ctClass)
      Check if class has superclass other than Object
      Parameters:
      ctClass - the class to check
      Returns:
      true if superclass is not object
    • hasField

      public static boolean hasField(javassist.CtClass ctClass, String fieldName)
      Check if class has a field with the given name
      Parameters:
      ctClass - the class to check
      fieldName - the name of field to search for
      Returns:
      true if class contains field with the given name