Get class definition using reflection.