All pastes #831322 Raw Edit

Someone

public text v1 · immutable
#831322 ·published 2007-12-24 20:42 UTC
rendered paste body
    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_count - 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