Home | History | Annotate | Download | only in 014-field-attrib-ConstantValue
      1 #
      2 # sample small-but-valid classfile
      3 #
      4 
      5 cafe babe  # magic
      6 0000       # minor_version
      7 002e       # major_version
      8 001f       # 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 000d "ConstantValue"      # 0005: utf8["ConstantValue"]
     18 01 0001 "a"                  # 0006: utf8["a"]
     19 01 0001 "b"                  # 0007: utf8["b"]
     20 01 0001 "c"                  # 0008: utf8["c"]
     21 01 0001 "d"                  # 0009: utf8["d"]
     22 01 0001 "e"                  # 000a: utf8["e"]
     23 01 0001 "f"                  # 000b: utf8["f"]
     24 01 0001 "g"                  # 000c: utf8["g"]
     25 01 0001 "h"                  # 000d: utf8["h"]
     26 01 0001 "i"                  # 000e: utf8["i"]
     27 08 0001                      # 000f: string["Small"]
     28 03 8191a1b1                  # 0010: integer[0x8191a1b1]
     29 04 bffeb852                  # 0011: float[-1.99]
     30 05 80818283 f0f1f2f3         # 0012: long[0x80818283f0f1f2f3]
     31 06 bfffd70a 3d70a3d7         # 0014: double[-1.99]
     32 01 0001 "B"                  # 0016: utf8["B"]
     33 01 0001 "C"                  # 0017: utf8["C"]
     34 01 0001 "D"                  # 0018: utf8["D"]
     35 01 0001 "F"                  # 0019: utf8["F"]
     36 01 0001 "I"                  # 001a: utf8["I"]
     37 01 0001 "J"                  # 001b: utf8["J"]
     38 01 0001 "S"                  # 001c: utf8["S"]
     39 01 0001 "Z"                  # 001d: utf8["Z"]
     40 01 0012 "Ljava/lang/String;" # 001e: utf8["Ljava/lang/String;"]
     41 
     42 0021  # access_flags
     43 0003  # this_class
     44 0004  # super_class
     45 0000  # interfaces_count
     46 
     47 0009  # fields_count
     48 
     49 # fields[0]
     50 0001  # access_flags
     51 0006  # "a"
     52 0016  # "B"
     53 0001  # attributes_count
     54 # attributes[0]
     55 0005      # name
     56 00000002  # length
     57 0010      # value
     58 
     59 # fields[1]
     60 0002  # access_flags
     61 0007  # "b"
     62 0017  # "C"
     63 0001  # attributes_count
     64 # attributes[0]
     65 0005      # name
     66 00000002  # length
     67 0010      # value
     68 
     69 # fields[2]
     70 0004  # access_flags
     71 0008  # "c"
     72 0018  # "D"
     73 0001  # attributes_count
     74 # attributes[0]
     75 0005      # name
     76 00000002  # length
     77 0014      # value
     78 
     79 # fields[3]
     80 0008  # access_flags
     81 0009  # "d"
     82 0019  # "F"
     83 0001  # attributes_count
     84 # attributes[0]
     85 0005      # name
     86 00000002  # length
     87 0011      # value
     88 
     89 # fields[4]
     90 0010  # access_flags
     91 000a  # "e"
     92 001a  # "I"
     93 0001  # attributes_count
     94 # attributes[0]
     95 0005      # name
     96 00000002  # length
     97 0010      # value
     98 
     99 # fields[5]
    100 0040  # access_flags
    101 000b  # "f"
    102 001b  # "J"
    103 0001  # attributes_count
    104 # attributes[0]
    105 0005      # name
    106 00000002  # length
    107 0012      # value
    108 
    109 # fields[6]
    110 0080  # access_flags
    111 000c  # "g"
    112 001c  # "Z"
    113 0001  # attributes_count
    114 # attributes[0]
    115 0005      # name
    116 00000002  # length
    117 0010      # value
    118 
    119 # fields[7]
    120 0019  # access_flags
    121 000d  # "h"
    122 001d  # "S"
    123 0001  # attributes_count
    124 # attributes[0]
    125 0005      # name
    126 00000002  # length
    127 0010      # value
    128 
    129 # fields[8]
    130 0019  # access_flags
    131 000e  # "i"
    132 001e  # "Ljava/lang/String;"
    133 0001  # attributes_count
    134 # attributes[0]
    135 0005      # name
    136 00000002  # length
    137 000f      # value
    138 
    139 0000  # methods_count
    140 0000  # attributes_count
    141