support generateClass