Java class file: Difference between revisions

Content deleted Content added
@modi (talk | contribs)
No edit summary
@modi (talk | contribs)
Line 24:
u2 constant_pool_count //unsigned, 2 byte (16 bit) number
//indicating the number of entries
//in the constant pool table, plus one
//one
 
//the constant pool table
cp_info constant_pool[constant_pool_count - 1];
 
Line 32 ⟶ 35:
u2 super_class;
 
u2 interfaces_count; //unsigned, 2 byte (16 bit) number
//indicating the number of entries
//in the table of superinterfaces
//of this class
 
//the table of superinterfaces of this class
u2 interfaces[interfaces_count];
 
u2 fields_count; //unsigned, 2 byte (16 bit) number
//indicating the number of entries in
//the table of fields of this class
 
//the table of fields of this class
field_info fields[fields_count];
 
u2 methods_count; //unsigned, 2 byte (16 bit) number
//indicating the number of entries in
//the table of methods of this class
 
//the table of methods of this class
method_info methods[methods_count];
 
u2 attributes_count; //unsigned, 2 byte (16 bit) number
//indicating the number of
//attributes in the attributes
//table
 
//the attributes table
attribute_info attributes[attributes_count];
}
 
</pre>
 
 
==Trivia==