|
Re: getMethods( ) does not return constructor [message #211481 is a reply to message #211457] |
Wed, 03 August 2005 15:35 |
Eclipse User |
|
|
|
Originally posted by: michael.giroux.objectweb.org
You probably don't need it. To use the default constructor invoke
Class.newInstance().
Michael Giroux
"Babich" <babich25@hotmail.com> wrote in message
news:aeec9faf48279736974495ddfd14f827$1@www.eclipse.org...
>I am doing introspection of java code using JDT. Once I create compilation
>unit from the java source code, I use its types() function to get
>TypeDeclaration for that java source file. TypeDeclaration's method
>getMethods() neatly returns the array of all methods declared within that
>java file including constructors that take arguments. However, default
>constructor or constructor that does not take any arguments is not returned
>by the method getMethods(). Any suggestions on how to go around this and
>abtain the Block from a constructor that does not take any argumnets will
>be greatly appriciated. Thank you.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03371 seconds