6866657: add byteLength method to primary classfile types

Reviewed-by: mchung
This commit is contained in:
Jonathan Gibbons 2009-07-30 07:48:24 -07:00
parent 638db1aabb
commit 219445d03a
8 changed files with 197 additions and 0 deletions

View file

@ -50,6 +50,10 @@ public class Field {
this.attributes = attributes;
}
public int byteLength() {
return 6 + attributes.byteLength();
}
public String getName(ConstantPool constant_pool) throws ConstantPoolException {
return constant_pool.getUTF8Value(name_index);
}