Home
last modified time | relevance | path

Searched refs:annotationSpec (Results 1 – 2 of 2) sorted by relevance

/cts/tests/signature/lib/common/src/android/signature/cts/
DAnnotationChecker.java32 private final String annotationSpec; field in AnnotationChecker
46 ResultObserver resultObserver, ClassProvider classProvider, String annotationSpec, in AnnotationChecker() argument
50 this.annotationSpec = annotationSpec; in AnnotationChecker()
53 if (ReflectionHelper.hasMatchingAnnotation(clazz, annotationSpec)) { in AnnotationChecker()
57 annotationSpec); in AnnotationChecker()
62 Set<Method> methods = ReflectionHelper.getAnnotatedMethods(clazz, annotationSpec); in AnnotationChecker()
67 Set<Field> fields = ReflectionHelper.getAnnotatedFields(clazz, annotationSpec); in AnnotationChecker()
89 "Class annotated with " + annotationSpec in checkDeferred() local
96 "Constructor annotated with " + annotationSpec in checkDeferred()
104 "Method annotated with " + annotationSpec in checkDeferred()
[all …]
DReflectionHelper.java472 public static boolean hasMatchingAnnotation(AnnotatedElement elem, String annotationSpec) { in hasMatchingAnnotation() argument
474 if (a.toString().equals(annotationSpec)) { in hasMatchingAnnotation()
483 if (token.equals(annotationSpec)) { in hasMatchingAnnotation()
496 String annotationSpec) { in getAnnotatedConstructors() argument
498 return getAnnotatedConstructorsImpl(clazz, annotationSpec); in getAnnotatedConstructors()
501 + " annotated with " + annotationSpec, e); in getAnnotatedConstructors()
507 String annotationSpec) { in getAnnotatedConstructorsImpl() argument
509 if (annotationSpec != null) { in getAnnotatedConstructorsImpl()
511 if (hasMatchingAnnotation(c, annotationSpec)) { in getAnnotatedConstructorsImpl()
529 public static Set<Method> getAnnotatedMethods(Class<?> clazz, String annotationSpec) { in getAnnotatedMethods() argument
[all …]