The aspect should be an abstract aspect named CheckHashCode. It should have an abstract pointcut check() that will be instantiated when the aspect is overridden to indicate which classes should be instrumented.
For example, you could define an aspect that would check the Foo and Bar classes as:
public aspect CheckFooAndBar extends CheckHashCode {
pointcut check():
(within(Foo) || within(Bar));
}