src/share/classes/com/sun/tools/classfile/Method.java

changeset 345
23505e6ea22d
parent 54
eaf608c64fec
child 554
9d9f26857129
equal deleted inserted replaced
344:6d0add6ad778 345:23505e6ea22d
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;

mercurial