Is it possible to write @SomeAnnotation(..) class annotation so that it could control inner (class fields )annotations ?
@SomeAnnotation(s1notNull = true|false, s2pattern = "xyz|smth", s3notNull = true|false, s3pattern = "123| smth")
class c1 {
@NotNull
@Conditional..(..) // to control @NotNull
String s1;
@Pattern(regexp = s2pattern)
String s2;
@NotNull
@Conditional..(..) // to control @NotNull
@Pattern(regexp = s3pattern)
String s3;
}