Matthias Kay - 2002-09-03

Let's say we have the following statement:

//Label abc = new Label();
abc.setTooltipText("TEST");  //look here

What I have is a MethodReference. With that object I find out that the method 'setTooltipText' is invoked on object 'abc', but how to get the type of this object? I need a method which will return 'Label'.

Any help is appreciated.

Matthias