Package pypat :: Package behavioral :: Module visitor :: Class Visitee
[hide private]
[frames] | no frames]

Class Visitee

source code

object --+
         |
        Visitee


A base class for objects that wish to be able to be visited by a Visitor class.

- External Usage documentation: U{https://github.com/tylerlaberge/PyPatterns/wiki/Behavioral-Pattern-Usage}
- External Visitor Design Pattern documentation: U{https://en.wikipedia.org/wiki/Visitor_pattern}

Instance Methods [hide private]
 
accept(self, visitor, *args, **kwargs)
Have a visitor visit this class instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

accept(self, visitor, *args, **kwargs)

source code 

Have a visitor visit this class instance.

Parameters:
  • visitor (Visitor) - The visitor to visit.
  • args - Any args to send with the visit.
  • kwargs - Any kwargs to send with the visit.