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

field_info Struct Reference

#include <classfile.h>


Detailed Description

Field table entry.

See spec section 4.6

For internal use only.

typedef placed here to avoid forward reference.

Definition at line 232 of file classfile.h.

Data Fields

u2 access_flags
 Bitwise access flags, containing various of the ACC_xxx definitions.
attribute_info_dup ** attributes
 Field attributes array.
u2 attributes_count
 Size of attributes.
u2 descriptor_index
 Index into constant_pool of UTF8 string containing the descriptor of this field.
field_info::LOCAL_field_binding LOCAL_field_binding
 Local implementation late binding extensions for fields.
u2 name_index
 Index into constant_pool of UTF8 string containing the name of this field.

Data Structures

struct  LOCAL_field_binding
 Local implementation late binding extensions for fields. More...


Field Documentation

u2 field_info::access_flags
 

Bitwise access flags, containing various of the ACC_xxx definitions.

Definition at line 234 of file classfile.h.

Referenced by class_get_static_field_data(), class_get_static_field_lookups(), and classfile_loadclassdata().

u2 field_info::name_index
 

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

Definition at line 238 of file classfile.h.

Referenced by classfile_loadclassdata(), and field_find_by_cp_entry().

u2 field_info::descriptor_index
 

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

Definition at line 241 of file classfile.h.

Referenced by classfile_loadclassdata().

u2 field_info::attributes_count
 

Size of attributes.

Definition at line 244 of file classfile.h.

Referenced by attribute_find_in_field_by_cp_entry(), attribute_find_in_field_by_enum(), and classfile_loadclassdata().

attribute_info_dup** field_info::attributes
 

Field 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 246 of file classfile.h.

Referenced by attribute_find_in_field_by_cp_entry(), attribute_find_in_field_by_enum(), and classfile_loadclassdata().

struct field_info::LOCAL_field_binding field_info::LOCAL_field_binding
 

Local implementation late binding extensions for fields.

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

For internal use only.

An oiflagJVM boolean is not needed since access_flags above contains this information in the ACC_STATIC bit.

Referenced by classfile_loadclassdata().


The documentation for this struct was generated from the following file:
Generated on Fri Sep 30 18:50:53 2005 by  doxygen 1.4.4