Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » java final, @Override keywords
java final, @Override keywords [message #1790495] Mon, 11 June 2018 20:09 Go to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 118
Registered: March 2014
Senior Member
Are there any stereotypes from ant profiles that will allow the java code generation to add the 'final ' keyword.

In a similar way, is there any way to get any of the java annotations generated, eg @Override, @Nullable.

Thanks,
Steve
Re: java final, @Override keywords [message #1790753 is a reply to message #1790495] Fri, 15 June 2018 15:18 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 159
Registered: March 2011
Location: Paris Saclay, France
Senior Member
The final keyword is supported for different elements.
In case of an attribute or a method, it can be controlled via the UML "isLeaf" property. Note that this property is somewhat hidden as it is only visible in Papyrus "Advanced" dialog,
The Java profile have a stereotype called "Final" which can be applied to a parameter.

As far as I know, Java annotations are currently not supported
Previous Topic:Need Help: what is the best approach to remove some UML elements from palette/menus?
Next Topic:Papyrus does not recognize the types from an UML Profile
Goto Forum:
  


Current Time: Sat Sep 22 06:52:24 GMT 2018

Powered by FUDForum. Page generated in 0.02871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top