CACAO
Public Member Functions | Static Private Attributes
java_lang_reflect_Method Class Reference

GNU Classpath java/lang/reflect/Method. More...

Inheritance diagram for java_lang_reflect_Method:
java_lang_Object FieldAccess

Public Member Functions

 java_lang_reflect_Method (java_handle_t *h)
 
 java_lang_reflect_Method (methodinfo *m)
 
java_handle_tinvoke (java_handle_t *o, java_handle_objectarray_t *args)
 Invokes the given method. More...
 
int32_t get_flag () const
 
java_handle_tget_m () const
 
void set_m (java_handle_t *value)
 
methodinfoget_method () const
 
int32_t get_override () const
 
- Public Member Functions inherited from java_lang_Object
 java_lang_Object ()
 
 java_lang_Object (java_handle_t *h)
 
virtual ~java_lang_Object ()
 
virtual java_handle_tget_handle () const
 
vftbl_tget_vftbl () const
 
classinfoget_Class () const
 
int32_t get_hashcode () const
 
bool is_null () const
 
bool is_non_null () const
 

Static Private Attributes

static const off_t offset_flag = MEMORY_ALIGN(sizeof(java_object_t), sizeof(int32_t))
 
static const off_t offset_p = MEMORY_ALIGN(offset_flag + sizeof(int32_t), SIZEOF_VOID_P)
 
static const off_t offset_m = MEMORY_ALIGN(offset_p + SIZEOF_VOID_P, SIZEOF_VOID_P)
 

Additional Inherited Members

- Protected Attributes inherited from java_lang_Object
java_handle_t_handle
 
- Private Member Functions inherited from FieldAccess
template<>
java_handle_tget (java_handle_t *h, const off_t offset)
 
template<>
void set (java_handle_t *h, const off_t offset, java_handle_t *value)
 
template<>
java_handle_tget_volatile (java_handle_t *h, const off_t offset)
 
template<>
void set_volatile (java_handle_t *h, const off_t offset, java_handle_t *value)
 
- Static Private Member Functions inherited from FieldAccess
template<class T >
static T get (java_handle_t *h, const off_t offset)
 
template<class T >
static void set (java_handle_t *h, const off_t offset, T value)
 
template<class T >
static T get_volatile (java_handle_t *h, const off_t offset)
 
template<class T >
static void set_volatile (java_handle_t *h, const off_t offset, T value)
 

Detailed Description

GNU Classpath java/lang/reflect/Method.

Object layout:

0. object header

  1. boolean flag;
  2. gnu.java.lang.reflect.MethodSignatureParser p;
  3. java.lang.reflect.VMMethod m;

Definition at line 1601 of file javaobjects.hpp.

Constructor & Destructor Documentation

java_lang_reflect_Method::java_lang_reflect_Method ( java_handle_t h)
inline

Definition at line 1610 of file javaobjects.hpp.

java_lang_reflect_Method::java_lang_reflect_Method ( methodinfo m)
inline

Definition at line 1628 of file javaobjects.hpp.

Member Function Documentation

int32_t java_lang_reflect_Method::get_flag ( ) const
inline

Definition at line 1646 of file javaobjects.hpp.

java_handle_t * java_lang_reflect_Method::get_m ( ) const
inline

Definition at line 1651 of file javaobjects.hpp.

methodinfo * java_lang_reflect_Method::get_method ( ) const
inline

Definition at line 1663 of file javaobjects.hpp.

int32_t java_lang_reflect_Method::get_override ( ) const
inline

Definition at line 1669 of file javaobjects.hpp.

java_handle_t * java_lang_reflect_Method::invoke ( java_handle_t o,
java_handle_objectarray_t args 
)

Invokes the given method.

Parameters
argsMethod arguments.
Returns
return value of the method

Definition at line 157 of file javaobjects.cpp.

void java_lang_reflect_Method::set_m ( java_handle_t value)
inline

Definition at line 1657 of file javaobjects.hpp.

Field Documentation

const off_t java_lang_reflect_Method::offset_flag = MEMORY_ALIGN(sizeof(java_object_t), sizeof(int32_t))
staticprivate

Definition at line 1605 of file javaobjects.hpp.

const off_t java_lang_reflect_Method::offset_m = MEMORY_ALIGN(offset_p + SIZEOF_VOID_P, SIZEOF_VOID_P)
staticprivate

Definition at line 1607 of file javaobjects.hpp.

const off_t java_lang_reflect_Method::offset_p = MEMORY_ALIGN(offset_flag + sizeof(int32_t), SIZEOF_VOID_P)
staticprivate

Definition at line 1606 of file javaobjects.hpp.


The documentation for this class was generated from the following files: