Package panda.utilities.javassist
Class ClassPoolUtils
java.lang.Object
panda.utilities.javassist.ClassPoolUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefault runtime exception thrown byClassPoolUtilsutilities -
Method Summary
Modifier and TypeMethodDescriptionstatic javassist.CtClassGet CtClass using the default class poolstatic javassist.ClassPoolGet initialized class poolstatic javassist.CtClassGet CtClass using the default class pool.static javassist.CtClass[]Map array of classes using therequire(Class)static Class<?>static javassist.CtClass[]
-
Method Details
-
toCt
-
toClass
public static Class<?> toClass(javassist.CtClass clazz, Class<?> domainClass) throws javassist.CannotCompileException - Throws:
javassist.CannotCompileException
-
require
Get CtClass using the default class pool. The method throwsClassPoolUtils.ClassPoolExceptionwith a default message if class cannot be located in the pool- Parameters:
clazz- the class to get- Returns:
- class representation
-
require
Map array of classes using therequire(Class)- Parameters:
classes- the array of classes to map- Returns:
- the array of ct classes
-
get
Get CtClass using the default class pool- Parameters:
clazz- the class to get- Returns:
- class representation
- Throws:
javassist.NotFoundException- if class cannot be located in the pool
-
getClassPool
public static javassist.ClassPool getClassPool()Get initialized class pool- Returns:
- the initialized class pool
-