'Visit a node.'

def Visit(self, node):

    method = 'Visit_{0}'.format(pytree_utils.NodeName(node))
    if hasattr(self, method):
        getattr(self, method)(node)
    elif isinstance(node, pytree.Leaf):
        self.DefaultLeafVisit(node)
    else:
        self.DefaultNodeVisit(node)
