Package panda.utilities
Class CtUtils
java.lang.Object
panda.utilities.CtUtils
Javassist utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasCustomSuperclass(javassist.CtClass ctClass) Check if class has superclass other thanObjectstatic booleanCheck if class has a field with the given name
-
Method Details
-
hasCustomSuperclass
public static boolean hasCustomSuperclass(javassist.CtClass ctClass) Check if class has superclass other thanObject- Parameters:
ctClass- the class to check- Returns:
- true if superclass is not object
-
hasField
Check if class has a field with the given name- Parameters:
ctClass- the class to checkfieldName- the name of field to search for- Returns:
- true if class contains field with the given name
-