public class RegexAnnotationConverter extends Object implements AnnotationConverter<Regex>
Constructor and Description |
---|
RegexAnnotationConverter() |
Modifier and Type | Method and Description |
---|---|
Regex |
fromAnnotations(Collection<? extends AnnotationMirror> annos)
If annotated with @Regex, create a RegexVal qualifier.
|
boolean |
isAnnotationSupported(AnnotationMirror anno)
Checks if an annotation is supported by the current type system.
|
public Regex fromAnnotations(Collection<? extends AnnotationMirror> annos)
fromAnnotations
in interface AnnotationConverter<Regex>
annos
- the collection of type annotations to parsepublic boolean isAnnotationSupported(AnnotationMirror anno)
AnnotationConverter
AnnotationMirror
could affect the result of fromAnnotations
.isAnnotationSupported
in interface AnnotationConverter<Regex>
anno
- the annotation to check