48 this.name_index = name_index; |
48 this.name_index = name_index; |
49 this.descriptor = descriptor; |
49 this.descriptor = descriptor; |
50 this.attributes = attributes; |
50 this.attributes = attributes; |
51 } |
51 } |
52 |
52 |
|
53 public int byteLength() { |
|
54 return 6 + attributes.byteLength(); |
|
55 } |
|
56 |
53 public String getName(ConstantPool constant_pool) throws ConstantPoolException { |
57 public String getName(ConstantPool constant_pool) throws ConstantPoolException { |
54 return constant_pool.getUTF8Value(name_index); |
58 return constant_pool.getUTF8Value(name_index); |
55 } |
59 } |
56 |
60 |
57 public final AccessFlags access_flags; |
61 public final AccessFlags access_flags; |