@Test void toCtClasses() throws NotFoundException { Class<?>[] classes = { Object.class, ClassPoolUtilsTest.class }; CtClass[] ctClasses = ClassPoolUtils.toCtClasses(classes); Assertions.assertNotNull(ctClasses); Assertions.assertEquals(classes.length, ctClasses.length); Assertions.assertEquals(classes[0].getSimpleName(), ctClasses[0].getSimpleName()); Assertions.assertEquals(classes[1].getSimpleName(), ctClasses[1].getSimpleName()); }
public static CtClass[] toCtClasses(Class<?>... classes) throws NotFoundException { CtClass[] ctClasses = new CtClass[classes.length]; for (int index = 0; index < classes.length; index++) { ctClasses[index] = get(classes[index]); } return ctClasses; }
ClassPoolUtils { public static CtClass[] toCtClasses(Class<?>... classes) throws NotFoundException { CtClass[] ctClasses = new CtClass[classes.length]; for (int index = 0; index < classes.length; index++) { ctClasses[index] = get(classes[index]); } return ctClasses; } }
ClassPoolUtils { public static CtClass[] toCtClasses(Class<?>... classes) throws NotFoundException { CtClass[] ctClasses = new CtClass[classes.length]; for (int index = 0; index < classes.length; index++) { ctClasses[index] = get(classes[index]); } return ctClasses; } private  ClassPoolUtils(); }
ClassPoolUtils { public static CtClass[] toCtClasses(Class<?>... classes) throws NotFoundException { CtClass[] ctClasses = new CtClass[classes.length]; for (int index = 0; index < classes.length; index++) { ctClasses[index] = get(classes[index]); } return ctClasses; } private  ClassPoolUtils(); static CtClass[] toCtClasses(Class<?>... classes); static Class<?> toClass(CtClass clazz); static CtClass require(Class<?> clazz); static CtClass[] require(Class<?>[] classes); static CtClass get(Class<?> clazz); static ClassPool getClassPool(); }
ClassPoolUtils { public static CtClass[] toCtClasses(Class<?>... classes) throws NotFoundException { CtClass[] ctClasses = new CtClass[classes.length]; for (int index = 0; index < classes.length; index++) { ctClasses[index] = get(classes[index]); } return ctClasses; } private  ClassPoolUtils(); static CtClass[] toCtClasses(Class<?>... classes); static Class<?> toClass(CtClass clazz); static CtClass require(Class<?> clazz); static CtClass[] require(Class<?>[] classes); static CtClass get(Class<?> clazz); static ClassPool getClassPool();  }