summaryrefslogtreecommitdiffstats
path: root/vm/reflect/Reflect.h
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2011-03-24 16:43:50 -0700
committerJesse Wilson <jessewilson@google.com>2011-03-24 17:11:26 -0700
commitc99fe6df38af0e55821d8d98ccf67664ce35231a (patch)
tree36b9addec6b255944f5687c212068bb1cf601bd4 /vm/reflect/Reflect.h
parent1c71d876a22d2662e43e0c86099ed277b4c99db5 (diff)
downloadandroid_dalvik-c99fe6df38af0e55821d8d98ccf67664ce35231a.tar.gz
android_dalvik-c99fe6df38af0e55821d8d98ccf67664ce35231a.tar.bz2
android_dalvik-c99fe6df38af0e55821d8d98ccf67664ce35231a.zip
Optimize annotations.
See libcore change I5912b526dfa87a61a95fbe7b7efc48d0dca3ad38 Change-Id: I89ed0be331eea3d9c0d02bebeaa719b686d532ca http://code.google.com/p/android/issues/detail?id=7811
Diffstat (limited to 'vm/reflect/Reflect.h')
-rw-r--r--vm/reflect/Reflect.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -137,6 +137,16 @@ 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.
*/
Object* dvmGetAnnotationDefaultValue(const Method* method);