public static void createInheritanceLink ( CtClass concreteClass , String superClassName ) { if ( superClassName != null && superClassName . length ( ) >= 0 ) { try { concreteClass . setSuperclass ( classPool . get ( superClassName ) ) ; } catch ( CannotCompileException e ) { e . printStackTrace ( ) ; } catch ( NotFoundException e ) { e . printStackTrace ( ) ; } } }
Create the inheritance link with the absract class provided by the developer