StackMapAttributepublic class StackMapAttribute extends Attribute
Fields Summary |
---|
public StackMapFrame[] | data |
Methods Summary |
---|
public void | countConstantReferences(boolean isRelocatable)
super.countConstantReferences( isRelocatable );
for (int i = 0; i < data.length; i++) {
data[i].countConstantReferences(isRelocatable);
}
| public void | externalize(ConstantPool p)
super.externalize( p );
for (int i = 0; i < data.length; i++) {
data[i].externalize(p);
}
| public static Attribute | finishReadAttribute(java.io.DataInput in, UnicodeConstant name, ConstantObject[] globals)
int length = in.readInt();
// Read the number of frames
int n = in.readUnsignedShort();
StackMapFrame d[] = new StackMapFrame[n];
// Read each frame
for (int i = 0; i < n; i++) {
d[i] = new StackMapFrame(in, globals);
}
return new StackMapAttribute(name, length, d);
| public static Attribute | readAttribute(java.io.DataInput i, ConstantObject[] globals)
UnicodeConstant name;
name = (UnicodeConstant)globals[i.readUnsignedShort()];
return finishReadAttribute(i, name, globals );
| protected int | writeData(java.io.DataOutput o)
int length = 2;
o.writeShort(data.length);
for ( int i = 0; i < data.length; i++ ){
length += data[i].writeData(o);
}
return length;
|
|