Validator that states that the annotation prohibits the use of another annotation on elements which
are inside of of a given annotation
It works in a simlilar manner as to the Prohibits 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 prohibits 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.ProhibitsInsideValidator See Also: RequiresInside See Also: Inside |