def satisfies(self, parseNode: ParseNodeDrawable) -> bool: if parseNode.numberOfChildren() > 0: return parseNode.getData().__str__() == self.__symbol else: return False
def satisfies(self, parseNode: ParseNodeDrawable) -> bool: return parseNode.numberOfChildren() > 0 and parseNode.getData().isVP()
def modifier(self, parseNode: ParseNodeDrawable): if parseNode.isLeaf(): name = parseNode.getData().getName() parseNode.clearLayers() parseNode.getLayerInfo().setLayerData(ViewLayerType.ENGLISH_WORD, name) parseNode.clearData()