ExceptionsAttributepublic class ExceptionsAttribute extends Attribute
Fields Summary |
---|
public ClassConstant[] | data |
Methods Summary |
---|
public void | countConstantReferences(boolean isRelocatable)
super.countConstantReferences( isRelocatable );
int n = data.length;
for ( int i = 0; i < n; i++ ){
data[i].incReference();
}
| public static Attribute | finishReadAttribute(java.io.DataInput in, UnicodeConstant name, ConstantObject[] t)
int l;
int n;
ClassConstant d[];
l = in.readInt();
n = in.readUnsignedShort();
d = new ClassConstant[ n ];
for ( int i = 0; i < n; i++ ){
int index = in.readUnsignedShort();
d[i] = (ClassConstant)t[ index ];
}
return new ExceptionsAttribute( name, l, d );
| public static Attribute | readAttribute(java.io.DataInput i, ConstantObject[] locals, ConstantObject[] globals)
UnicodeConstant name;
name = (UnicodeConstant)globals[i.readUnsignedShort()];
return finishReadAttribute( i, name, locals );
| protected int | writeData(java.io.DataOutput o)
int n = data.length;
o.writeShort( n );
for ( int i = 0; i < n; i++ ){
o.writeShort( data[i].index );
// debug
if ( data[i].index <= 0 ){
System.err.println(Localizer.getString("exceptionsattribute.exceptions_table_references_negative_subscript", data[i]));
}
// end debug
}
return 2 + 2*n;
|
|