Nested class and visibility of members [message #1840212] |
Thu, 08 April 2021 14:10  |
Eclipse User |
|
|
|
I want to get nested classes in my generated java file and I did something like below in my grammar but it's not working. Please tell me where is the issue or any other approach of achieving it.
Entity:
'entity' name=ValidID ('extends' superType=JvmTypeReference)? '{'
features+=Feature*
enitities+=Entity*
'}';
Also, I want to change the visibility for each of my fields and inner classes in the java file generated from the model. I tried handling it using jvmvisibility in xtend using below grammar but everything is setting to default only. Please help.
Property:
visibility=('PRIVATE')?('PROTECTED')?('PUBLIC')? name=ValidID ':' type=JvmTypeReference ;
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04414 seconds