'Returns the results name for this token expression.'

def getName(self):

    if self.__name:
        return self.__name
    elif self.__parent:
        par = self.__parent()
        if par:
            return par.__lookup(self)
        else:
            return None
    elif ((len(self) == 1) and (len(self.__tokdict) == 1) and (self.__tokdict.values()[0][0][1] in (0, (-1)))):
        return self.__tokdict.keys()[0]
    else:
        return None
