FileDocCategorySizeDatePackage
SourceFileAttribute.javaAPI DocJ2ME CLDC 1.11820Wed Feb 05 15:56:02 GMT 2003components

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;