Validator that states that the value of an attribute of an annotation
must refer to a value of another annotation.
For example if the value of attribute @B.foo must be
the same of the value @A.bar defined on another element, the
definition of @B should be:
public @interface B{
@RefersTo(value=A.class,attribute="bar") String foo();
}
See Also: spoon.aval.support.validator.RefersToValidator |