tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kerber <dcker...@verizon.net>
Subject How to get fields list in order
Date Thu, 02 Nov 2006 13:34:33 GMT
This is more of a java question than it is Tomcat-specific, but it's the 
only java group I hang out in, so here goes:

How can I get a list of the public fields declared in a class, *in the 
order they are declared*?  Using Reflection's getFields and 
getDeclaredFields methods returns them in no particular order, and I 
need them in the order they are declared so I can get their starting 
byte offsets.

TIA!
Dave



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message