source: vendor/gcc/3.2.2/libjava/gcj/method.h

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 956 bytes
Line 
1// method.h - Header file for methodID instances. -*- c++ -*-
2
3/* Copyright (C) 1999, 2000 Free Software Foundation
4
5 This file is part of libgcj.
6
7This software is copyrighted work licensed under the terms of the
8Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9details. */
10
11#ifndef __GCJ_METHOD_H__
12#define __GCJ_METHOD_H__
13
14#include <java/lang/Class.h>
15
16extern inline jmethodID
17_Jv_FromReflectedMethod (java::lang::reflect::Method *method)
18{
19 return (jmethodID)
20 ((char *) method->declaringClass->methods + method->offset);
21}
22
23extern inline jmethodID
24_Jv_FromReflectedConstructor (java::lang::reflect::Constructor *constructor)
25{
26 return (jmethodID)
27 ((char *) constructor->declaringClass->methods + constructor->offset);
28}
29
30extern inline jint
31JvNumMethods (jclass klass)
32{
33 return klass->method_count;
34}
35
36extern inline jmethodID
37JvGetFirstMethod (jclass klass)
38{
39 return &klass->methods[0];
40}
41
42#endif /* __GCJ_METHOD_H__ */
Note: See TracBrowser for help on using the repository browser.