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

changeset 345
23505e6ea22d
parent 67
1bdd8cea398e
child 554
9d9f26857129
equal deleted inserted replaced
344:6d0add6ad778 345:23505e6ea22d
93 93
94 public int size() { 94 public int size() {
95 return attrs.length; 95 return attrs.length;
96 } 96 }
97 97
98 public int byteLength() {
99 int length = 2;
100 for (Attribute a: attrs)
101 length += a.byteLength();
102 return length;
103 }
104
98 public final Attribute[] attrs; 105 public final Attribute[] attrs;
99 public final Map<String, Attribute> map; 106 public final Map<String, Attribute> map;
100 } 107 }

mercurial