summaryrefslogtreecommitdiffstats
path: root/libjava/gcj/method.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gcj/method.h')
-rw-r--r--libjava/gcj/method.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/gcj/method.h b/libjava/gcj/method.h
index fe8f03b21f6..fa3484dcff0 100644
--- a/libjava/gcj/method.h
+++ b/libjava/gcj/method.h
@@ -27,4 +27,16 @@ _Jv_FromReflectedConstructor (java::lang::reflect::Constructor *constructor)
((char *) constructor->declaringClass->methods + constructor->offset);
}
+extern inline jint
+JvNumMethods (jclass klass)
+{
+ return klass->method_count;
+}
+
+extern inline jmethodID
+JvGetFirstMethod (jclass klass)
+{
+ return &klass->methods[0];
+}
+
#endif /* __GCJ_METHOD_H__ */
OpenPOWER on IntegriCloud