[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: How to create a plug-in that uses reflection to find files with annotations ?
|
"Julien Manankiandrianana" <jmananki@xxxxxxx> wrote in message
news:02a826ca67b086a6cf4e4925b14c9027$1@xxxxxxxxxxxxxxxxxx
>I have a set of .java files and I wanted to know if there's a way to get
>the annotated fields using the reflection. Is it possible somehow to create
>a model of a class from a java file and get every fields, methods, etc. ?
>
>>Walter Harley wrote:
>> I think this is the same question that you already got answered on
>> eclipse.tools.jdt? If not, please clarify.
As Rich says, it sounds like using JDT (either the AST or the Java Model,
depending on the amount of detail you need) is the right answer. "Create a
model of a class from a Java file and get every field, method, etc." is
precisely what the JDT does.
But I am still confused about why you're asking this question here in
eclipse.platform when you also have an ongoing discussion about what seems
to be the same topic in eclipse.tools.jdt.