/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 abstract class SAttributeInfo
{
    private int attributeNameIndex;
    private SConstantUtf8Info attributeName;
    private int attributeLength;

    public SAttributeInfo(int attributeNameIndex, int attributeLength)
    {
	this.attributeNameIndex = attributeNameIndex;
	this.attributeLength = attributeLength;
    }

    public int getAttributeNameIndex()
    {
	return attributeNameIndex;
    }	

    public void setAttributeNameIndex(int attributeNameIndex)
    {
	this.attributeNameIndex = attributeNameIndex;
    }	

    public int getAttributeLength()
    {
	return attributeLength;
    }
    
    public void getAttributeLength(int attributeLength)
    {
	this.attributeLength = attributeLength;
    }

    public SConstantUtf8Info getAttributeName()
    {
	return attributeName;
    }
    
    public void setAttributeName(SConstantUtf8Info attributeName)
    {
	this.attributeName = attributeName;
    }

    public String toString()
    {
	    String s = new String();

	    s +=  "attributeNameIndex = " + attributeNameIndex + "\n";
	    s +=  "attributeName = " + attributeName + "\n";
	    s +=  "attributeLength = " + attributeLength + "\n";

	    return s;
    }
}
