FileDocCategorySizeDatePackage
SourceFileAttribute.javaAPI DocphoneME MR2 API (J2ME)2610Wed May 02 17:59:48 BST 2007components

SourceFileAttribute

public class SourceFileAttribute extends Attribute

Fields Summary
public UnicodeConstant
sourceName
Constructors Summary
public SourceFileAttribute(UnicodeConstant name, int l, UnicodeConstant sourceName)

	super( name, l );
	this.sourceName = sourceName;
    
Methods Summary
public voidcountConstantReferences(boolean isRelocatable)

	super.countConstantReferences( isRelocatable );
	sourceName.incReference();
    
public voidexternalize(ConstantPool p)

	super.externalize( p );
	sourceName = (UnicodeConstant)p.add( sourceName );
    
public static AttributefinishReadAttribute(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 AttributereadAttribute(java.io.DataInput i, ConstantObject[] globals)

	UnicodeConstant name;

	name = (UnicodeConstant)globals[i.readUnsignedShort()];
	return finishReadAttribute( i, name, globals );
    
protected intwriteData(java.io.DataOutput o)

	o.writeShort( sourceName.index );
	return 2;