public class SEnclosingMethodAttribute extends SAttributeInfo
{
    private int classIndex;
    private int methodIndex;
    

    public  SEnclosingMethodAttribute (int attributeNameIndex, int attributeLength,
			  int classIndex, int methodIndex)
    {
	super(attributeNameIndex, attributeLength);
	this.classIndex  = classIndex;
	this.methodIndex = methodIndex;
	
    }

    public int getClassIndex()
    {
	return classIndex;
    }
    
    public int getMethodIndex()
    {
	return methodIndex;
    }
    
    public String toString()
    {
	String s = new String();

	s = "\n*** EnclosingMethod Attribute ***" + super.toString();
	s += "\nclassIndex " + classIndex;
	s += "\nmethodIndex " + methodIndex;
  
	return s;
    }
}
