class_def capable of returning methods and members by visibility.