Skip to main content



      Home
Home » Modeling » Papyrus » java final, @Override keywords
java final, @Override keywords [message #1790495] Mon, 11 June 2018 16:09 Go to next message
Eclipse UserFriend
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 11:18 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 08:16:31 EDT 2025

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

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

Back to the top