private static void addToOpenEngSBModelValues ( CtClass clazz ) throws NotFoundException , CannotCompileException , ClassNotFoundException { StringBuilder builder = new StringBuilder ( ) ; CtClass [ ] params = generateClassField ( ) ; CtMethod m = new CtMethod ( cp . get ( List . class . getName ( ) ) , "toOpenEngSBModelValues" , params , clazz ) ; builder . append ( createTrace ( "Add elements of the model tail" ) ) . append ( "List elements = new ArrayList();\n" ) . append ( createTrace ( "Add properties of the model" ) ) . append ( createModelEntryList ( clazz ) ) . append ( "return elements;" ) ; m . setBody ( createMethodBody ( builder . toString ( ) ) ) ; clazz . addMethod ( m ) ; }
Adds the toOpenEngSBModelValues method to the class .