Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35885
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: get methods from source files |
| Date | 2016-11-03 22:34 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nvgs37$12cq$1@gioia.aioe.org> (permalink) |
| References | <c9464cd7-1a1c-4cce-abe1-607c90ff4e34@googlegroups.com> <nur9t6$niq$1@dont-email.me> <md5n1ctbma1bekksq3g0am3l4mi1p13vn5@4ax.com> |
On 11/3/2016 3:53 PM, Roedy Green wrote:
>>> did you know how I can get a method signatures from a full source tree.
> I want to extract only methods which are implement in classes and
> abstract classes and put them into a CSV file.
>>> I have a full Maven project as input, so I would like to iterate over
> all *.java files within the src/main/java directory but I cannot
> instantiate each class and use reflection.
>
> This is one of my peeves about the grammar of Java. I want a keyword
> at the start and end of each method so you can extract methods with
> primitive text tools, and by eye. I also want it so the compiler does
> not get so befuddled at a missing or extra { or }.
>
> I would also like a keyword to indentify variable declarations so you
> can use a simple text scan to review them.
>
> If you have only a small amount of code to process, you can manually
> insert magic comments at the begin/end of each method you can easily
> scan for.
Handling out commented code and code outputting code correctly
is not trivial. Not even with clear markers.
Arne
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