public void mimicClass ( CtClass src , CtClass dst , MimicMode defaultMimicMode , MimicMethod [ ] mimicMethods ) throws NotFoundException , CannotCompileException , MimicException { mimicInterfaces ( src , dst ) ; mimicFields ( src , dst ) ; mimicConstructors ( src , dst ) ; mimicMethods ( src , dst , defaultMimicMode , mimicMethods ) ; }
Copies all fields constructors and methods declared in class src into dst . All interfaces implemented by src will also be implemented by dst .