Searched refs:annotationSpec (Results 1 – 2 of 2) sorted by relevance
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | AnnotationChecker.java | 32 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() 96 "Constructor annotated with " + annotationSpec in checkDeferred() 104 "Method annotated with " + annotationSpec in checkDeferred() [all …]
|
D | ReflectionHelper.java | 430 public static boolean hasMatchingAnnotation(AnnotatedElement elem, String annotationSpec) { in hasMatchingAnnotation() argument 432 if (a.toString().equals(annotationSpec)) { in hasMatchingAnnotation() 441 if (token.equals(annotationSpec)) { in hasMatchingAnnotation() 454 String annotationSpec) { in getAnnotatedConstructors() argument 456 if (annotationSpec != null) { in getAnnotatedConstructors() 458 if (hasMatchingAnnotation(c, annotationSpec)) { in getAnnotatedConstructors() 476 public static Set<Method> getAnnotatedMethods(Class<?> clazz, String annotationSpec) { in getAnnotatedMethods() argument 478 if (annotationSpec != null) { in getAnnotatedMethods() 480 if (hasMatchingAnnotation(m, annotationSpec)) { in getAnnotatedMethods() 492 public static Set<Field> getAnnotatedFields(Class<?> clazz, String annotationSpec) { in getAnnotatedFields() argument [all …]
|