Unfortunately I don't think the necessary pieces are public in those types
for you to do what you want to do. You really want to create your own
resolution scope (as an example, see SimpleScope, where you can set
imported names/packages). You could try something a little different:

Pointcut sp = Pointcut.fromString(pointcutSource);

 Pointcut rp = sp.resolve(new SimpleScope(world, FormalBinding.NONE));

(maybe world being a ReflectionWorld instance)

Andy


On 21 January 2013 22:00, ccol002 <chriscol...@yahoo.com> wrote:

> Thanks Andy for your reply. I realised that what I actually needed is to
> programmatically import packages so as to avoid specifying the canonical
> name of the class. Once I used the canonical class name, there was no
> problem resolving the pointcut.
> Is there a way of programmatically importing packages? (changing the
> classloader still requires you to specify the canonical name of the class)
> [NB: there is a good reason for wanting to avoid specifying the canonical
> class name]
>
>
>
> --
> View this message in context:
> http://aspectj.2085585.n4.nabble.com/parsePointcutExpression-in-a-multi-package-context-tp4650730p4650736.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to