From c99fe6df38af0e55821d8d98ccf67664ce35231a Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Thu, 24 Mar 2011 16:43:50 -0700 Subject: Optimize annotations. See libcore change I5912b526dfa87a61a95fbe7b7efc48d0dca3ad38 Change-Id: I89ed0be331eea3d9c0d02bebeaa719b686d532ca http://code.google.com/p/android/issues/detail?id=7811 --- vm/reflect/Reflect.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vm/reflect/Reflect.h') diff --git a/vm/reflect/Reflect.h b/vm/reflect/Reflect.h index 1ebdd2ab9..a3b784ba8 100644 --- a/vm/reflect/Reflect.h +++ b/vm/reflect/Reflect.h @@ -136,6 +136,16 @@ ArrayObject* dvmGetMethodAnnotations(const Method* method); ArrayObject* dvmGetFieldAnnotations(const Field* field); ArrayObject* dvmGetParameterAnnotations(const Method* method); +/* + * Return the annotation if it exists. + */ +Object* dvmGetClassAnnotation(const ClassObject* clazz, const ClassObject* annotationClazz); + +/* + * Return true if the annotation exists. + */ +bool dvmIsClassAnnotationPresent(const ClassObject* clazz, const ClassObject* annotationClazz); + /* * Find the default value for an annotation member. */ -- cgit v1.2.3