/** * Inserts members to a class. Using the rules specified in the {@link CodeStyle} * it finds the proper place for each of the members and calls {@link TreeMaker.insertClassMember} * * @param clazz the class to insert the members to * @param members the members to insert * @return the modified class * @since 0.20 */ public ClassTree insertClassMembers(ClassTree clazz, Iterable<? extends Tree> members) { assert members != null; for (Tree member : members) clazz = insertClassMember(clazz, member); return clazz; }
newClassTree = GeneratorUtilities.get(wc).insertClassMember(newClassTree, t);