parameters: (self, visitor)
docstring: The operation in Visitor design pattern that takes a visitor as an argument
          and calls the visitor's method that corresponds to this element.
          @raise Exception: if the given visitor is not a subclass of AbstractVisitor
docstring_summary: The operation in Visitor design pattern that takes a visitor as an argument
          and calls the visitor's method that corresponds to this element.
docstring_tokens: The operation in Visitor design pattern that takes a visitor as an argument and calls the visitor s method that corresponds to this element .
function: def accept(self, visitor):
          """
          The operation in Visitor design pattern that takes a visitor as an argument
          and calls the visitor's method that corresponds to this element.
          @raise Exception: if the given visitor is not a subclass of AbstractVisitor
          """
          # visitor should be extended from the AbstractVisitor class
          if issubclass(visitor.__class__, AbstractVisitor.AbstractVisitor):
              visitor.privateVisit(self.__obj)
          else:
              DEBUG.error(
                  "Private.accept() - the given visitor is not a subclass of AbstractVisitor!"
              )
              raise Exception(
                  "Private.accept() - the given visitor is not a subclass of AbstractVisitor!"
              )
function_tokens: def accept ( self , visitor ) : # visitor should be extended from the AbstractVisitor class if issubclass ( visitor . __class__ , AbstractVisitor . AbstractVisitor ) : visitor . privateVisit ( self . __obj ) else : DEBUG . error ( "Private.accept() - the given visitor is not a subclass of AbstractVisitor!" ) raise Exception ( "Private.accept() - the given visitor is not a subclass of AbstractVisitor!" )