I'm developing a language by taking advantages of groovy-eclipse plugin. I can define a property successfully. However, I can not do same even for a simple method. Probably I'm missing some very simple thing at the center of all...
- Can't I define a method that delegates to a simple closure?
- What does type property define in a method pointcut?
Following is only contribution block in my groovy dsl file;
currentType(currentType("com.galaksiya.World")){
method name : 'sayHello',
provider : 'Galaksiya',
doc : 'This is a simple salutor.',
delegate: {-> println 'Hello World'}
}
Is it a simple defect or do I need to change my perspective?