专用语言简化了对问题的描述,这本身也是一种抽象行为。
A specific language provides a simplification of the things it describes; it's also an abstraction.
只需创建一个接口,用它描述Collection应该提供的抽象行为。
All you need to do is create an interface that describes the abstract behavior the Collection should provide.
我们需要告知代码生成器,哪个组件将公开此抽象行为,因此我们创建了一个组件类型文件。
We need to tell the code generator which component type will expose this abstract behaviour, so we will create a componentType file.
应用推荐