SourceFileAttributepublic class SourceFileAttribute extends Attribute
Fields Summary |
---|
public UnicodeConstant | sourceName |
Methods Summary |
---|
public void | countConstantReferences(boolean isRelocatable)
super.countConstantReferences( isRelocatable );
sourceName.incReference();
| public void | externalize(ConstantPool p)
super.externalize( p );
sourceName = (UnicodeConstant)p.add( sourceName );
| public static Attribute | finishReadAttribute(java.io.DataInput i, UnicodeConstant name, ConstantObject[] globals)
int l;
int n;
UnicodeConstant d;
l = i.readInt();
n = i.readUnsignedShort();
d = (UnicodeConstant)globals[n];
return new SourceFileAttribute( name, l, 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)
o.writeShort( sourceName.index );
return 2;
|
|