/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 SConstantValueAttribute extends SAttributeInfo
{
    private int constantValueIndex;

    public SConstantValueAttribute(int attributeNameIndex,
				   int attributeLength, 
				   int constantValueIndex)
    {
	super(attributeNameIndex, attributeLength);
	this.constantValueIndex = constantValueIndex;
    }

    public int getConstantValueIndex()
    {
	return constantValueIndex;
    }
    
    public void setConstantValueIndex(int constantValueIndex)
    {
	this.constantValueIndex = constantValueIndex;
    }

    public String toString()
    {
	    return super.toString() + 
		    "constantValueIndex = " + constantValueIndex + "\n";
    }
}
