Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Bindings order?(How to get a list of bindings representing all the fields declared as members of a class, interface, or enum type in the declared order of the Java source file?)
Bindings order? [message #731877] Mon, 03 October 2011 07:19 Go to next message
Eclipse UserFriend
Hi,

I'm using the "IVariableBinding[] org.eclipse.jdt.core.dom.ITypeBinding.getDeclaredFields()" API, but as its documentation stands: "The resulting bindings are in no particular order.".
Is there any other way to get this result set in the declared order of the Java source file?

Thank you,
Chris
Re: Bindings order? [message #732162 is a reply to message #731877] Tue, 04 October 2011 02:08 Go to previous messageGo to next message
Eclipse UserFriend
You can determine the order by calling IVariableBinding#getVariableId()
[SOLVED] Re: Bindings order? [message #732202 is a reply to message #732162] Tue, 04 October 2011 04:32 Go to previous messageGo to next message
Eclipse UserFriend
That's really great news, thank you Satyam.
Re: [SOLVED] Re: Bindings order? [message #732271 is a reply to message #732202] Tue, 04 October 2011 07:40 Go to previous message
Eclipse UserFriend
https://bitbucket.org/cbismuth/jdtsort/issue/1/
Previous Topic:parsing function calls
Next Topic:Implicit conversion between Double and double
Goto Forum:
  


Current Time: Tue Jul 08 15:34:16 EDT 2025

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

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

Back to the top