LineNumberTableAttributepublic class LineNumberTableAttribute extends Attribute
Fields Summary |
---|
public LineNumberTableEntry[] | data |
Methods Summary |
---|
public static Attribute | finishReadAttribute(java.io.DataInput in, UnicodeConstant name)
int l;
int n;
LineNumberTableEntry d[];
l = in.readInt();
n = in.readUnsignedShort();
d = new LineNumberTableEntry[ n ];
for ( int i = 0; i < n; i++ ){
d[i] = new LineNumberTableEntry( in.readUnsignedShort(), in.readUnsignedShort() );
}
return new LineNumberTableAttribute( name, l, d );
| public static Attribute | readAttribute(java.io.DataInput i, ConstantObject[] t)
UnicodeConstant name;
name = (UnicodeConstant)t[i.readUnsignedShort()];
return finishReadAttribute( i, name );
| protected int | writeData(java.io.DataOutput o)
int n = data.length;
o.writeShort( n );
for ( int i = 0; i < n; i++ ){
data[i].write( o );
}
return 2+LineNumberTableEntry.size*n;
|
|