'wholeClassDef' template handles final classes as well