Home
last modified time | relevance | path

Searched refs:annotationClass (Results 1 – 6 of 6) 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/2265-const-method-type-cached/src-util/transformer/
DConstantTransformer.java98 Method method, Class<?> annotationClass, String reason) {
101 .append(annotationClass)
110 Method method, Class<?> annotationClass, Class<?> returnType) {
113 throwAnnotationError(method, annotationClass, " method is not private and static");
116 throwAnnotationError(method, annotationClass, " method expects parameters");
119 throwAnnotationError(method, annotationClass, " wrong return type");
/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.cc548 static jobject Class_getDeclaredAnnotation(JNIEnv* env, jobject javaThis, jclass annotationClass) { in Class_getDeclaredAnnotation() argument
558 if (UNLIKELY(annotationClass == nullptr)) { in Class_getDeclaredAnnotation()
566 Handle<mirror::Class> annotation_class(hs.NewHandle(soa.Decode<mirror::Class>(annotationClass))); in Class_getDeclaredAnnotation()
/art/test/1980-obsolete-object-cleared/
Dexpected-stdout.txt58 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
230 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null
330 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
351 …throws java.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass
502 …ava.lang.reflect.InvocationTargetException: java.lang.NullPointerException: annotationClass == null