Simply running the data structure analysis engine code on a class isn't all that much fun because the result is just one data structure representing another data structure.
仅仅在一个类上运行数据结构分析引擎代码,不那么有趣,因为结果只是代表另一个数据结构的数据结构。
Listing 1 gives the code for the root class of this data structure.
清单1给出了这个数据结构根类的代码。
When you've evaluated the code and produced the data structure, simply iterate through it and create each widget in turn.
当执行完代码并产生数据结构时,只需迭代它,依次创建每个小部件。
应用推荐