Lines Matching refs:annotation
3 import java.lang.annotation.Annotation;
7 public static boolean matches(Annotation annotation) { in matches() argument
8 return getParam(annotation) != null; in matches()
11 …public static Object convert(Annotation annotation, Object param) throws ConversionFailedException… in convert() argument
12 return converter(annotation).convert(param); in convert()
15 private static Param getParam(Annotation annotation) { in getParam() argument
16 if (annotation.annotationType().isAssignableFrom(Param.class)) { in getParam()
17 return (Param) annotation; in getParam()
19 return annotation.annotationType().getAnnotation(Param.class); in getParam()
22 private static Converter converter(Annotation annotation) { in converter() argument
25 converter = getParam(annotation).converter().newInstance(); in converter()
29 converter.initialize(annotation); in converter()