Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35881
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Stanimir Stamenkov <s7an10@netscape.net> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: get methods from source files |
| Date | Sun, 30 Oct 2016 12:44:57 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 32 |
| Message-ID | <nv4iuh$aeq$1@dont-email.me> (permalink) |
| References | <c9464cd7-1a1c-4cce-abe1-607c90ff4e34@googlegroups.com> <nur9t6$niq$1@dont-email.me> <nuraaj$ois$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 30 Oct 2016 10:44:33 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="7dc69d1a5b55b6079b69b68c44be3b76"; logging-data="10714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SuvZMvwFSoo/ExKPChSpo" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
| In-Reply-To | <nuraaj$ois$1@dont-email.me> |
| X-Face | "@)%Vlap6d%OVYDS}B4YUWE@yUy+^!w/+.q.,c5kjI#+uG?kYP&r/pTjNWgo:g[A,O=AL3/ j&4Le2cau$<e=FPq~GbeZ6DW1Grey[VHn8?ktzvoQtzlg;]&rh8g]CD+_BC7d[gW{Yx&_X*4Q$h&nJ l@t(|4R4:T='&]U#ui+z9OC$.~gJjU93kh:Ojc$Cz0n#I9!~!9ay?E<UlW&5,IFX1*KtA>MYEFst$y y"m]M7tq\S(>[a$x0x8%S |
| Cancel-Lock | sha1:1V6DAA9nAHBsFgrTD3h30eo8giM= |
| Xref | csiph.com comp.lang.java.programmer:35881 |
Show key headers only | View raw
Wed, 26 Oct 2016 18:22:33 -0400, Eric Sosman: > On 10/26/2016 6:15 PM, Eric Sosman wrote: >> On 10/26/2016 5:37 PM, Philipp Kraus wrote: >> >>> did you know how I can get a method signatures from a full >>> source tree... but I cannot instantiate each class and use >>> reflection. >> >> I don't know of a ready-made tool (but my knowledge is >> incomplete). However, one way to proceed might be to use the >> Javadoc tool: It can already identify methods, constructors, and >> so on, and all you need to do is get it to produce a different >> style of output. Output generation is handled by "doclets,"... > > Another idea: You could compile all the sources, load each > class file in turn, and use reflection on the Class objects. For preprocessing purposes I would probably go with Javadoc and Doclets, but once upon a time I've used a library like BCEL to analyze classes in similar way (looking for declared method signatures) in a run-time, without loading/initializing the target classes: https://commons.apache.org/proper/commons-bcel/ I'm not 100% sure this was the actual library I used as it was not an Apache project back then. As far as I remember it required basic knowledge of the class file structure, also. -- Stanimir
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
get methods from source files Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-10-26 14:37 -0700
Re: get methods from source files Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-10-26 18:15 -0400
Re: get methods from source files Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-10-26 18:22 -0400
Re: get methods from source files Stanimir Stamenkov <s7an10@netscape.net> - 2016-10-30 12:44 +0200
Re: get methods from source files Roedy Green <inquiry@mindprod.com> - 2016-11-03 12:53 -0700
Re: get methods from source files Arne Vajhøj <arne@vajhoej.dk> - 2016-11-03 22:34 -0400
Re: get methods from source files Arne Vajhøj <arne@vajhoej.dk> - 2016-10-26 20:09 -0400
Re: get methods from source files Patrick Roemer <sangamon@netcologne.de> - 2016-10-27 13:10 +0200
Re: get methods from source files Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-10-30 02:35 -0700
csiph-web