[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[pde-ui-dev] ASTVisitor problem
|
Hi
Im using the ASTVisitor class to iterate through the AST of my project.
I have a method call like:
MyClass mc = new MyClass();
mc.makeCall();
In my visitor I have:
public boolean visit(MethodInvocation miNode) {
// How do I get the name "MyClass" for the method incovation of
"makeCall()"?
return true;
}
How do I get the name "MyClass" for the method incovation of "makeCall()"?
"miNode.resolveTypeBinding()" returns null. :/
I have set resolve bindings to true:
ASTParser p = ASTParser.newParser(AST.JLS3);
p.setResolveBindings(true);
Maybe someone can help me out?
Cheers
_________________________________________________________________
Fräscha middagstips på MSN http://arla.msn.se/