FileDocCategorySizeDatePackage
SourceFileAttribute_info.javaAPI DocAndroid 1.5 API2687Wed May 06 22:41:16 BST 2009com.vladium.jcd.cls.attribute

SourceFileAttribute_info

public final class SourceFileAttribute_info extends Attribute_info
author
(C) 2001, Vlad Roubtsov

Fields Summary
public int
m_sourcefile_index
Constructors Summary
public SourceFileAttribute_info(int attribute_name_index)

        super (attribute_name_index, 0);
    
SourceFileAttribute_info(int attribute_name_index, long attribute_length, com.vladium.jcd.lib.UDataInputStream bytes)

        super (attribute_name_index, attribute_length);
        
        m_sourcefile_index = bytes.readU2 ();
    
Methods Summary
public voidaccept(IAttributeVisitor visitor, java.lang.Object ctx)

        visitor.visit (this, ctx);
    
public java.lang.Objectclone()
Performs a deep copy.

        
        return super.clone ();    
    
public com.vladium.jcd.cls.constant.CONSTANT_Utf8_infogetSourceFile(com.vladium.jcd.cls.ClassDef cls)

        return (CONSTANT_Utf8_info) cls.getConstants ().get (m_sourcefile_index);
    
public longlength()

        return 8;
    
public java.lang.StringtoString()

        return "SourceFileAttribute_info: [attribute_name_index = " + m_name_index + ", attribute_length = " + m_attribute_length + ']";
    
public voidwriteInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)

        super.writeInClassFormat (out);
        
        out.writeU2 (m_sourcefile_index);