Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] a question for IType

Hi
thank you very much
I'm not familiar with with the dynamic compiler and I did a research about it. Maybe the class org.eclipse.jdt.internal.compiler.tool.EclipseCompiler is useful. but the document about that is little.
so can you give me some suggestion about how to use the dynamic compiler or some examples or links of web document resource ? thanks a lot

2008/11/28 omid <galedari@xxxxxxxxx>
Hi
why you don't use the dynamic compiler to get the return method back and real class, whether you can use aspect J which is a java extension that can help you on run time
kindly regards
Omid

On Fri, Nov 28, 2008 at 10:21 AM, serfire wang <serfire@xxxxxxxxx> wrote:




Hi

I want to judge whether the Class of the return type of a method in source code editor is java.util.Map .

I can get the the selected method , that is a IMethod type.

but in IMethod , there is maybe only one available method : IMethod.getReturnType()

this method just return a String , how can I get the real class from a IMethod instance. 

thanks a lot




_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev




--
Omid G
Software Engineering (PhD candidate)
Information Technology (M.Sc.)
Electronic Engineer (B.Sc)

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev




--
王世磊

Back to the top