Community
Participate
Working Groups
Currently every Xtend function and class is public. We should support protected and private (and maybe an explicit public) as well.
Preliminary scheduled for 2.0RC1
postponed to SR1
*** Bug 354392 has been marked as a duplicate of this bug. ***
We should also have visibility for fields.
First shot pushed. - As opposed to Java, there is no package private (default) visibility. - Top level classes in Java can only be public or package private, so they don't have a visibility in Xtend (generated JavaClass is public) - XtendFields are private by default. Syntax is public extension String field - Non-dispatch XtendFunctions are public by default. - Dispatch functions are by default protected. The synthetic dispatcher is usually public by default, except for the case when all dispatch cases have the same non-public visibility. The dispatcher has the same visibility then. - For functions, the visibility is specified between def/override and the optional dispatch, e.g. override private dispatch foo() Still missing: - Icons for labels - Docs - Some validation
Added icons and validation rules, as well as tests.
Updated docs.
Closing all bugs that were set to RESOLVED before Neon.0