继续生成字段的示例,例如:
def handle (EClass c) {
val attr = EcoreFactory::eINSTANCE.createEAttribute
attr.name = "test"
attr.EType = EcorePackage::eINSTANCE.EString
c.EStructuralFeatures += attr
}
我可以将其生成为静态字段吗?怎么做?
提前致谢,
继续生成字段的示例,例如:
def handle (EClass c) {
val attr = EcoreFactory::eINSTANCE.createEAttribute
attr.name = "test"
attr.EType = EcorePackage::eINSTANCE.EString
c.EStructuralFeatures += attr
}
我可以将其生成为静态字段吗?怎么做?
提前致谢,