Results 1 to 3 of 3
- 08-10-2012, 09:40 AM #1
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
To extract the parameters (and their types) for each method
To extract the parameters (and their types) for each
method, and to store a list of Variable Definition objects with each method
01.How do I recognize a parameter type ?
The parameters will be listed
in the following order: ( <Type> <Name> , <Type> <Name> … )
02.How should I represent each parameter?
the name of the parameter, and
the type of the parameter (stored as a String).
this needTo process a text-file containing programming code (e.g., a
Java file) and analyze its contents.
- 08-10-2012, 12:21 PM #2
Re: To extract the parameters (and their types) for each method
Moved from Advanced Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 08-10-2012, 02:40 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,414
- Blog Entries
- 7
- Rep Power
- 17
Re: To extract the parameters (and their types) for each method
Since Java version 1.6. there's a compiler syntax tree api; you can inspect each and every object from a parsed Java source 'file'. Google is your friend here.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
objects as parameters change in method
By zcd in forum New To JavaReplies: 0Last Post: 01-29-2012, 08:37 PM -
how to pass parameters from a method to another which accepts to parameters?possible?
By amrmb09 in forum Advanced JavaReplies: 5Last Post: 11-21-2010, 02:08 PM -
Need to dynamicaly get all parameters in a method call.
By DavidJohns in forum Advanced JavaReplies: 2Last Post: 05-21-2008, 07:15 AM -
Netbeans 6.0 - code completion of method parameters
By mwildam in forum NetBeansReplies: 9Last Post: 12-18-2007, 09:02 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks