Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Modifying only least-derived class

I'm working on Aspects for JDO enhancement. Is there a way that I could have
an aspect only change the least derived class? So:

package everything;

class A {
}

class B extends A {
}

class C extends B {
}

class D {
}

I currently have:

declare parents: everything.* implements LeastDerived;

However, what I want is for only class A and D to have that applied to it.

Thanks,

-joel



Back to the top