@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=Pattern.List.class) @Documented @Constraint(validatedBy={}) public @interface Pattern
CharSequence
は指定された正規表現と一致しなければなりません。
正規表現はJavaの正規表現の規則に従います。Pattern
を参照してください。
CharSequence
を受け付けます。
null
要素は有効とみなされます。
public abstract String regexp
public abstract Pattern.Flag[] flags
Flag
の配列public abstract String message
public abstract Class<?>[] groups
Copyright © 2007-2018 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0. Translated by @megascus.