Lines Matching +full:visitor +full:- +full:keys
1 """Generic visitor pattern implementation for Python objects."""
6 class Visitor(object): class
11 assert celf != Visitor, "Subclass Visitor instead."
26 "Oops, class '%s' has visitor function for '%s' defined already."
71 """Called to visit an object. This function loops over all non-private
72 attributes of the objects and calls any user-registered (via
75 If there is no user-registered visit function, of if there is and it
77 visitor.defaultStop is False (default), then the visitor will proceed
80 keys = sorted(vars(obj).keys())
83 for key in keys:
114 """This is the main entry to the visitor. The visitor will visit object
117 The visitor will first determine if there is a registered (via
119 will be called, and (visitor, obj, *args, **kwargs) will be passed to
122 If there is no user-registered visit function, of if there is and it
124 visitor.defaultStop is False (default), then the visitor will proceed