Annotation Interface StringPattern
A pattern structure for matching strings.
If no properties are set, the default pattern matches any string.
-
Optional Element Summary
Optional Elements
-
Element Details
-
exact
String exactExact string content.For example,
"foo"or"java.lang.String".Mutually exclusive with the following other properties defining string-exact-pattern:
- startsWith
- endsWith
- Default:
""
-
startsWith
String startsWithMatches strings beginning with the given prefix.For example,
"get"to match strings such as"getMyValue".Mutually exclusive with the property `exact` also defining string-prefix-pattern.
- Default:
""
-
endsWith
String endsWithMatches strings ending with the given suffix.For example,
"Setter"to match strings such as"myValueSetter".Mutually exclusive with the property `exact` also defining string-suffix-pattern.
- Default:
""
-