/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * This source file is part of SableVM.                            *
 *                                                                 *
 * See the file "LICENSE" for the copyright information and for    *
 * the terms and conditions for copying, distribution and          *
 * modification of this source file.                               *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/**
 * @author Patrick Latifi
 */
public class SSourceFileAttribute extends SAttributeInfo
{
	private int sourceFileIndex;
	private SConstantUtf8Info sourceFile;

	public SSourceFileAttribute(int attributeNameIndex,
				    int attributeLength, 
				    int sourceFileIndex)
	{
	    super(attributeNameIndex, attributeLength);
	    this.sourceFileIndex = sourceFileIndex;
	}

	public int getSourceFileIndex()
	{
	    return sourceFileIndex;
	}

        public void setSourceFileIndex(int sourceFileIndex)
        {
	    this.sourceFileIndex = sourceFileIndex;
	}

	public SConstantUtf8Info getSourceFile()
	{
	    return sourceFile;
	}

	public void setSourceFile(SConstantUtf8Info sourceFile)
	{
	    this.sourceFile = sourceFile;
	}

	public String toString()
	{
		return "\n***Source File Attribute***\n" +
			super.toString() +  "\nsourceFileIndex = " +
			sourceFileIndex + "\nsourceFile = " + sourceFile;

	}
}
