class ClassFile include Unpackable u4 :magic u2 :major_version u2 :minor_version u2 :constant_pool_count ux :constant_pool, :array_of => ConstantPoolInfo, :count => proc { constant_pool - 1 } u2 :access_flags u2 :this_class u2 :super_class u2 :interfaces_count u2 :interfaces, :count => proc { interfaces_count } u2 :fields_count ux :fields, :array_of => FieldInfo, :count => proc { fields_count } u2 :methods_count ux :methods, :array_of => MethodInfo, :count => proc { methods_count } u2 :attributes_count ux :attributes, :array_of => AttributeInfo, :count => proc { attributes_count } end