Anonymous instanciation

22 views
Skip to first unread message

Erik

unread,
Mar 27, 2012, 2:57:35 PM3/27/12
to JavaParser
Hello there from Canada!

I've created a VoidVisitiorAdaptor and have overwritten
visit(MethodCallExpr)'s.

Everything's working fine with the exception of code like so (where
anonymous classes are involved):

<snip>
this.executor.execute(new Runnable()
{
@Override
public void run()
{
blah(blahArg);
}

});
</snip>

Seems like overriding only "visit(MethodCallExpr)" will never visit
"blah(blahArg)".

Bug? Operator error? Do I need to overwrite another visit method?

Any help would be appreciated!

Thank you,


-Erik
Reply all
Reply to author
Forward
0 new messages