in commands/FBClassDump.py [0:0]
def prettyPrintString(self):
attrs = []
if "N" in self.attributes:
attrs.append("nonatomic")
else:
attrs.append("atomic")
if "&" in self.attributes:
attrs.append("strong")
elif "C" in self.attributes:
attrs.append("copy")
elif "W" in self.attributes:
attrs.append("weak")
else:
attrs.append("assign")
if "R" in self.attributes:
attrs.append("readonly")
if "G" in self.attributes:
attrs.append("getter={}".format(self.attributes["G"]))
if "S" in self.attributes:
attrs.append("setter={}".format(self.attributes["S"]))
return "@property ({}) {} {};".format(
", ".join(attrs), decode(self.attributes["T"]), self.name
)