Home
last modified time | relevance | path

Searched refs:annotationClass (Results 1 – 5 of 5) sorted by relevance

/art/test/048-reflect-v8/src/
DAnnotationTest.java130 private static <A extends Annotation> void printAnnotationsByType(Class<A> annotationClass, in printAnnotationsByType() argument
132 A[] annotationsByType = annotationUseClass.getAnnotationsByType(annotationClass); in printAnnotationsByType()
135 + annotationUseClass.getName() + " with annotation " + annotationClass.getName() + ": " in printAnnotationsByType()
155 Class<A> annotationClass, Class<?> annotationUseClass) { in printDeclaredAnnotationsByType() argument
156 A[] annotationsByType = annotationUseClass.getDeclaredAnnotationsByType(annotationClass); in printDeclaredAnnotationsByType()
159 + " with annotation " + annotationClass.getName() + ": " in printDeclaredAnnotationsByType()
194 private static <A extends Annotation> void printMethodAnnotationsByType(Class<A> annotationClass, in printMethodAnnotationsByType() argument
202 A[] annotationsByType = m.getAnnotationsByType(annotationClass); in printMethodAnnotationsByType()
205 annotationClass.getName() + ": " + in printMethodAnnotationsByType()
234 private static <A extends Annotation> void printMethodDeclaredAnnotation(Class<A> annotationClass, in printMethodDeclaredAnnotation() argument
[all …]
/art/test/979-const-method-handle/util-src/transformer/
DConstantTransformer.java162 Method method, Class<?> annotationClass, String reason) {
165 .append(annotationClass)
174 Method method, Class<?> annotationClass, Class<?> returnType) {
177 throwAnnotationError(method, annotationClass, " method is not private and static");
180 throwAnnotationError(method, annotationClass, " method expects parameters");
183 throwAnnotationError(method, annotationClass, " wrong return type");
/art/test/715-clinit-implicit-parameter-annotations/src/
DMain.java129 Class<? extends Annotation> annotationClass = in DumpConstructorParameterAnnotations() local
131 Annotation annotation = parameters[i].getDeclaredAnnotation(annotationClass); in DumpConstructorParameterAnnotations()
133 System.out.println(" " + annotationClass.getName() + " " + hasAnnotation); in DumpConstructorParameterAnnotations()
135 … Annotation[] parameterAnnotations = parameters[i].getDeclaredAnnotationsByType(annotationClass); in DumpConstructorParameterAnnotations()
/art/runtime/native/
Djava_lang_Class.cc673 static jobject Class_getDeclaredAnnotation(JNIEnv* env, jobject javaThis, jclass annotationClass) { in Class_getDeclaredAnnotation() argument
683 if (UNLIKELY(annotationClass == nullptr)) { in Class_getDeclaredAnnotation()
691 Handle<mirror::Class> annotation_class(hs.NewHandle(soa.Decode<mirror::Class>(annotationClass))); in Class_getDeclaredAnnotation()
/art/test/1980-obsolete-object-cleared/
Dexpected.txt46 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
184 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null
259 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
280 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
397 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null