Validator that states that the annotation requires annother annotation on an element inside of a third annotation
It works in a simlilar manner as to the Requires annotation, but with in the lexical scope of an annotation.
The annotation that defines the scope is defined by means of an @Inside annotation.
If an annotation @A Requires the annotation @B anywhere inside of the annotation
@C :
@Inside(C.class)
@ProhibitsInside(B.class)
@Target(FIELD)
public @interface A{}
See Also: spoon.aval.support.validator.RequiresInsideValidator See Also: ProhibitsInside See Also: Inside |