CtClass getCtClass(Class<?> clazz) { try { ClassPool pool = repository.findClassPool(clazz.getClassLoader()); return pool.get(clazz.getName()); } catch (NotFoundException e) { throw new RuntimeException("Unable to load CtClass for " + clazz, e); } }
CtClass getCtClass(Class clazz) { try { ClassPool pool = repository.findClassPool(clazz.getClassLoader()); return pool.get(clazz.getName()); } catch (NotFoundException e) { throw new RuntimeException("Unable to load CtClass for " + clazz, e); } }
/** * Get the javassist class * * @param clazz the class * @return the javassist method */ static CtClass getCtClass(Class clazz) { try { ClassPool pool = repository.findClassPool(clazz.getClassLoader()); return pool.get(clazz.getName()); } catch (NotFoundException e) { throw new RuntimeException("Unable to load CtClass for " + clazz, e); } }