Skip to content
Donizyo edited this page Apr 8, 2016 · 1 revision

Each field is described by a field_info structure. No two fields in one class file may have the same name and descriptor. The structure has the following format:

typedef struct {
    u2 access_flags;
    u2 name_index;
    u2 descriptor_index;
    u2 attributes_count;
    attr_info *attributes;
} field_info;
Flag Name Value
ACC_PUBLIC 0x0001
ACC_PRIVATE 0x0002
ACC_PROTECTED 0x0004
ACC_STATIC 0x0008
ACC_FINAL 0x0010
ACC_VOLATILE 0x0040
ACC_TRANSIENT 0x0080
ACC_SYNTHETIC 0x1000
ACC_ENUM 0x4000
Clone this wiki locally