class Entity:
    def __init__(self):
        self.trueList = []
        self.falseList = []
        self.nextList = []
        self.type = None
        self.place = None
        self.kind = None
        self.quad = 0
        self.size = None
        self.breakList = []
        self.caseList = []

    @staticmethod
    def backpatch(indexes,quad_list, target):
        # print(quad_list, '-----------------------------------------')
        for index in indexes:
            quad_list[index].result += ' ' + str(target)

    def __str__(self):
        s = ''
        if self.trueList:
            s += 'trueList : ' + self.trueList.__str__() + '\n'
        if self.falseList:
            s += 'falseList : ' + self.falseList.__str__() + '\n'
        s += str(self.place)
        s += ''
        return s
