method_count
field in the class file. Each method is described by a variable length method_info
structure. The structure has the following format:
method_info {
u2 access_flags;
u2 name_index;
u2 signature_index;
u2 attributes_count;
attribute_info attributes[attribute_count];
}
The possible fields that can be set for a method are ACC_PUBLIC
, ACC_PRIVATE
, ACC_PROTECTED
, ACC_STATIC
, ACC_FINAL
, ACC_SYNCHRONIZED
, ACC_NATIVE
, and ACC_ABSTRACT
.
At most one of ACC_PUBLIC
, ACC_PROTECTED
, and ACC_PRIVATE
can be set for any method.
constant_pool[name_index]
is a CONSTANT_Utf8
string giving the name of the method.
constant_pool[signature_index]
is a CONSTANT_Utf8
string giving the signature of the field. See the section "Signatures" for more information on signatures.
Any other attributes are skipped.