Skip to content

Methods

Donizyo edited this page Apr 8, 2016 · 1 revision

Each method, including each instance initialization method and the class or interface initialization method, is described by a method_info structure. No two methods 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;
} method_info;
Flag Name Value
ACC_PUBLIC 0x0001
ACC_PRIVATE 0x0002
ACC_PROTECTED 0x0004
ACC_STATIC 0x0008
ACC_FINAL 0x0010
ACC_SYNCHRONIZED 0x0020
ACC_BRIDGE 0x0040
ACC_VARARGS 0x0080
ACC_NATIVE 0x0100
ACC_ABSTRACT 0x0400
ACC_STRICT 0x0800
ACC_SYNTHETIC 0x1000
Clone this wiki locally