Home | History | Annotate | Download | only in 009-method
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 0007       # constant_pool_count
      9 
     10 #
     11 # constant_pool
     12 #
     13 01 0005 "Small"            # 0001: utf8["Small"]
     14 01 0010 "java/lang/Object" # 0002: utf8["java/lang/Object"]
     15 07 0001                    # 0003: class[Small]
     16 07 0002                    # 0004: class[java/lang/Object]
     17 01 0003 "foo"              # 0005: utf8["foo"]
     18 01 0003 "()V"              # 0006: utf8["()V"]
     19 
     20 0021  # access_flags
     21 0003  # this_class
     22 0004  # super_class
     23 0000  # interfaces_count
     24 0000  # fields_count
     25 
     26 0001  # methods_count
     27 
     28 # methods[0]
     29 ffff  # access_flags
     30 0005  # name
     31 0006  # descriptor
     32 0000  # attributes_count
     33 
     34 0000  # attributes_count
     35