Generate names for anonymous classes.