Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

method_info Struct Reference

#include <classfile.h>


Detailed Description

Method table entry.

See spec section 4.7

For internal use only.

typedef placed here to avoid forward reference.

Definition at line 313 of file classfile.h.

Data Fields

u2 access_flags
 Bitwise access flags, containing various of the ACC_xxx definitions.
attribute_info_dup ** attributes
 Method attributes array.
u2 attributes_count
 Size of attributes.
u2 descriptor_index
 Index into constant_pool of UTF8 string containing the descriptor of this method.
method_info::LOCAL_method_binding LOCAL_method_binding
 Local implementation late binding extensions for methods.
u2 name_index
 Index into constant_pool of UTF8 string containing the name of this method.

Data Structures

struct  LOCAL_method_binding
 Local implementation late binding extensions for methods. More...


Field Documentation

u2 method_info::access_flags
 

Bitwise access flags, containing various of the ACC_xxx definitions.

Definition at line 315 of file classfile.h.

Referenced by classfile_loadclassdata(), and opcode_run().

u2 method_info::name_index
 

Index into constant_pool of UTF8 string containing the name of this method.

Definition at line 319 of file classfile.h.

Referenced by classfile_loadclassdata(), method_find_by_cp_entry(), object_run_method(), and opcode_run().

u2 method_info::descriptor_index
 

Index into constant_pool of UTF8 string containing the descriptor of this method.

Definition at line 322 of file classfile.h.

Referenced by classfile_loadclassdata(), object_run_method(), and opcode_run().

u2 method_info::attributes_count
 

Size of attributes.

Definition at line 326 of file classfile.h.

Referenced by attribute_find_in_method_by_cp_entry(), attribute_find_in_method_by_enum(), and classfile_loadclassdata().

attribute_info_dup** method_info::attributes
 

Method attributes array.

The spec pseudo-code defines this as: attributes_info fields[attributes_count] but it is implemented as a pointer to an array of pointers. The length of this array is attributes_count elements.

Notice that the attribute_info structure is found with this attribute_info_dup structure. The purpose for this is proper byte alignment of multi-byte items such as 2- and 4-byte integers on machine architectures that demand it lest they complain with SIGSEGV and the like.

Definition at line 328 of file classfile.h.

Referenced by attribute_find_in_method_by_cp_entry(), attribute_find_in_method_by_enum(), classfile_loadclassdata(), object_run_method(), and opcode_run().

struct method_info::LOCAL_method_binding method_info::LOCAL_method_binding
 

Local implementation late binding extensions for methods.

Uses LOCAL_ as a prefix to signify an item that is not part of the JVM spec itself, but an implementation detail.

Referenced by class_load_from_prchar(), classfile_loadclassdata(), object_run_method(), and opcode_run().


The documentation for this struct was generated from the following file:
Generated on Fri Sep 30 19:01:15 2005 by  doxygen 1.4.4