Bug 481809 - [AA] Allow to specify insertion order when adding new field/method/constructor etc to MutableClassDeclaration
Summary: [AA] Allow to specify insertion order when adding new field/method/constructo...
Status: UNCONFIRMED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.4   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-10 04:01 EST by Evermind CLA
Modified: 2015-11-10 04:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evermind CLA 2015-11-10 04:01:21 EST
Currently in MutableClassDeclaration there are only addField/addMethod/addConstructor etc, which can only add the new element to the last of the class. It would be useful to allow specifying insertion order when adding new elements.
    One use case is a @Log AA which adds a static field LOG to target class, which would be preferred to be the first field, since initialization of other fields may invoke LOG methods, thus LOG needs to be initialized first.